From 166e15a705ae3c75fd72473ded42c196f17f2865 Mon Sep 17 00:00:00 2001 From: xuyaming Date: Wed, 22 Feb 2023 19:37:50 +0800 Subject: [PATCH] bugfix: ecs postpaid-> prepaid --- common/common_volcengine_version.go | 2 +- example/ecsInstance/main.tf | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/common/common_volcengine_version.go b/common/common_volcengine_version.go index 40dcfb0b..e071eb7c 100644 --- a/common/common_volcengine_version.go +++ b/common/common_volcengine_version.go @@ -2,5 +2,5 @@ package common const ( TerraformProviderName = "terraform-provider-volcengine" - TerraformProviderVersion = "0.0.56" + TerraformProviderVersion = "0.0.57" ) diff --git a/example/ecsInstance/main.tf b/example/ecsInstance/main.tf index 03dc4b0c..8ec51867 100644 --- a/example/ecsInstance/main.tf +++ b/example/ecsInstance/main.tf @@ -6,7 +6,7 @@ resource "volcengine_vpc" "foo" { resource "volcengine_subnet" "foo1" { subnet_name = "subnet-test-1" cidr_block = "172.16.1.0/24" - zone_id = "cn-shanghai-a" + zone_id = "cn-beijing-a" vpc_id = volcengine_vpc.foo.id } @@ -16,20 +16,18 @@ resource "volcengine_security_group" "foo1" { } resource "volcengine_ecs_instance" "default" { - image_id = "image-ybm3r19o545id8bxuanl" - instance_type = "ecs.g2i.large" - instance_name = "xym-tf-test-3" + image_id = "image-aagd56zrw2jtdro3bnrl" + instance_type = "ecs.g1.large" + instance_name = "xym-tf-test-2" description = "xym-tf-test-desc-1" password = "93f0cb0614Aab12" - instance_charge_type = "PrePaid" - period = 1 -# auto_renew =false - system_volume_type = "ESSD_PL0" + instance_charge_type = "PostPaid" + system_volume_type = "PTSSD" system_volume_size = 60 subnet_id = volcengine_subnet.foo1.id security_group_ids = [volcengine_security_group.foo1.id] data_volumes { - volume_type = "ESSD_PL0" + volume_type = "PTSSD" size = 100 delete_with_instance = true }