From 0b6ac8e7b2655941b9c9d5a54f64b2ac4bd9b2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E7=8F=8D=E7=8F=8D?= Date: Fri, 17 Sep 2021 16:56:04 +0800 Subject: [PATCH 1/2] Modified author contact information --- README-CN.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README-CN.md b/README-CN.md index 2639e1f..777a6bb 100644 --- a/README-CN.md +++ b/README-CN.md @@ -50,7 +50,7 @@ module "ecs_spot_instance" { 作者 ------- -Created and maintained by Wang li(@Lexsss, 13718193219@163.com) and He Guimin(@xiaozhu36, heguimin36@163.com) +Created and maintained by Alibaba Cloud Terraform Team(terraform@alibabacloud.com). 许可 ---- diff --git a/README.md b/README.md index 2c38849..c37e15e 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ If you have any problems when using this module, please opening a [provider issu Authors ------- -Created and maintained by Wang li(@Lexsss, 13718193219@163.com) and He Guimin(@xiaozhu36, heguimin36@163.com) +Created and maintained by Alibaba Cloud Terraform Team(terraform@alibabacloud.com). License ---- From 4beb1031bd56aa3815445bf59a351573e3148aa0 Mon Sep 17 00:00:00 2001 From: "992735020@qq.com" <992735020@qq.com> Date: Thu, 11 Nov 2021 14:13:31 +0800 Subject: [PATCH 2/2] modify example --- examples/basic-example/main.tf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/basic-example/main.tf b/examples/basic-example/main.tf index 0aaf268..782a613 100644 --- a/examples/basic-example/main.tf +++ b/examples/basic-example/main.tf @@ -21,9 +21,9 @@ data "alicloud_vpcs" "default" { is_default = true } -data "alicloud_security_groups" "default" { - name_regex = "default" - vpc_id = data.alicloud_vpcs.default.ids.0 +resource "alicloud_security_group" "default" { + name = "test-group" + vpc_id = data.alicloud_vpcs.default.ids.0 } data "alicloud_vswitches" "default" { @@ -47,9 +47,9 @@ module "ecs_spot_instance" { profile = var.profile instance_type_family = "ecs.g6" vswitch_id = length(data.alicloud_vswitches.default.ids) > 0 ? data.alicloud_vswitches.default.ids.0 : concat(alicloud_vswitch.default.*.id, [""])[0] - security_group_ids = data.alicloud_security_groups.default.ids + security_group_ids = [alicloud_security_group.default.id] associate_public_ip_address = true internet_max_bandwidth_out = 10 - spot_strategy = "SpotWithPriceLimit" - spot_price_limit = 0.5 + spot_strategy = "NoSpot" +# spot_price_limit = 0.5 } \ No newline at end of file