Terragrunt
llms.txtlists every page for an agent
A Terragrunt repo of units or explicit stacks, or one on Terragrunt Scale.
Works
- Each unit is a root, and dependency order decides the waves
- A pull request plans the units of every layer it reaches, each on its upstream's planned outputs
- terragucci import terragrunt-scale reads Gruntwork Pipelines' environments and roles
Differs
- roots is refused; terragrunt.exclude leaves units out.
- A step after init is refused, since Terragrunt inits each unit inside the plan.
- CDK Terrain in a Terragrunt repo is not supported.
On Terraform, choudoufu, GitLab
On Terraform
- Two overlapping pushes to one root can fail the newer apply with "Saved plan is stale"; run it again and it plans again.
On choudoufu
- terragucci does not read a root's required_version as a choudoufu release.
On GitLab
- Comment commands answer on a schedule, since a merge request note starts no pipeline.
- Roots lock on /terragucci apply or /terragucci lock, not at the first plan.
- The agent comment and drift fixes are GitHub and Forgejo only.
First step
Already in Terragrunt
- run --all in dependency order, with --filter-affected, --queue-ignore-errors and retries
- The run queue, where each unit waits for its dependencies
- Gruntwork Pipelines: plans and applies the units a commit changes, in your own CI
- Drift Detected pull requests from Pipelines, on a schedule
If ordering and drift pull requests are what you need, Terragrunt and Pipelines already do them.
Added by terragucci
- A pull request plans each unit on its upstream's planned outputs in place of mock_outputs, and a plan that would read mocks fails
- A wave waits for an approval when it would apply a value no review saw
- An approval counts only for the plan digest it saw, and only from someone with no hand in the change
- A wave whose plans moved since the approval applies nothing
You can count on
- A plan note on every pull request
- Gated applies of the plans you approved
- No overlapping or stale applies
- Re-plan from a comment
- Scheduled drift checks
- OIDC roles, one to plan, one to apply
- Policy on every plan
- An audit trail in your bucket
- Secrets kept out of notes and logs
- Your state backend, as is
- Your own runners
- Your forge's sign-in and permissions
Then read
terragucciHelp setting it up: Intentius
These docs count page views and clicks with PostHog. They set no cookies, store nothing in your browser, and send nothing when your browser asks not to be tracked.