Skip to content
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

Terraform upgrade causing issues #1949

Closed
sandy-0007 opened this issue Dec 17, 2021 · 2 comments · Fixed by #1965
Closed

Terraform upgrade causing issues #1949

sandy-0007 opened this issue Dec 17, 2021 · 2 comments · Fixed by #1965

Comments

@sandy-0007
Copy link

At present, I am running on Atlantis version="0.17.2" and Terraform="0.13.5".
Later, I upgraded the Atlantis="0.17.5" and Terraform="1.1.1"

When I ran the "atlantis plan", I got to the below error

Error: Backend configuration changed

A change in the backend configuration has been detected, which may require
migrating existing state.

If you wish to attempt automatic migration of the state, use "terraform init
-migrate-state".
If you wish to store the current configuration with no changes to the state,
use "terraform init -reconfigure"

FYI, all my state files are stored in remote cloud bucket. Looking for your kind advice on how I could get this fixed without corrupting the existing state.

@dan-petty
Copy link

You are probably going to want to follow the upgrade guides:
https://www.terraform.io/language/upgrade-guides

If you think your code is ready for the version update, you could add the parameters to your atlantis config:

- init:
    extra_args: ["-migrate-state"]

@chenrui333
Copy link
Member

Just made a new release 0.18.0 (let me know if that fixed your issue, thanks!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants