-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Open
Labels
Description
Terraform Version
$ terraform version
Terraform v1.8.4
on linux_arm64
Your version of Terraform is out of date! The latest version
is 1.9.8. You can update by downloading from https://www.terraform.io/downloads.html
Terraform Configuration Files
$ terraform init --backend-config=./states/po.conf
Initializing the backend...
Initializing modules...
╷
│ 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".
╵
Debug Output
Not relevant here.
Expected Behavior
│ If you wish to change the current configuration with no changes to the state, use "terraform
│ init -reconfigure".
Actual Behavior
│ If you wish to store the current configuration with no changes to the state, use "terraform
│ init -reconfigure".
Steps to Reproduce
$ terraform init --backend-config=./states/pp.conf
Initializing the backend...
Initializing modules...
╷
│ 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".
╵
Additional Context
I found a bit misleading the sentence using the word store because in the end it's just changing the configuration of terraform without touching the state part.
I can make the relevant PR in this file:
If it seems appropriate for you.
References
No response