Skip to content

Commit e6504b3

Browse files
authored
fix: update database version validation to include MYSQL_8_4 (#19)
1 parent 4f5854c commit e6504b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ data "google_sql_database_instance" "cloudsql_instance" {
2525
lifecycle {
2626

2727
postcondition {
28-
condition = startswith(self.database_version, "MYSQL_5_7") || startswith(self.database_version, "MYSQL_8_0")
29-
error_message = "Database version must be \"MYSQL_5_7\" or \"MYSQL_8_0\". Other versions are not supported."
28+
condition = startswith(self.database_version, "MYSQL_5_7") || startswith(self.database_version, "MYSQL_8_0") || startswith(self.database_version, "MYSQL_8_4")
29+
error_message = "Database version must be \"MYSQL_5_7\" or \"MYSQL_8_0\" or \"MYSQL_8_4\". Other versions are not supported."
3030
}
3131
}
3232
}

0 commit comments

Comments
 (0)