Closed villesau closed 11 months ago
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
This apparently happens when there's a discrepancy between replica and primary db flags. However, it is not clear from the error message, and if replica and primary needs the same flags, those should be duplicated in the background rather than setting explicitly for the instances.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Still valid.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
TL;DR
I'm getting:
on second terraform apply when setting:
database_flags = [{ name = "cloudsql.iam_authentication", value = "on" }, { name = "cloudsql.logical_decoding", value = "on" }]
First run succeeds.Expected behavior
It should consistently succeed.
Observed behavior
When running terraform apply first time when setting the flag, everything goes as expected. When running for the second time, the replica database detects changes and tries to apply changes to replica db:
Terraform Configuration
Terraform Version
Additional information
No response