ecs-instance
alibaba/ecs-instance/alicloud
Terraform module which creates ECS instance(s) on Alibaba Cloud.
Alicloud ECS Instance Terraform Module In VPC terraform-alicloud-ecs-instance English | 简体中文 Terraform module which creates ECS instance(s) on Alibaba Cloud. These types of resources are supported: ECS Instance Usage ``hcl data "alicloud_images" "ubuntu" { most_recent = true name_regex = "^ubuntu_18.64" } module "ecs_cluster" { source = "alibaba/ecs-instance/alicloud" number_of_instances = 5 name = "my-ecs-cluster" use_num_suffix = true image_id = data.alicloud_images.ubuntu.ids.0 instance_type = "ecs.sn1ne.large" vswitch_id = "vsw-fhuqie" security_group_ids = ["sg-12345678"] associate_public_ip_address = true internet_max_bandwidth_out = 10 key_name = "for-ecs-cluster" system_disk_category = "cloud_ssd" system_disk_size = 50 tags = { Created = "Terraform" Environment = "dev" } } `` Exampl
| Name | Type | Description | Default |
|---|---|---|---|
| instance_name | string | (Deprecated) It has been deprecated from version 2.0.0 and use 'name' instead. | "" |
| group_ids | list(string) | (Deprecated) It has been deprecated from version 2.0.0 and use 'security_group_i | [] |
| maintenance_time | list(map(string)) | The time of maintenance. | [] |
| http_tokens | string | Specifies whether to forcefully use the security-enhanced mode (IMDSv2) to acces | null |
| http_put_response_hop_limit | number | The HTTP PUT response hop limit for accessing instance metadata. Valid values: 1 | null |
| instance_charge_type | string | The charge type of instance. Choices are 'PostPaid' and 'PrePaid'. | "PostPaid" |
| password | string | The password of instance. | "" |
| operator_type | string | The operation type. It is valid when `instance_charge_type` is `PrePaid`. Defaul | "upgrade" |
| hpc_cluster_id | string | The ID of the Elastic High Performance Computing (E-HPC) cluster to which to ass | null |
| vswitch_id | string | The virtual switch ID to launch in VPC. | "" |
| internet_max_bandwidth_out | number | The maximum internet out bandwidth of instance. | 0 |
| spot_strategy | string | The spot strategy of a Pay-As-You-Go instance, and it takes effect only when par | "NoSpot" |
| deletion_protection | bool | Whether enable the deletion protection or not. 'true': Enable deletion protectio | false |
| disk_name | string | (Deprecated) It has been deprecated from version 2.0.0 and use 'data_disks' 'nam | "" |
| deployment_set_id | string | The ID of the deployment set to which to deploy the instance. | null |
| launch_template_name | string | The name of the launch template. | null |
| launch_template_id | string | The ID of the launch template. | null |
| system_disk_category | string | The system disk category used to launch one or more ecs instances. | "cloud_efficiency" |
| system_disk_encrypt_algorithm | string | The algorithm to be used to encrypt the system disk. Valid values are `aes-256`, | null |
| ipv6_address_count | number | The number of IPv6 addresses to randomly generate for the primary ENI. Valid val | null |
| … and 10 more inputs | |||
this_instance_name — The instance names.this_system_disk_size — The system disk size of the instance.this_instance_charge_type — The charge type of the instance.this_user_data — The user data of the instance.this_renewal_status — The renewal status of the instance.this_role_name — The role name of the instance.internet_max_bandwidth_out — (Deprecated) It has been deprecated from version 0.1.0 and the field 'this_internet_max_bandwidth_ouuser_data — (Deprecated) It has been deprecated from version 0.1.0 and the field 'this_user_data' replaces it.this_instance_type — The type of the instance.this_system_disk_category — The system disk category of the instance.this_security_enhancement_strategy — The security enhancement strategy of the instance.availability_zone — (Deprecated) It has been deprecated from version 0.1.0 and the field 'this_availability_zone' replacimage_id — (Deprecated) It has been deprecated from version 0.1.0 and the field 'this_image_id' replaces it.system_category — (Deprecated) It has been deprecated from version 0.1.0 and the field 'this_system_disk_category' reppassword — (Deprecated) It has been deprecated from version 0.1.0。 this_availability_zone — The zone id of the instance.this_instance_id — The instance ids.this_vswitch_id — The vswitch id in which the instance.this_key_name — The key name of the instance.this_image_id — The image ID used by the instance.this_public_ip — The public ip of the instance.this_internet_charge_type — The internet charge type of the instance.this_resource_group_id — The resource group id of the instance.this_host_name — The host name of the instance.this_internet_max_bandwidth_in — The internet max bandwidth in of the instance.this_data_disks — The data disks of the instance.this_deletion_protection — The deletion protection setting of the instance.number_of_instances — The number of instances.instance_tags — (Deprecated) It has been deprecated from version 0.1.0 and the field 'this_instance_tags' replaces igroup_ids — (Deprecated) It has been deprecated from version 0.1.0 and the field 'this_security_group_ids' repla