Skip to content

Commit 5c65f8f

Browse files
committed
fix: improve the examples
1 parent 2de4309 commit 5c65f8f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

examples/complete/main.tf

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
provider "alicloud" {
2+
region = "cn-zhangjiakou"
3+
}
4+
15
data "alicloud_resource_manager_resource_groups" "default" {
26
}
37

@@ -6,12 +10,15 @@ data "alicloud_zones" "default" {
610
}
711

812
data "alicloud_images" "default" {
9-
name_regex = "^centos_6"
13+
most_recent = true
14+
instance_type = data.alicloud_instance_types.default.instance_types[0].id
1015
}
1116

1217
data "alicloud_instance_types" "default" {
1318
availability_zone = data.alicloud_zones.default.zones[0].id
14-
instance_type_family = "ecs.c6"
19+
cpu_core_count = 2
20+
memory_size = 8
21+
instance_type_family = "ecs.g9i"
1522
}
1623

1724
data "alicloud_db_instance_classes" "default" {
@@ -53,14 +60,14 @@ module "example" {
5360

5461
#alicloud_instance
5562
instance_type = data.alicloud_instance_types.default.instance_types[0].id
56-
system_disk_category = "cloud_efficiency"
63+
system_disk_category = "cloud_essd"
5764
system_disk_name = var.system_disk_name
5865
system_disk_description = var.system_disk_description
5966
image_id = data.alicloud_images.default.images[0].id
6067
internet_max_bandwidth_out = var.internet_max_bandwidth_out
6168
ecs_size = 1200
6269
data_disks_name = "data_disks_name"
63-
category = "cloud_efficiency"
70+
category = "cloud_essd"
6471
description = "tf-ecs-rds-redis-description"
6572
encrypted = true
6673

0 commit comments

Comments
 (0)