Terraform Provider

Status: Stable Build locally:
make build-prov
Configure provider:
terraform {
  required_providers {
    opentaco = { source = "digger/opentaco" }
  }
}

provider "opentaco" {
  endpoint = "http://localhost:8080"
}
Resource example:
resource "opentaco_unit" "example" {
  id = "myapp/prod"
}
Dependencies resource:
resource "opentaco_dependency" "a_to_b_dburl" {
  from_unit_id = "org/app/A"
  from_output   = "db_url"
  to_unit_id   = "org/app/B"
  to_input      = "db_url"   # optional
}
Notes:
  • Computed fields (in_digest, out_digest, status, last_in_at, last_out_at) are populated by the service during unit writes.
  • The dependency graph is stored in a normal Terraform state for the workspace __opentaco_system.
Dev override (if provider is not published):
ABS="$(pwd)/providers/terraform/opentaco"
cat > ./.terraformrc <<EOF
provider_installation {
  dev_overrides { "digger/opentaco" = "${ABS}" }
  direct {}
}
EOF
export TF_CLI_CONFIG_FILE="$PWD/.terraformrc"
terraform init -upgrade