'Terraform : Init
I have changed the version of the Terraform provider to get through an error and this has caused another one. I am using Azure Devops pipeline to build an Azure function.
And now I am receiving this error when the piepline does a Terraform Init. Other ones were done earlier in the pipeline and this has not caused this issue.
Initializing the backend...
╷
│ 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".
Solution 1:[1]
Fixed it by running terraform init -reconfigure
and checking the version in the logs and amend as necessary.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | halfer |