Local Runner Resource

Use terraform to manage runners in kubiya

terraform {
  required_providers {
    kubiya = {
      source  = "kubiya-terraform/kubiya"
      version = "0.1.4"
    }
  }
}

provider "kubiya" {
  user_key = "<your personal key from kubiya>"
}

resource "kubiya_runner" "runner_dev" {
  name                     = "dev"
  runner_deployment_folder = "/Users/SomeUser/runners/"
}

resource "kubiya_runner" "runner_prod" {
  name                     = "prod"
  runner_deployment_folder = "/Users/SomeUser/runners/"
}

output "runner_dev" {
  value = kubiya_runner.runner_dev
}

output "runner_prod" {
  value = kubiya_runner.runner_prod
}
terraform plan
terraform apply
terraform output runner

Last updated