Topology and IaC Lab
This is a capstone-on lab. The outputs are committed to your capstone repo, not to a scratch folder.
Retrieval Prompts
- State the three cloud-platform options from the picking rubric and the axis on which they are ranked.
- Draw the three capstone topology shapes from memory.
- State the condition under which you would collapse
stagingand rely on preview environments instead. - State what Terraform state contains and what locking prevents.
- State the rule for when to extract a local module vs keep resources inline.
Compare and Distinguish
Separate these pairs clearly:
- preview environment vs staging environment
- local Terraform module vs published registry module
- state backend vs state file
- secret value vs secret name
Common Mistake Check
For each statement, identify the error:
- "We use AWS because it's the biggest, not because it fits the capstone."
- "Our staging is four weeks behind prod; it still catches bugs."
- "I committed
.env.examplewith real values so new developers have a working starting point." - "We wrapped a single Cloud Run resource in a module to keep things tidy."
- "We skipped setting up a locking backend because we're a team of one."
Mini Application
Do all four tasks, committed to your capstone repo:
- Write
library/raw/decisions/001-platform.mdwith three candidate platforms, a cost/control/complexity rubric, and the chosen platform with two accepted tradeoffs. - Commit
library/raw/architecture.mmd(or a PNG) showing the topology with every box labeled and every arrow annotated with protocol. - Write
library/raw/decisions/003-environments.mdwith the environment table, monthly cost cap, and the reason each env exists. - Scaffold a Terraform root with a working remote backend and at least one local module.
terraform initandterraform planmust both succeed.
Evidence Check
This page is complete only if a reviewer can:
- read the three decision docs in under 10 minutes
- run
terraform init && terraform planfrom the repo with only cloud login - name your topology shape from the diagram alone
If any of those fails, fix the doc or the IaC, not the lab page.