Agent skill · hashicorp
terraform-stacks
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.
What it needs
About 8k tokens when loaded.
What this skill does
Terraform Stacks Terraform Stacks simplify infrastructure provisioning and management at scale by providing a configuration layer above traditional Terraform modules. Stacks enable declarative orchestration of multiple components across environments, regions, and cloud accounts. Core Concepts Stack: A complete unit of infrastructure composed of components and deployments that can be managed together. Component: An abstraction around a Terraform module that defines infrastructure pieces. Each component specifies a source module, inputs, and providers. Deployment: An instance of all components in a stack with specific input values. Use deployments for different environments (dev/staging/prod), regions, or cloud accounts. Stack Language: A separate HCL-based language (not regular Terraform HCL) with distinct blocks and file extensions. File Structure Terraform Stacks use specific file extensions: Component configuration: .tfcomponent.hcl Deployment configuration: .tfdeploy.hcl Provider lock file: .terraform.lock.hcl (generated by CLI) All configuration files must be at the root level of the Stack repository. HCP Terraform processes all files in dependency order. Recommended File Organization Note: The modules/ directory is only required when using local module sources. Components can reference modules from: 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 HCP Terraform processes all .tfcomponent.hcl and .tfdeploy.hcl files in dependency order. Required Terraform version (.terraform-version) Use Terraform v1.13.x or later to access the Stacks CLI plugin and to run terraform stacks CLI commands. Begin by adding a .terraform-version file to your Stack's root directory to specify the Terraform version required for your Stack. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills hashicorp/terraform-stacks--7254aa