What problem does it solve?
Terraform Stacks provide a declarative configuration layer to orchestrate and validate infrastructure provisioning across multiple Terraform modules and environments, reducing drift and manual effort.
Core Features & Use Cases
- Stack: a complete unit of infrastructure that groups components and deployments for consistent lifecycle management.
- Component: an abstraction around a Terraform module with a defined source, inputs, and providers.
- Deployment: an instance of all components in a stack across environments (dev/staging/prod) and regions.
- File Structure: guidance on using .tfcomponent.hcl and .tfdeploy.hcl files, local modules, and module registries to compose infrastructure.
- Multi-Region & Deployment: supports deploying the same stack across multiple regions/environments with shared configurations.
Quick Start
Initialize the Stack by running terraform stacks init in the Stack root after placing your .terraform-version and at least one .tfcomponent.hcl.