Changed SQL Server declarative code and got PSQL TF Plan error #55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
On the second Terraform run, after changing the SQL Server user/database creation code, the STACKIT Terraform provider fails during the refresh/read of an existing PostgreSQL Flex database resource in state. The provider returns a different resource identity than what is stored in the Terraform state and Terraform aborts with Error: Unexpected Identity Change.
This happens although the plan itself is about creating SQL Server Flex resources. The failure occurs while reading stackitprivatepreview_postgresflexalpha_database.testDB.
Steps to reproduce
Actual behavior
Terraform refreshes the existing PostgreSQL resources and fails during the read of:
stackitprivatepreview_postgresflexalpha_database.testDB
With the following error (excerpt):
Notably, region appears to be populated with the Postgres instance_id in the “Current Identity”, and the “New Identity” differs (instance_id masked in the log). This identity mismatch aborts Terraform with exit code 1.
Expected behavior
On refresh/read, the provider must return a stable identity that matches what is stored in Terraform state.
Environment
terraform --version):>= 0.14.0"v0.0.11-alphaclosing because fixed in 0.0.16-alpha