We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ad3e6 commit 923b770Copy full SHA for 923b770
modules/postgresql/read_replica.tf
@@ -64,10 +64,10 @@ resource "google_sql_database_instance" "replicas" {
64
}
65
66
dynamic "psc_config" {
67
- for_each = ip_configuration.value.psc_enabled ? ["psc_enabled"] : []
+ for_each = ip_configuration.value.psc_enabled ? ["psc_enabled"] : ["psc_disabled"]
68
content {
69
psc_enabled = ip_configuration.value.psc_enabled
70
- allowed_consumer_projects = ip_configuration.value.psc_allowed_consumer_projects
+ allowed_consumer_projects = ip_configuration.value.psc_enabled ? ip_configuration.value.psc_allowed_consumer_projects : []
71
72
73
0 commit comments