Quick Start

Make sure you have generated an API key in order to use the provider

Step 1: Install Terraform

If you haven't already, you'll need to install Terraform. Ensure you have the version compatible with the provider you intend to use.

Step 2: Setup Your Terraform Configuration

  1. Initialize a New Terraform Directory:

    Create a new directory for your Terraform configuration files. You can do this with your system's command line interface:

mkdir terraform-kubiya
cd terraform-kubiya
touch main.tf
  1. Create a Terraform Configuration File: Within this directory, create a new file named main.tf. You can do this using a text editor. Then, copy the provided Terraform plan into this file.

Step 3: Configure the Kubiya Provider

  1. The required_providers block in your Terraform configuration specifies that you're using the Kubiya provider, including its source and version:

terraform init -upgrade
terraform {
  required_providers {
    kubiya = {
      source  = "kubiya-terraform/kubiya"
    }
  }
}

provider "kubiya" {
  //Your Kubiya API Key will be taken from the 
  //environment variable KUBIYA_API_KEY
  //To set the key, please use export KUBIYA_API_KEY="YOUR_API_KEY"
}

Last updated