Skip to content

Commit

Permalink
feat: update console image naming convention and version in Terraform…
Browse files Browse the repository at this point in the history
… configuration
  • Loading branch information
Gezi-lzq committed Nov 19, 2024
1 parent 718fcde commit 2bdc50e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions google.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 2bdc50e

Please sign in to comment.