diff --git a/google.tf b/google.tf index b2d5018..086ecc3 100644 --- a/google.tf +++ b/google.tf @@ -407,10 +407,13 @@ resource "google_compute_address" "web_ip" { locals { - console_image_name = var.use_custom_image ? var.automq_byoc_env_console_image : "automq-control-center-prod-${var.automq_byoc_env_version}-x86_64" + console_image_name = var.use_custom_image ? var.automq_byoc_env_console_image : "Automq-control-center-Prod-${var.automq_byoc_env_version}-x86_64" } data "google_compute_image" "console_image" { - name = local.console_image_name + name = lower( + replace(replace(local.console_image_name, + "_", "-"), + ".", "-")) } data "google_compute_network" "vpc" { diff --git a/variables.tf b/variables.tf index 0ce958c..e76e57a 100644 --- a/variables.tf +++ b/variables.tf @@ -67,7 +67,7 @@ variable "automq_byoc_machine_type" { variable "automq_byoc_env_version" { description = "Set the version for the AutoMQ BYOC environment console. It is recommended to keep the default value, which is the latest version." type = string - default = "1.2.10" + default = "1.4.0" } variable "use_custom_image" {