Integrations

Use Terraform to manage Integrations in Kubiya:

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