Skip to content

Commit 42e344d

Browse files
committed
fix(google_cloudsql_mysql): Allow null values for connector_enforcement
Same fix as #223 for MySQL
1 parent 0ef993a commit 42e344d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google_cloudsql_mysql/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ variable "connector_enforcement" {
1616
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."
1717

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

0 commit comments

Comments
 (0)