-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 does not handle updating a PostgreSQL Server Replica #10284
Comments
Some additional information about the scaling. I did some research and scaling up and down requires different logic.
|
* AccTest for replicaset scaling * Raw implementation of scalable Postgres replicaset * Only change SKU for replica * Extend checks for acctests * Simplification by removing downscaling replicas from primary * Little refactor to increase readability * Fix createReplica test and reuse testcode * Comment fixes * Linting * Update website/docs/r/postgresql_server.html.markdown Co-authored-by: WS <20408400+WodansSon@users.noreply.github.com> Co-authored-by: WS <20408400+WodansSon@users.noreply.github.com>
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Using azurerm v2.42.0
Affected Resource(s)
azurerm_postgresql_server
Terraform Configuration Files
I use this tiny custom module :
Debug Output
Changing, for instance, the SKU, fails the apply (the plan is OK) with this message ;
The same goes for when I try to update the storage size. The message tells me that I should first upgrade the replica, then the master (the same message can be seen in the Azure UI, actually).
Panic Output
N/A
Expected Behaviour
When Terraform creates the resource, it knows that he should first create the source_server (the master) then the replica. But when Terraform updates the resource, it should also know that it has to first update the replicas, then the master.
Actual Behaviour
Terraform updates the master first :( .
I can't use depends_on as it will break creation.
Steps to Reproduce
terraform apply
Important Factoids
N/A
References
Did not find any related issues.
The text was updated successfully, but these errors were encountered: