Skip to content

Commit

Permalink
bugfix: ecs postpaid-> prepaid
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyaming0800 committed Feb 22, 2023
1 parent 507b159 commit 166e15a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion common/common_volcengine_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package common

const (
TerraformProviderName = "terraform-provider-volcengine"
TerraformProviderVersion = "0.0.56"
TerraformProviderVersion = "0.0.57"
)
16 changes: 7 additions & 9 deletions example/ecsInstance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}
Expand Down

0 comments on commit 166e15a

Please sign in to comment.