-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Terraofrm asks to migrate when backend config changes remote location #20448
Comments
Hi @aaronbrashears, I think the |
I have tested |
Hello @apparentlymart, |
I have the same issue here, and i hace not found any option to correct this behavior in azure devops |
Same here |
Hi all, The The most recent comments seem to be in a slightly different situation: activating a backend for the first time when you already have a local state file in your working directory. It's true that With that said, I don't really understand how an automated workflow would end up with a local state file in the working directory prior to running The expected situation for automation would be for your configuration under version control to contain a |
Terraform Version
Terraform Configuration Files
Expected Behavior
Terraform should use new the backend config provided to
terraform init
which has changed since the lastterraform apply
Actual Behavior
Terraform emits the message:
Steps to Reproduce
terraform init -backend-config="bucket=bucket1" -backend-config="key=key1" -backend-config="profile=profile1" -backend-config="region=us-west-2"
terraform apply
terraform init -backend-config="bucket=bucket2" -backend-config="key=key2" -backend-config="profile=profile2" -backend-config="region=us-west-2"
terraform apply
Additional Context
This is useful to have exactly the same terraform used on different accounts using remote state.
The text was updated successfully, but these errors were encountered: