StaffCoder
Terraform
TerraformTerraform 1.15Linux CLI
21 modules · 84 challengesSign up
Modules21 modules · 84 challenges
Parameterize configurations with typed, validated inputs and expose what tooling needs.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Typed Inputs

Sign up to unlock
100%2 of 2 solvedeasy
About this challenge

Extract hardcoded values into typed variables - string, number, bool, list, and object - with defaults and validation rules that reject bad values with defined messages, proving that mistyped and out-of-range inputs fail at plan time while defaults and supplied values flow into the resource verbatim.

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

Value Precedence

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

Set one variable through defaults, an environment variable, an auto-loaded tfvars file, an explicitly passed tfvars file, and a command-line flag, capturing a plan at each rung to prove the precedence order - with the winning command-line value observable in the applied resource.

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

Outputs and Locals

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

Centralize a derived naming expression in a local consumed by multiple resources, and expose described outputs including a sensitive one - reading them back as a plain listing with the sensitive value redacted, a single raw value, and machine-readable JSON where the sensitive value is present.

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

Parameterized Deployment

STAR
Solving it completes the module
100%1 of 1 solvedeasy
About this challenge

Build a fully parameterized configuration: typed and validated variables across primitive and complex types, every value source exercised with its precedence proven rung by rung, shared expressions defined once as locals, and a described output surface with sensitive redaction - consumed to stand up a working deployment from external parameters.

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.