StaffCoder
Terraform
TerraformTerraform 1.15Linux CLI
21 modules · 84 challengesSign up
Modules21 modules · 84 challenges
Work with IAM in Terraform to define roles and trust, build policy documents as data, and scope permissions to real resource addresses. Finish by building an identity layer as code with no wildcard grants.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Roles and Trust

Sign up to unlock
—No data yetmedium
About this challenge

A service needs an identity it can assume, and the trust relationship is being pasted around as raw JSON strings with quoting bugs.

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

Policy Documents Done Right

Sign up to unlock
—No data yetmedium
About this challenge

Handwritten policy JSON keeps shipping with subtle mistakes - misplaced wildcards, malformed conditions - that nothing validates until something breaks.

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

Least Privilege by Reference

Sign up to unlock
—No data yetmedium
About this challenge

Policies full of wildcards grant the world because nobody wired the real resource addresses into them.

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

Identity Layer as Code

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

A service's whole identity layer must become reviewable code: roles with precise trust relationships, permissions authored as composable documents rather than pasted JSON, every grant scoped to the exact objects it protects with the wildcards banished, and the layer proven to follow infrastructure through replacement - new identifiers flowing into policies without human hands.

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.