Review Terraform

Review Terraform changes for plan safety, existing Azure resources, and deployment-identity permissions. Use for Terraform review or deployability questions.

learntocloud Updated

File contents

Review Terraform

Review the diff and an Azure-backed plan before recommending merge.

Check:

  • every planned action matches the intended diff
  • no unexpected destroy, replacement, identity, auth, networking, or data change
  • resources Azure creates by default are updated/imported rather than recreated
  • the GitHub Actions identity has required Azure RBAC and, for azuread_*, Microsoft Graph permissions
  • provider and lock-file-only updates produce no infrastructure changes
  • Terraform formatting, validation, and tests pass

For risky identity changes, separate the platform gate from application deployment.

Use the plan-terraform skill when planning an open pull request against remote state. Production applies must run through app-deploy.yml, which calls the reusable infra-deploy.yml before application deployment. Never infer safety from terraform validate alone.

learntocloud/learn-to-cloud-app/tree/main/.github/skills/review-terraform commit 2b9725291a

Frequently asked questions

npx skillmds@latest add learntocloud/review-terraform