Integrations

You can use IaC to create and manage Kubiya Integrations.

Want to know more about Integrations in Kubiya? Learn more

Here's an example of how to provision an AWS integration using Terraform:

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"
}

resource "kubiya_integration" "integration" {
  name             = "aws1"
  description      = "main aws account"

  configs = [
    {
      name       = "india"
      is_default = true
      vendor_specific = {
        arn    = "arn:aws:iam::12345:role/rolename"
        region = "ap-south-1"
      }
    },
    {
      name       = "brazil"
      is_default = false
      vendor_specific = {
        arn    = "arn:aws:iam::12345:role/rolename"
        region = "sa-east-1"
      }
    }
  ]
}

output "integration" {
  value = kubiya_integration.integration
}

Last updated