Secrets

Use Terraform to manage Secrets 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_secret" "example" {
  name           = "Your Secret Name"
  value          = "Value of the Secret"
  description          = "Describe the Secret Designation"
}

output "output" {
  value = kubiya_secret.example
}

Last updated