Knowledge

Use Terraform to manage Knowledge in Kubiya.

The kubiya_knowledge resource stores information about a particular piece of knowledge that is typically used within your organization. For more information click here.

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_knowledge" "example" {
    name = "knowledge title"
    groups = ["Admin", "group-1", "group-2"]
    content = "Add the content here."
    description = "knowledge description"
    labels = ["label-1"] // tags to help you and your team organize your knowledge 
    supported_agents = ["agent-1", "agent-2", "agent-3"]
}

output "output" {
  value = kubiya_knowledge.example
}

Last updated