@@ -123,33 +123,33 @@ resource "alicloud_security_group_rule" "allow_all_tcp" {
123123# ======================================#
124124# EL8 AMD64 / ARM64
125125# ======================================#
126- data "alicloud_images" "el8_img" {
127- owners = " system"
128- name_regex = local. selected_images . el8
129- }
130-
131- resource "alicloud_instance" "pg-el8" {
132- instance_name = " pg-el8"
133- host_name = " pg-el8"
134- private_ip = " 10.10.10.8"
135- instance_type = local. selected_instype
136- image_id = " ${ data . alicloud_images . el8_img . images . 0 . id } "
137- vswitch_id = " ${ alicloud_vswitch . vsw . id } "
138- security_groups = [" ${ alicloud_security_group . default . id } " ]
139- password = " PigstyDemo4"
140- instance_charge_type = " PostPaid"
141- internet_charge_type = " PayByTraffic"
142- spot_strategy = local. spot_policy
143- spot_price_limit = local. spot_price_limit
144- internet_max_bandwidth_out = local. bandwidth
145- system_disk_category = " cloud_essd"
146- system_disk_performance_level = " PL1"
147- system_disk_size = local. disk_size
148- }
149-
150- output "el8_ip" {
151- value = " ${ alicloud_instance . pg-el8 . public_ip } "
152- }
126+ # data "alicloud_images" "el8_img" {
127+ # owners = "system"
128+ # name_regex = local.selected_images.el8
129+ # }
130+ #
131+ # resource "alicloud_instance" "pg-el8" {
132+ # instance_name = "pg-el8"
133+ # host_name = "pg-el8"
134+ # private_ip = "10.10.10.8"
135+ # instance_type = local.selected_instype
136+ # image_id = "${data.alicloud_images.el8_img.images.0.id}"
137+ # vswitch_id = "${alicloud_vswitch.vsw.id}"
138+ # security_groups = ["${alicloud_security_group.default.id}"]
139+ # password = "PigstyDemo4"
140+ # instance_charge_type = "PostPaid"
141+ # internet_charge_type = "PayByTraffic"
142+ # spot_strategy = local.spot_policy
143+ # spot_price_limit = local.spot_price_limit
144+ # internet_max_bandwidth_out = local.bandwidth
145+ # system_disk_category = "cloud_essd"
146+ # system_disk_performance_level = "PL1"
147+ # system_disk_size = local.disk_size
148+ # }
149+ #
150+ # output "el8_ip" {
151+ # value = "${alicloud_instance.pg-el8.public_ip}"
152+ # }
153153
154154
155155
0 commit comments