Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

许可
----
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----
Expand Down
12 changes: 6 additions & 6 deletions examples/basic-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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
}