This Terraform upgrade must be done with great care, as it can cause irreparable damage to a deployment.
This should be done AFTER changes for #265 have been approved via PR and merged into main
This is a PREREQ for upgrading Cumulus to v18
This should be done in isolation from any other terraform changes
Steps:
[x] Checkout and pull the latest code on the main branch (which should include changes made for #265)
[x] Run make all-up-yes to make sure there are no pending terraform changes prior to upgrading terraform
[x] BACKUP all tfstate files in the "tfstate" bucket:
make bash
SUFFIX=$(aws sts get-caller-identity --query Account --output text | cut -c 9-12)
aws s3 cp --recursive s3://csda-${CUMULUS_PREFIX}-tfstate-${SUFFIX}/${TS_ENV} s3://csda-${CUMULUS_PREFIX}-tfstate-${SUFFIX}/${TS_ENV}-0.13.6
[x] In .terraform-version change the version number to 1.5.7
[x] Run make all-init
[x] Run make all-plan to examine planned changes, if any (not sure if the version change will cause any errors due to deprecations and such)
[x] If there aren't any errors from the plan, run make all-up-yes, which should update the tfstate files to match the format for the new terraform version (NOTE: this should show 0 changes for any of the modules, and should simply update the version of the tfstate files)
This Terraform upgrade must be done with great care, as it can cause irreparable damage to a deployment.
Steps:
main
branch (which should include changes made for #265)make all-up-yes
to make sure there are no pending terraform changes prior to upgrading terraform.terraform-version
change the version number to1.5.7
make all-init
make all-plan
to examine planned changes, if any (not sure if the version change will cause any errors due to deprecations and such)make all-up-yes
, which should update the tfstate files to match the format for the new terraform version (NOTE: this should show 0 changes for any of the modules, and should simply update the version of the tfstate files)