Skip to content

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

Plan CDK Terrain stacks

Already in CDK Terrain

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

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.