terraform-stacks

Manage Terraform Stacks configurations, deployments, and cross-stack references in HCP Terraform.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/PaulRBerg/prb-iac --skill terraform-stacks-paulrberg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-stacks
Source: https://github.com/PaulRBerg/prb-iac/tree/main/.agents/skills/terraform-stacks
Command: npx skills add https://github.com/PaulRBerg/prb-iac --skill terraform-stacks-paulrberg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terraform Stacks provides a structured, scalable approach to managing large Terraform configurations by defining components, deployments, and cross-stack references as first-class citizens. It unifies module sources (local, private registries, and public registries) and orchestrates multi-environment deployments with consistent governance.

Core Features & Use Cases

  • Component-based Stack design with .tfcomponent.hcl and .tfdeploy.hcl files to compose infrastructure from modular sources.
  • Deployment groups, auto-approve rules (premium), and linked Stacks with published outputs and upstream inputs for cross-stack workflows.
  • Workload identity and identity_token support to securely assume cloud provider roles during deployments across multiple regions and environments.

Quick Start

Upload a Stack configuration using terraform stacks configuration upload to start deployment runs.

Frequently Asked Questions about terraform-stacks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Terraform configurations across multiple environments and regions?

Terraform Stacks manage multi-environment and multi-region deployments by defining components and deployment groups in HCP Terraform. You use .tfcomponent.hcl and .tfdeploy.hcl files to compose infrastructure and orchestrate consistent governance across environments.

What is the best way to handle cross-stack references in HCP Terraform?

Cross-stack references in HCP Terraform are handled using linked Stacks with published outputs and upstream inputs. This allows you to securely pass values between separate infrastructure configurations managed as distinct Stacks.

Can I use local modules and private registries together in Terraform Stacks?

Yes, Terraform Stacks unify module sources, allowing you to compose infrastructure using local modules, private registries, and public registries simultaneously within your component configurations.

How do I securely assume cloud provider roles during Terraform Stack deployments?

You securely assume cloud provider roles during Stack deployments by using workload identity and identity_token support. This mechanism allows secure role assumption across multiple regions and environments without static credentials.

How do I start deploying a Terraform Stack configuration?

To start deploying a Terraform Stack, upload your configuration using the 'terraform stacks configuration upload' command. Once uploaded, you can initiate deployment runs and manage the lifecycle through HCP Terraform.