From 4a1cbc71c75a0dab295935eff2a07d19fcf13896 Mon Sep 17 00:00:00 2001 From: arunma Date: Thu, 4 Jan 2024 19:10:54 +0800 Subject: [PATCH 1/2] fix: modify as config --- terraform/modules/as/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/modules/as/main.tf b/terraform/modules/as/main.tf index 8efabf7..ed423f0 100644 --- a/terraform/modules/as/main.tf +++ b/terraform/modules/as/main.tf @@ -13,7 +13,7 @@ resource "tencentcloud_as_scaling_config" "launch_configuration" { } internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" - internet_max_bandwidth_out = var.internet_max_bandwidth_out +# internet_max_bandwidth_out = var.internet_max_bandwidth_out public_ip_assigned = var.public_ip_assigned password = var.password enhanced_security_service = var.enhanced_security_service From e2c4e3f2dfe2f5d409e745af975b91f1c73ec83e Mon Sep 17 00:00:00 2001 From: arunma Date: Thu, 4 Jan 2024 19:34:33 +0800 Subject: [PATCH 2/2] fix: modify as --- terraform/modules/as/main.tf | 2 +- terraform/modules/as/variables.tf | 4 ++-- terraform/variables.tf | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/terraform/modules/as/main.tf b/terraform/modules/as/main.tf index ed423f0..8efabf7 100644 --- a/terraform/modules/as/main.tf +++ b/terraform/modules/as/main.tf @@ -13,7 +13,7 @@ resource "tencentcloud_as_scaling_config" "launch_configuration" { } internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" -# internet_max_bandwidth_out = var.internet_max_bandwidth_out + internet_max_bandwidth_out = var.internet_max_bandwidth_out public_ip_assigned = var.public_ip_assigned password = var.password enhanced_security_service = var.enhanced_security_service diff --git a/terraform/modules/as/variables.tf b/terraform/modules/as/variables.tf index e76475d..47f7147 100644 --- a/terraform/modules/as/variables.tf +++ b/terraform/modules/as/variables.tf @@ -47,8 +47,8 @@ variable "is_delete_with_instance" { variable "internet_max_bandwidth_out" { type = number - default = 10 - description = "Max bandwidth of Internet access in Mbps. Default is `10`." + default = 0 + description = "Max bandwidth of Internet access in Mbps. Default is `0`." } variable "public_ip_assigned" { diff --git a/terraform/variables.tf b/terraform/variables.tf index 177483b..ed537fc 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -6,5 +6,5 @@ variable "region" { } variable "availability_zone" { - default = "ap-guangzhou-3" + default = "ap-guangzhou-6" }