terraform-stacks

Define and validate Terraform Stacks configurations for multi-environment deployments.

790|117|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/hashicorp/agent-skills --skill terraform-stacks-hashicorp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-stacks
Source: https://github.com/hashicorp/agent-skills/tree/main/terraform/module-generation/skills/terraform-stacks
Command: npx skills add https://github.com/hashicorp/agent-skills --skill terraform-stacks-hashicorp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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 Features & Use Cases

  • Stack: Define complete infrastructure configurations as cohesive units that can be deployed together.
  • Component & Deployment: Compose infrastructure from reusable components and per-environment deployments.
  • Multi-Region & Cross-Stack: Coordinate across regions and leverage upstream/downstream stacks for complex architectures.

Quick Start

Use the Terraform Stacks workflow to validate, plan, and apply deployments. For example, run terraform stacks validate, then terraform stacks plan --deployment=production, followed by terraform stacks apply --deployment=production.

Frequently Asked Questions about terraform-stacks

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

FAQPage Schema
How do I orchestrate Terraform deployments across multiple environments and regions?

Terraform Stacks provide a configuration layer above traditional modules to declaratively orchestrate infrastructure components across multiple environments, regions, and cloud accounts as cohesive deployable units.

How do I manage upstream dependencies between infrastructure components?

Terraform Stacks coordinate upstream and downstream dependencies by defining deployment groups and components, ensuring multi-region infrastructure architectures are versioned and validated correctly.

How do I validate and plan multi-region infrastructure-as-code before applying changes?

Validate and plan multi-region infrastructure-as-code by running configuration checks on stacks and components, then generating deployment plans for specific environments before applying changes.

Can I define auto-approve rules for multi-region Terraform deployments?

Yes, you can define auto-approve rules within the Stack configuration layer to automate the validation and application of multi-region infrastructure deployments across defined deployment groups.

What is the best way to coordinate infrastructure-as-code across multiple cloud accounts?

The best way to coordinate infrastructure-as-code across multiple cloud accounts is to define complete infrastructure configurations as cohesive Stacks that manage provider configurations and deployments together declaratively.