You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now we try to change the password of the cluster.
We will encounter two possible errors:
1.
We leave the administrator_login_password of read replica to be null, (wait forthis password is changedin primary replica and propagated to read replica), terraform plan will fail with:
The argument "administrator_login_password" is required, but no definition was found.
2.
We change the password of primary replica and read replica at the same time, terraform apply will fail with:
performing Update: unexpected status 400 with error: bad_request: Administrator login password cannot be updated on read replicas.
3.
We have to change only the administrator_login_password in primary replica, but leave the administrator_login_password of read replica untouched, but this will cause weird code and inconsistency between terraform state and actual settings.
If we use Azure API to create/update the CosmosDB postgresql cluster, this problem doesn't exist because administrator_login_password is an optional value for Azure API, it can be set to null.https://learn.microsoft.com/en-us/rest/api/postgresqlhsc/#cluster-create-and-update
Expected Behaviour
administrator_login_password should be optional for azurerm_cosmosdb_postgresql_cluster, at least for read replica
Actual Behaviour
No response
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.2.9
AzureRM Provider Version
3.76.0
Affected Resource(s)/Data Source(s)
azurerm_cosmosdb_postgresql_cluster
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
administrator_login_password should be optional for azurerm_cosmosdb_postgresql_cluster, at least for read replica
Actual Behaviour
No response
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: