Back to skills

terraform-stacks

infrastructure

Terraform Stacks adds a configuration layer above traditional Terraform modules for managing infrastructure across multiple environments, regions, and cloud accounts. It introduces two file types (.tf

Setup & Installation

npx skills add https://github.com/hashicorp/terraform-stacks --skill terraform-stacks
or paste the link and ask your coding assistant to install it
https://github.com/hashicorp/terraform-stacks
View on GitHub

What This Skill Does

Terraform Stacks adds a configuration layer above traditional Terraform modules for managing infrastructure across multiple environments, regions, and cloud accounts. It introduces two file types (.tfcomponent.hcl and .tfdeploy.hcl) that define reusable components and deployment instances separately. A single stack can drive dozens of deployments with isolated state per environment. Managing multi-environment Terraform manually means duplicating module calls, wiring outputs by hand, and coordinating state across workspaces — Stacks replaces that with a single declarative config that handles dependency ordering and deployment isolation automatically.

When to use it

  • Working with terraform stacks functionality
  • Implementing terraform stacks features
  • Debugging terraform stacks related issues