Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

terragrunt

Skill by TerminalSkills

Teaches an assistant to use Terragrunt to keep Terraform or OpenTofu configurations DRY, manage remote state, and run many modules in dependency order. Aimed at platform teams managing multiple environments and AWS accounts.

  • Score 49
  • 218 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install terragrunt

Built from the published package, never by AI.

git clone --depth 1 https://github.com/TerminalSkills/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/terragrunt ~/.claude/skills/terragrunt

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install terragrunt in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Terragrunt is a thin wrapper around OpenTofu and Terraform. It reads a terragrunt.hcl in each directory, called a unit, downloads the module named in the terraform source, generates backend and provider files, and passes inputs as variables before running tofu or terraform. A shared root.hcl holds remote state and provider settings so they do not have to be repeated for each environment or AWS account.

The skill covers the 1.x CLI. It explains dependency blocks that wire outputs between modules, run --all to plan or apply a directory tree in dependency order, and before hooks. It also gives steps to migrate from run-all and the old terragrunt- flags. The guidance is aimed at platform teams that manage large infrastructure across many environments.

Written from the project's SKILL.md and checked against it.

What it can do

  • Shared root configurationUses a root.hcl file to share remote state and provider generation across units.
  • Remote state generationGenerates backend files and keys per unit using path_relative_to_include().
  • Dependency blocksPasses outputs from one unit to another, with mock_outputs for plan before apply.
  • Run across a directory treeRuns plan or apply on many units at once in dependency order with run --all.
  • Filtering and parallelismLimits a run with --filter and sets concurrency with --parallelism.
  • Dependency graph outputProduces DOT output with dag graph and lists units with list --dag --tree.
  • Before hooksRuns commands such as tflint before plan or apply through before_hook blocks.
  • CLI migration guidanceMaps old run-all and terragrunt- flags and variables to the 1.x equivalents.

What you need

  • Terragrunt 1.x installed
  • OpenTofu or Terraform available on PATH
  • OpenTofu 1.10 or newer for native S3 locking with use_lockfile

Try asking

  • Show me how to share S3 backend settings across my AWS accounts with Terragrunt
  • Migrate my run-all commands and old terragrunt- flags to the Terragrunt 1.x CLI
  • Wire the VPC outputs into my ECS service unit using a Terragrunt dependency block

Good to know

  • Terragrunt 1.x does not create the S3 backend bucket on its own; use --backend-bootstrap the first time.
  • run --all apply appends -auto-approve to every unit, so plan first.
  • The source targets Terragrunt 1.x; older run-all syntax must be rewritten.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/terragrunt/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to terragrunt

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

terragrunt: common questions

How does Terragrunt keep state separate for each environment?

Each unit gets its own state key built from path_relative_to_include(), so two units never share a key. The source advises against using workspaces because Terragrunt isolates state per unit.

Can I run plan across a whole region at once?

Yes. Running terragrunt run --all plan from a directory walks the tree and runs each unit in dependency order. The source recommends reviewing that plan before any apply.

Does the skill work with OpenTofu or only Terraform?

Terragrunt works with either. It uses tofu or terraform found on PATH, and you can choose one with --tf-path or TG_TF_PATH.

How do I install terragrunt?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is terragrunt free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is terragrunt safe to use?

It scores 49 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to terragrunt?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

terragrunt Install

Add to stack

Loading.