From 5a0ebdef6eb0da70e3dfc3830875e01445eb8256 Mon Sep 17 00:00:00 2001 From: Stefano Sibilia Date: Wed, 22 Oct 2025 15:02:47 +0200 Subject: [PATCH] fix: update database version validation to include MYSQL_8_4 --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 04ac192..c535d46 100644 --- a/main.tf +++ b/main.tf @@ -25,8 +25,8 @@ data "google_sql_database_instance" "cloudsql_instance" { lifecycle { postcondition { - condition = startswith(self.database_version, "MYSQL_5_7") || startswith(self.database_version, "MYSQL_8_0") - error_message = "Database version must be \"MYSQL_5_7\" or \"MYSQL_8_0\". Other versions are not supported." + condition = startswith(self.database_version, "MYSQL_5_7") || startswith(self.database_version, "MYSQL_8_0") || startswith(self.database_version, "MYSQL_8_4") + error_message = "Database version must be \"MYSQL_5_7\" or \"MYSQL_8_0\" or \"MYSQL_8_4\". Other versions are not supported." } } }