Skip to content

DKAI Agent: install Terraform on workspace startup - #2

Merged
surrealwolf merged 1 commit into
mainfrom
cursor/dkai-agent-terraform-e209
Apr 27, 2026
Merged

DKAI Agent: install Terraform on workspace startup#2
surrealwolf merged 1 commit into
mainfrom
cursor/dkai-agent-terraform-e209

Conversation

@surrealwolf

Copy link
Copy Markdown
Contributor

Summary

Adds HashiCorp Terraform to the DKAI Agent template so Cloud Agent workspaces can run terraform / terraform validate without a custom image.

Changes

  • templates/dkai-agent/main.tf
    • Install unzip via pacman (required for the official .zip release).
    • In the optional-CLI block (set +e): if terraform is missing or not the pinned version, download linux_amd64 from releases.hashicorp.com and install to /usr/local/bin/terraform.
    • Pin: 1.13.5 (bump the TF_VERSION line when you want to roll forward).
    • Startup summary prints terraform version when present.
  • templates/dkai-agent/README.md: document Terraform alongside other CLIs.

Notes

  • Install is idempotent and tolerates network failures (same pattern as rancher CLI).
  • Terraform state/plugins stay under the workspace filesystem; not symlinked to the tool PVC (same as today for ad-hoc tools).

Add unzip for HashiCorp zip extraction, download pinned Terraform linux_amd64
from releases.hashicorp.com when missing or version differs, install to
/usr/local/bin. Document in dkai-agent README and show version in startup
summary.
@surrealwolf
surrealwolf merged commit 6d42408 into main Apr 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants