terraform-stacks

Create, modify, and validate HashiCorp Terraform Stacks configurations.

3|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/MehdiRtal/dotfiles --skill terraform-stacks-mehdirtal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-stacks
Source: https://github.com/MehdiRtal/dotfiles/tree/main/dot_agents/skills/terraform-stacks
Command: npx skills add https://github.com/MehdiRtal/dotfiles --skill terraform-stacks-mehdirtal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and tooling for managing HashiCorp Terraform Stacks, simplifying the creation, modification, and validation of complex infrastructure configurations.

Core Features & Use Cases

  • Terraform Stacks Configuration: Work with .tfcomponent.hcl and .tfdeploy.hcl files for defining components and deployments.
  • Multi-Environment/Region Management: Handle infrastructure across different environments and multiple regions declaratively.
  • Troubleshooting & Best Practices: Offers solutions for common issues and outlines best practices for robust infrastructure management.
  • Use Case: Deploy and manage a multi-region, multi-environment application infrastructure using Terraform Stacks, ensuring consistency and reducing manual effort.

Quick Start

Use the terraform-stacks skill to validate the current Terraform Stack configuration.

Frequently Asked Questions about terraform-stacks

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

FAQPage Schema
How do I manage multi-region infrastructure deployments using Terraform Stacks?

Terraform Stacks manages multi-environment and multi-region infrastructure declaratively. You define components in .tfcomponent.hcl files and configure deployments using .tfdeploy.hcl files, ensuring consistency across different environments and regions while reducing manual effort.

When do I need to use .tfcomponent.hcl and .tfdeploy.hcl files for infrastructure management?

Use .tfcomponent.hcl files to define individual infrastructure components and .tfdeploy.hcl files to configure their deployment across different environments. These HCL formats are required when structuring complex, multi-region configurations using Terraform Stacks.

Can I use Terraform Stacks to deploy components from private registries?

Yes, Terraform Stacks supports managing components and deployments from local modules, public registries, and private registries. This allows you to integrate proprietary modules into your multi-environment infrastructure configurations seamlessly.

How do I validate my Terraform Stacks configuration before deployment?

Validate your Terraform Stacks configuration by checking the syntax and structure of your .tfcomponent.hcl and .tfdeploy.hcl files. This process provides troubleshooting guidance to resolve common configuration and deployment workflow issues before execution.

Why is my Terraform Stacks deployment failing during the workflow?

Terraform Stacks deployment failures often stem from syntax errors or structural issues within .tfcomponent.hcl and .tfdeploy.hcl files. Troubleshooting guidance addresses these common deployment workflow problems to help diagnose and resolve configuration conflicts.

What is the best way to structure multi-environment infrastructure with HCL?

The best way to structure multi-environment infrastructure is using Terraform Stacks to declaratively manage configurations. By separating components and deployments into specific HCL files, you achieve robust infrastructure management across various environments and regions.