Leadership wants developers to self-serve infrastructure safely. How do you design the platform?
AdvancedScenarioPipelines Terraform Cloud and OpenTofu
Answer
Situation read → Tickets to the platform team don't scale.
What I'd do →
- Publish versioned golden modules in a private registry with examples.
- Give teams their own repos and workspaces created from a template, with guardrails: policy as code, cost checks, least-privilege roles.
- Offer a small form or Backstage template that generates a PR with the module call.
- Platform team owns modules and policies; app teams own their usage.
Why → Paved roads let teams move fast, and guardrails keep them safe.
Interview tip → Measure it: time to first environment and number of exceptions.
More on Pipelines Terraform Cloud and OpenTofu
Build a basic GitHub Actions pipeline: plan on pull request, apply on merge to main.BeginnerReviewers can't read raw plan logs. How do you present the plan in the PR?IntermediateTwo PRs merge close together and both apply to the same stack. What prevents trouble?IntermediateHow do you add a manual approval before prod applies?IntermediateCompare Atlantis, HCP Terraform and a hand-built GitHub Actions pipeline.IntermediateA saved plan was approved yesterday and apply fails because main changed. How do you avoid dead approvals?Intermediate