terraform-stacks
Comprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack conf…
What it does
- Component configuration: .tfcomponent.hcl
- Deployment configuration: .tfdeploy.hcl
- Provider lock file: .terraform.lock.hcl (generated by CLI)
- Local file paths: ./modules/vpc
- Public registry: terraform-aws-modules/vpc/aws
- Private registry: app.terraform.io/<org-name>/vpc/aws
- Git: git::https://github.com/org/repo.git//path?ref=v1.0.0
Requirements & configuration
- description = "OIDC identity token"
- Eliminates need for platform-managed environment variables
- Each Stack requires at least one component block. Add a component for each module to include in the Stack. Components reference modules from local paths, registries, or Git.
- Outputs require a type argument and do not support preconditions:
- Use to safely remove components from a Stack. HCP Terraform requires the component's providers to remove it.
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Comprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcomponent.hcl, .tfdeploy.hcl files), working with stack components and deployments from local modules, public registry, or private registry sources, managing multi-region or multi-environment infrastructure, or troubleshooting Terraform Stacks syntax and structure.
Source
Repository: https://github.com/hashicorp/agent-skills
terraform-stacks FAQ
What does the terraform-stacks skill do?
Comprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcomponent.hcl, .tfdeploy.hcl files), working with stack components and deployments from local modules, public registry, or private registry sources, managing multi-region or multi-environment infrastructure, or troubleshooting Terraform Stacks syntax and structure. Component configuration: .tfcomponent.hcl Deployment configuration: .tfdeploy.hcl
What does terraform-stacks require?
description = "OIDC identity token" Eliminates need for platform-managed environment variables Each Stack requires at least one component block. Add a component for each module to include in the Stack. Components reference modules from local paths, registries, or Git. Outputs require a type argument and do not support preconditions: Use to safely remove components from a Stack. HCP Terraform requires the component's providers to remove it.
How do I install terraform-stacks?
Run: npx -y skills add https://github.com/hashicorp/agent-skills --skill terraform-stacks --agent claude-code — the source lives at github.com/hashicorp/agent-skills.
Maintain terraform-stacks?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[terraform-stacks on getagentictools](https://getagentictools.com/skills/hashicorp-agent-skills-terraform-stacks?ref=badge) npx agentictools info skills/hashicorp-agent-skills-terraform-stacks The second line is the CLI lookup for this page — handy in READMEs and docs.