From 2bdc50e65ec6c8062800a65b2b3d25a331abdf0e Mon Sep 17 00:00:00 2001 From: Gezi-lzq Date: Tue, 19 Nov 2024 15:53:00 +0800 Subject: [PATCH] feat: update console image naming convention and version in Terraform configuration --- google.tf | 7 +++++-- variables.tf | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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" {