terragrunt-generator

Generates Terraform-compatible Terragrunt HCL configurations for multi-environment infrastructure.

9|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/pantheon-org/tekhne --skill terragrunt-generator-pantheon-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terragrunt-generator
Source: https://github.com/pantheon-org/tekhne/tree/main/skills/infrastructure/terragrunt/generator
Command: npx skills add https://github.com/pantheon-org/tekhne --skill terragrunt-generator-pantheon-org

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of robust, production-ready Terragrunt configurations, ensuring adherence to best practices and reducing manual setup time for Infrastructure as Code.

Core Features & Use Cases

  • Scaffolding: Generates complete directory structures for multi-environment infrastructure (dev, staging, prod).
  • Configuration Generation: Creates root configurations, child modules, stacks, and handles remote state, provider configurations, dependencies, and more.
  • Modern Features: Supports Terragrunt 2025 features like Stacks, Feature Flags, Exclude Blocks, Errors Blocks, and OpenTofu integration.
  • Use Case: When starting a new cloud infrastructure project, use this Skill to quickly generate a well-structured Terragrunt setup for multiple environments, complete with remote state configuration and common module patterns.

Quick Start

Use the terragrunt-generator skill to create a new Terragrunt project structure for a multi-environment setup.

Frequently Asked Questions about terragrunt-generator

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

FAQPage Schema
How do I generate Terragrunt configurations for a multi-environment infrastructure setup?

To generate Terragrunt configurations for multi-environment infrastructure, this tool scaffolds complete directory structures for dev, staging, and prod. It creates root configurations, child modules, and stacks while handling remote state and provider configurations automatically following current best practices.

What is the best way to structure infrastructure as code using Terragrunt and HCL?

The best way to structure infrastructure as code with Terragrunt and HCL is by using best-practice scaffolding that organizes root configurations, child modules, and stacks. This ensures deterministic and scalable IaC deployments while managing dependencies and remote state effectively.

Does Terragrunt work with OpenTofu for infrastructure as code deployments?

Yes, Terragrunt works with OpenTofu for infrastructure as code deployments. The generator supports OpenTofu engine integration, allowing you to create deterministic and scalable HCL configurations that leverage modern IaC execution engines alongside standard provider setups.

Can I use feature flags and exclude blocks when scaffolding Terragrunt stacks?

Yes, you can use feature flags and exclude blocks when scaffolding Terragrunt stacks. The generator supports modern Terragrunt 2025 features including Stacks, Feature Flags, Exclude Blocks, and Errors Blocks to provide flexible and conditional infrastructure as code configurations.

How do I manage remote state and dependencies in Terragrunt child modules?

To manage remote state and dependencies in Terragrunt child modules, the generator automatically incorporates remote state configurations and dependency management blocks into the HCL files. This ensures your infrastructure as code maintains proper state isolation and cross-module references.