StaffCoder
Terraform
TerraformTerraform 1.15Linux CLI
21 modules · 84 challengesSign up
Modules21 modules · 84 challenges
Work with create_before_destroy, replace_triggered_by and keyed data to replace infrastructure without gaps. Finish by evolving a live estate through blue-green cutover and rollback with zero downtime.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Create Before Destroy in Anger

Sign up to unlock
—No data yethard
About this challenge

Replacing a named resource fails or gaps: the successor can't be born while the predecessor holds the name, and destroying first leaves a hole.

Solved in a browser IDE and graded by tests. Sign up to solve

Replace Triggered By

Sign up to unlock
—No data yethard
About this challenge

When its upstream is replaced, a downstream resource must be reborn too - but nothing connects their lifetimes, so the stale downstream lingers.

Solved in a browser IDE and graded by tests. Sign up to solve

Blue-Green by Data Edit

Sign up to unlock
—No data yethard
About this challenge

Cutting user-facing traffic to a new implementation is all-or-nothing today: no staged coexistence, no instant path back.

Solved in a browser IDE and graded by tests. Sign up to solve

Gapless Estate Evolution

STAR
Solving it completes the module
—No data yethard
About this challenge

An estate must absorb a disruptive upgrade with zero gaps and a rehearsed exit: named components swapped successor-first, downstream lifetimes cascading with their upstreams automatically, the user-facing cutover staged between coexisting generations by data edit - and every step reversible until the moment the old generation is deliberately retired.

Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.