Open tgrevillot opened 1 year ago
Thanks for raising this issue. It has to wait at least 15 minutes until the configuration of source server is ready before creating replica server. And service team confirmed that it only supports creating read replica servers in sequence.
Thanks for your answer. Do you know if this issue is on the roadmap ? Because this is a feature we would like to use.
I still experience the same issue. On the portal the collation and charset not update and terraform wants to redeploy new databases and delete the current databases. Please when will this issue be fixed.
I still experience the same issue.
Is there an existing issue for this?
Community Note
Terraform Version
1.4.6
AzureRM Provider Version
3.61.0
Affected Resource(s)/Data Source(s)
azurerm_postgresql_flexible_server
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Main PostgreSQL Flexible Server and its 2 replica should have been created.
Actual Behaviour
Actually the first Read-replica is correctly created but both of other replicas requests are rejected (after around 1min30) and failed with this error 500.
After several tests, it seems that the only way to create multiple Read-Replicas with terraform is to do it sequentially, which is impossible to do with a "count operation" (because all operations are done in parallells) currently.
The only workaround for this issue that I found until now is to set the "-parallelism" argument of terraform CLI to 1 (which force Terraform to not create multiple resources on parallel).
But this is not a satisfying solution and I want like to know if anyone here already encountered the same issue or if I misunderstand something in these concepts.
Steps to Reproduce
Important Factoids
No response
References
No response