Skip to content

Commit f28877c

Browse files
committed
test: improve the examples
1 parent e6a83eb commit f28877c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
## 1.3.0 (Unreleased)
21
## 1.2.1 (March 14, 2025)
32

43
- examples/complete: improve the examples [GH-7](https://github.com/alibabacloud-automation/terraform-alicloud-dnat/pull/7)

examples/complete/main.tf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1+
provider "alicloud" {
2+
region = "ap-southeast-5"
3+
}
4+
15
data "alicloud_zones" "default" {
26
}
37

48
data "alicloud_images" "default" {
5-
name_regex = "ubuntu_18"
9+
instance_type = data.alicloud_instance_types.default.instance_types[0].id
10+
owners = "system"
11+
most_recent = true
612
}
713

814
data "alicloud_instance_types" "default" {
915
availability_zone = data.alicloud_zones.default.zones[0].id
1016
cpu_core_count = 2
1117
memory_size = 8
12-
instance_type_family = "ecs.g6"
18+
instance_type_family = "ecs.g9i"
1319
}
1420

1521
module "vpc" {
@@ -40,7 +46,7 @@ module "ecs-instance" {
4046
vswitch_ids = [module.vpc.this_vswitch_ids[0]]
4147
security_group_ids = [module.security_group.this_security_group_id]
4248
associate_public_ip_address = false
43-
system_disk_category = "cloud_ssd"
49+
system_disk_category = "cloud_essd"
4450
system_disk_size = var.system_disk_size
4551
}
4652

0 commit comments

Comments
 (0)