Skip to content

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

Use Terragrunt

Already in Terragrunt

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

Then read

Tasks
Use TerragruntFrom Terragrunt ScaleSteps around a stage
Background
Waves and approvals
Details
terragucci.yml keys

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.