CDK Terrain
llms.txtlists every page for an agent
A CDK Terrain app, synthesized in the pipeline before each plan.
Works
- synth runs in the pipeline, then each pull request plans the stacks its change affects
- Each apply wave synthesizes the stacks and applies behind its gate
- A stack that reads another's state plans on that stack's planned outputs
Differs
- The stacks are the app's output, so terragucci never edits them: drift goes to the issue, and rollouts and generate are config errors.
- A Terragrunt repo takes no synth, so the two do not mix.
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 CDK Terrain
- cdktn deploy orders the stacks itself and takes several stack ids or globs
- The CDK Terrain action: one stack per step, with auto-approve modes
If one deploy of every stack in order is all you need, cdktn deploy already does it.
Added by terragucci
- A pull request plans only the stacks whose synth output differs between base and head
- Each wave waits at its own gate for an approval of its plan digest by someone who had no hand in the change
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
- Tasks
- Plan CDK Terrain stacks
- 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.