cloud-platform
cloud-platform copied to clipboard
Terraform upgrade to version 1.2.5 - all modules in infrastructure under terraform/modules/
Background
Upgrading to Terraform v1.2.5 https://github.com/ministryofjustice/cloud-platform-infrastructure/tree/main/terraform/modules
Upgrade Paths: 0.14 - 1.0.11 1.0.11 to currently 1.2.5
Proposed user journey
- Upgrade modules to v1.0.11 first
- Once it is applied successfully
- Upgrade the modules to version 1.2.5
Approach
- Update the terraform version for each module to v1.0.11
- Make sure there are no changes, and if there are any minor changes update accordingly ( executing a terraform plan resulting in no proposed changes is crucial. Otherwise, pending changes can add additional unknowns to the upgrade process.)
- Create a new release for 1.011
- Update the module version in the infrastructure repo
- Apply the changes (Please note that completing the upgrade will require running a successful terraform apply for your target version)
- Update the terraform version for each module to v1.2.5
-
- Make sure there are no changes, and if there are any minor changes update accordingly ( executing a terraform plan resulting in no proposed changes is crucial. Otherwise, pending changes can add additional unknowns to the upgrade process.)
- Create a new release for 1.2.5
- Update the module version in the infrastructure repo
- Apply the changes (Please note that completing the upgrade will require running a successful terraform apply for your target version)
Which part of the user docs does this impact
https://runbooks.cloud-platform.service.justice.gov.uk/upgrade-terraform-version.html#upgrade-terraform-version
Questions / Assumptions
No breaking changes in v0.15 https://github.com/hashicorp/terraform/blob/v0.15/CHANGELOG.md
Definition of done
- [ ] Terraform version upgraded to v1.2.5