Skip to content

Commit 3cb3eee

Browse files
fix: revert psc_config workaround - causes permanent drift (#754)
1 parent 61a1e64 commit 3cb3eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/postgresql/read_replica.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ resource "google_sql_database_instance" "replicas" {
6363
}
6464
}
6565
dynamic "psc_config" {
66-
for_each = ip_configuration.value.psc_enabled ? ["psc_enabled"] : ["psc_disabled"]
66+
for_each = ip_configuration.value.psc_enabled ? ["psc_enabled"] : []
6767
content {
6868
psc_enabled = ip_configuration.value.psc_enabled
69-
allowed_consumer_projects = ip_configuration.value.psc_enabled ? ip_configuration.value.psc_allowed_consumer_projects : []
69+
allowed_consumer_projects = ip_configuration.value.psc_allowed_consumer_projects
7070
}
7171
}
7272
}

0 commit comments

Comments
 (0)