Secrets

Use Terraform to manage Secrets in Kubiya:

You can add secrets to Kubiya via our Terraform Provider.

Security Note: When you add secrets, they are classified as sensitive information and Terraform will hide secrets in its output.

Want to know more about Secrets in Kubiya? Learn more

Here's how you can provision a secret:

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