StaffCoder
Terraform
TerraformTerraform 1.15Linux CLI
21 modules · 84 challengesSign up
Modules21 modules · 84 challenges
Work with lifecycle rules, conditions and check blocks to guard resources, reject bad inputs and results with clear messages, and warn without blocking. Finish by building a configuration that defends itself.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Lifecycle Guards

Sign up to unlock
—No data yetmedium
About this challenge

Guard a bucket against destruction, ignore an externally rewritten attribute and order a replacement create-before-destroy with lifecycle meta-arguments.

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

Pre and Post Conditions

Sign up to unlock
—No data yetmedium
About this challenge

Enforce input invariants with a precondition and validate a looked-up value and a resource's own result with postconditions referencing self, each failing with its defined message.

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

Check Blocks

Sign up to unlock
—No data yetmedium
About this challenge

Assert estate health with check blocks and a scoped data source, so failures warn while plan and apply proceed and show up as check results in plan JSON.

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

Self-Defending Configuration

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

Wire destroy guards, ignored attributes, create-before-destroy, pre and postconditions and check blocks into one configuration, then prove each defense fires exactly against a violation matrix.

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.