terraform-stacks

Guide creation, modification, validation, and troubleshooting of Terraform Stack configurations.

Updated Dec 4, 2025
One-click install
npx skills add https://github.com/CloudbrokerAz/ai-iac-consumer --skill terraform-stacks-cloudbrokeraz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-stacks
Source: https://github.com/CloudbrokerAz/ai-iac-consumer/tree/main/.claude/skills/terraform-stacks
Command: npx skills add https://github.com/CloudbrokerAz/ai-iac-consumer --skill terraform-stacks-cloudbrokeraz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users navigate the complexities of HashiCorp Terraform Stacks, a specialized configuration layer for managing infrastructure at scale. It provides comprehensive guidance on its unique HCL-based language, file structures, and best practices, reducing errors and accelerating large-scale cloud deployments.

Core Features & Use Cases

  • Configuration Guidance: Detailed documentation for .tfcomponent.hcl and .tfdeploy.hcl files, covering variables, providers, components, and deployments.
  • Multi-Environment/Region Management: Best practices and patterns for deploying and managing infrastructure across different environments (dev/staging/prod) and geographical regions.
  • Troubleshooting & Best Practices: Solutions for common errors, clear naming conventions, and architectural guidance for building robust and scalable stacks.
  • Use Case: Automate the setup of a new multi-region, multi-environment application stack, ensuring consistent configurations and adherence to best practices without manual intervention.

Quick Start

Help me create a new Terraform Stack for a multi-region application. Guide me through setting up variables.tfcomponent.hcl and deployments.tfdeploy.hcl for development and production environments, ensuring best practices for provider configurations and component dependencies.

Frequently Asked Questions about terraform-stacks

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

FAQPage Schema
How do I set up Terraform Stacks for multi-region deployments?

Terraform Stacks automate multi-region deployments through .tfcomponent.hcl and .tfdeploy.hcl files that define components, providers, and deployment groups. Configure provider aliases and cross-stack references to manage infrastructure consistently across regions and environments without manual intervention.

What's the difference between .tfcomponent.hcl and .tfdeploy.hcl files?

.tfcomponent.hcl defines reusable infrastructure components with variables, required providers, and outputs, while .tfdeploy.hcl specifies deployment instances, groups, and provider configurations for those components across environments and regions.

Can I use Terraform Stacks to manage dev, staging, and production environments?

Yes. Terraform Stacks supports multi-environment deployments through separate .tfdeploy.hcl configurations and for_each patterns, enabling consistent component deployments across dev, staging, and production with environment-specific variables and provider settings.

How do I handle dependencies between Terraform Stack components?

Terraform Stacks processes component dependencies through cross-stack references and dependency-order validation. Define output values in components and reference them in deployments to establish explicit ordering and data flow between infrastructure layers.

What validation does Terraform Stacks perform on configuration files?

Terraform Stacks verifies Stack language blocks including variables, required_providers, providers, components, outputs, and locals; validates deployment and group structures; checks OIDC token configuration; and ensures for_each syntax and dependency ordering are correct.

Do Terraform Stacks work with public and private module registries?

Yes. Terraform Stacks support local, public, and private registry sources for components, enabling centralized component management while maintaining flexibility in sourcing and distributing reusable infrastructure definitions.