-
Notifications
You must be signed in to change notification settings - Fork 143
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
Stop using upgrade
in terraform init calls
#2673
Conversation
/test-extended |
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3167341023 (with refid (in response to this comment from @tamirkamara) |
/test |
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3167580409 (with refid (in response to this comment from @tamirkamara) |
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.
LGTM
Resolves #2672
What is being addressed
Unmarshal terraform errors in
migrate.sh
.This is a result of providers being upgraded and their schema changes. This is usually handled by
terraform apply
but we call other commands in the migrate script before the apply which might produce an error.How is this addressed
terraform refresh
before we callshow
to sort out any schema changesrequired_providers
block until recently and some deployments might see providers version move backward when then upgrade to the latest AzureTRE (mostly the random provider).-upgrade
when callingterraform init
as that causes an upgrade and disregard the locks file. We don't need that behavior to happen automatically.