StaffCoder
Terraform
TerraformTerraform 1.15Linux CLI
21 modules · 84 challengesSign up
Modules21 modules · 84 challenges
Work with modules to extract repeated configuration, run one module twice with different inputs, and pin modules from local and git sources. Finish by rebuilding a flat configuration as modules without recreating anything.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Extract a Module

Sign up to unlock
—No data yeteasy
About this challenge

Extract a pasted three-resource pattern into a local module with input variables and outputs, and consume it from the root with an identical applied result.

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

Two Instances, Two Configurations

Sign up to unlock
—No data yeteasy
About this challenge

Instantiate one module twice with per-environment inputs, wire one instance's output into the other, and keep changes local to one instance.

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

Module Sources and Versions

Sign up to unlock
—No data yeteasy
About this challenge

Consume modules from a local path and from a tag-pinned git repository, and prove that moving the pin fetches and applies the other revision.

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

Modular Rebuild

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

Rebuild a copy-paste configuration from a local module and a tag-pinned git module, instantiated per environment, wired by outputs and proven equivalent to the target.

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.