Interview Prep/Terraform/CI/CD and Automation

How do you automate provider and module upgrades?

IntermediateProductionCI/CD and Automation
Answer

Renovate or Dependabot reads required_providers and module version and opens PRs. The pipeline runs terraform init -upgrade (to update the lock file), plan and tests. Auto-merge only if the plan shows no changes and the update is a patch. Majors get a human and a runbook.

All Terraform questions Roadmap: Terraform in production

More on CI/CD and Automation