-
Notifications
You must be signed in to change notification settings - Fork 54
cli: Terraform migrations on upgrade #1685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for constellation-docs canceled.
|
re "design descision": I would expect re "Constellation performs a terraform plan on selected targets (as of now, only on the MAA on Azure)": could you point me to the code that restricts the plan to any specific resources? while reading the changes it seemed to me like a general plan would happen on all resources. |
re "design decision" The reason I would see is, that if an upgrade goes wrong, the user should be able to rollback to the old resource state manually. Therefore we should at least keep the old state somewhere in the upgrade folder. I will prepare something to put the current state into a backup folder and move the upgraded state into the |
881724f
to
f792467
Compare
Co-authored-by: Otto Bittner <cobittner@posteo.net>
9fea7a5
to
c30844f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested it again on AWS and Azure. Looks great now :)
Proposed change(s)
upgrade apply
command to have a MAA added to his cloud resources.constellation-terraform
is backed up intoconstellation-upgrade/constellation-upgrade-terraform-backup
. If the user wants to rollback to the pre-upgrade state, he can do it thereconstellation-terraform
dir into theconstellation-upgrade/constellation-upgrade-terraform
dir.constellation-upgrade/constellation-upgrade-terraform
dir with the new Terraform script files (embedded in the CLI)terraform plan
on selected targets (as of now, only on the MAA on Azure)constellation-terraform
is replaced with the newconstellation-upgrade/constellation-upgrade-terraform
. The output of the migrated resources is written intoterraform-migration-output.json
(e.g. the attestation URL of the MAA provider)Additional info
Checklist