Reviewers can't read raw plan logs. How do you present the plan in the PR?
IntermediateScenarioPipelines Terraform Cloud and OpenTofu
Answer
Situation read → Review quality drops when diffs are hard to find.
What I'd do →
- Run
terraform show -no-color tfplanand post it as a PR comment (collapsed, truncated). - Add a short summary from
terraform show -json(counts of create/update/delete). - Use Atlantis, Spacelift, HCP Terraform or an action that updates one sticky comment per PR.
Why → Reviewers approve what they can see; a destroy count in the summary is the number they care about.
Interview tip → Redact sensitive values and avoid posting secrets in PR comments.
More on Pipelines Terraform Cloud and OpenTofu
Build a basic GitHub Actions pipeline: plan on pull request, apply on merge to main.BeginnerTwo 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?IntermediateExplain HCP Terraform workflows: VCS-driven, CLI-driven and API-driven.Beginner