cloud-platform
cloud-platform copied to clipboard
Terraform upgrade to version 1.2.5 - all modules used in environments repo
Background
Upgrading to Terraform v1.2.5 https://github.com/ministryofjustice/cloud-platform-environments
Upgrade Paths: 0.14 - 1.0.11 1.0.11 to currently 1.2.5
This may split into multiple tickets to upgrade to 1.0.11 and create a release and then to 1.2.5 and create a release:
github.com/ministryofjustice/cloud-platform-terraform-dms github.com/ministryofjustice/cloud-platform-terraform-dynamodb-cluster github.com/ministryofjustice/cloud-platform-terraform-ecr-credentials github.com/ministryofjustice/cloud-platform-terraform-elasticache-cluster github.com/ministryofjustice/cloud-platform-terraform-elasticsearch github.com/ministryofjustice/cloud-platform-terraform-github-design-history github.com/ministryofjustice/cloud-platform-terraform-github-prototype github.com/ministryofjustice/cloud-platform-terraform-irsa github.com/ministryofjustice/cloud-platform-terraform-pushgateway github.com/ministryofjustice/cloud-platform-terraform-rds-aurora github.com/ministryofjustice/cloud-platform-terraform-rds-instance github.com/ministryofjustice/cloud-platform-terraform-s3-bucket github.com/ministryofjustice/cloud-platform-terraform-serviceaccount github.com/ministryofjustice/cloud-platform-terraform-sns-topic github.com/ministryofjustice/cloud-platform-terraform-sqs
Proposed user journey
- Upgrade modules to v1.0.11 first (this may split into multiple tickets)
- Once it is applied successfully
- Upgrade the modules to version 1.2.5
Approach
follow this runbook: https://runbooks.cloud-platform.service.justice.gov.uk/upgrade-terraform-version.html#upgrade-all-terraform-modules
- 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 and terraform version in the infrastructure repo related to 1.0.11
- 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 and terraform version in the infrastructure repo related to 1.2.5
- 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