Skip to content

Commit 0ef993a

Browse files
authored
fix(google_cloudsql_postgres): Allow null values for connector_enforcement. (#223)
1 parent 0f351d1 commit 0ef993a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google_cloudsql_postgres/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ variable "connector_enforcement" {
1414
description = "Enables the enforcement of Cloud SQL Auth Proxy or Cloud SQL connectors for all the connections. If enabled, all the direct connections are rejected."
1515

1616
validation {
17-
condition = var.connector_enforcement == null || contains(["NOT_REQUIRED", "REQUIRED"], var.connector_enforcement)
17+
condition = var.connector_enforcement == null ? true : contains(["NOT_REQUIRED", "REQUIRED"], var.connector_enforcement)
1818
error_message = "Valid values for connector_enforcement: NOT_REQUIRED, REQUIRED"
1919
}
2020
}

0 commit comments

Comments
 (0)