Skip to content

Commit

Permalink
udpate aliyun tf template to rocky9 instead of centos7.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonng committed Mar 21, 2023
1 parent 9afa25d commit 16f2263
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions terraform/spec/aliyun.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource "alicloud_security_group_rule" "allow_all_tcp" {
# AVAILABLE PUBLIC IMAGES
# EL7: centos_7_9_x64_20G_alibase_20220824.vhd (default)
# EL8: rockylinux_8_6_x64_20G_alibase_20220824.vhd
# EL9: rockylinux_9_0_x64_20G_alibase_20220824.vhd
# EL9: rockylinux_9_1_x64_20G_alibase_20230208.vhd

# https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/instance
resource "alicloud_instance" "pg-meta-1" {
Expand All @@ -51,7 +51,7 @@ resource "alicloud_instance" "pg-meta-1" {
instance_type = "ecs.s6-c1m2.small"
vswitch_id = "${alicloud_vswitch.vsw.id}"
security_groups = ["${alicloud_security_group.default.id}"]
image_id = "centos_7_9_x64_20G_alibase_20220824.vhd"
image_id = "rockylinux_9_1_x64_20G_alibase_20230208.vhd"
password = "PigstyDemo4"
private_ip = "10.10.10.10"
internet_max_bandwidth_out = 40 # 40Mbps , alloc a public IP
Expand All @@ -63,7 +63,7 @@ resource "alicloud_instance" "pg-test-1" {
instance_type = "ecs.s6-c1m1.small"
vswitch_id = "${alicloud_vswitch.vsw.id}"
security_groups = ["${alicloud_security_group.default.id}"]
image_id = "centos_7_9_x64_20G_alibase_20220824.vhd"
image_id = "rockylinux_9_1_x64_20G_alibase_20230208.vhd"
password = "PigstyDemo4"
private_ip = "10.10.10.11"
}
Expand All @@ -74,7 +74,7 @@ resource "alicloud_instance" "pg-test-2" {
instance_type = "ecs.s6-c1m1.small"
vswitch_id = "${alicloud_vswitch.vsw.id}"
security_groups = ["${alicloud_security_group.default.id}"]
image_id = "centos_7_9_x64_20G_alibase_20220824.vhd"
image_id = "rockylinux_9_1_x64_20G_alibase_20230208.vhd"
password = "PigstyDemo4"
private_ip = "10.10.10.12"
}
Expand All @@ -85,7 +85,7 @@ resource "alicloud_instance" "pg-test-3" {
instance_type = "ecs.s6-c1m1.small"
vswitch_id = "${alicloud_vswitch.vsw.id}"
security_groups = ["${alicloud_security_group.default.id}"]
image_id = "centos_7_9_x64_20G_alibase_20220824.vhd"
image_id = "rockylinux_9_1_x64_20G_alibase_20230208.vhd"
password = "PigstyDemo4"
private_ip = "10.10.10.13"
}
Expand Down

0 comments on commit 16f2263

Please sign in to comment.