ecs-instance

alibaba/ecs-instance/alicloud

Terraform Module HCL ALICLOUD

Terraform module which creates ECS instance(s) on Alibaba Cloud.

Install
module "ecs-instance" {
source = "alibaba/ecs-instance/alicloud"
version = "3.0.0"
}
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (50)
NameTypeDescriptionDefault
instance_namestring(Deprecated) It has been deprecated from version 2.0.0 and use 'name' instead.""
group_idslist(string)(Deprecated) It has been deprecated from version 2.0.0 and use 'security_group_i[]
maintenance_timelist(map(string))The time of maintenance.[]
http_tokensstringSpecifies whether to forcefully use the security-enhanced mode (IMDSv2) to accesnull
http_put_response_hop_limitnumberThe HTTP PUT response hop limit for accessing instance metadata. Valid values: 1null
instance_charge_typestringThe charge type of instance. Choices are 'PostPaid' and 'PrePaid'."PostPaid"
passwordstringThe password of instance.""
operator_typestringThe operation type. It is valid when `instance_charge_type` is `PrePaid`. Defaul"upgrade"
hpc_cluster_idstringThe ID of the Elastic High Performance Computing (E-HPC) cluster to which to assnull
vswitch_idstringThe virtual switch ID to launch in VPC.""
internet_max_bandwidth_outnumberThe maximum internet out bandwidth of instance.0
spot_strategystringThe spot strategy of a Pay-As-You-Go instance, and it takes effect only when par"NoSpot"
deletion_protectionboolWhether enable the deletion protection or not. 'true': Enable deletion protectiofalse
disk_namestring(Deprecated) It has been deprecated from version 2.0.0 and use 'data_disks' 'nam""
deployment_set_idstringThe ID of the deployment set to which to deploy the instance.null
launch_template_namestringThe name of the launch template.null
launch_template_idstringThe ID of the launch template.null
system_disk_categorystringThe system disk category used to launch one or more ecs instances."cloud_efficiency"
system_disk_encrypt_algorithmstringThe algorithm to be used to encrypt the system disk. Valid values are `aes-256`,null
ipv6_address_countnumberThe number of IPv6 addresses to randomly generate for the primary ENI. Valid valnull
… and 10 more inputs
Outputs (50)
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_ou
user_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' replac
image_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' rep
password — (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 i
group_ids — (Deprecated) It has been deprecated from version 0.1.0 and the field 'this_security_group_ids' repla
… and 20 more outputs
Resources (1)
alicloud_instance
Topics & Tags
vertified
Details
FrameworkTerraform Module
LanguageHCL
Version3.0.0
Cloud ALICLOUD
★ Stars46
Forks61
Total downloads37.6k
Inputs50
Outputs50
Resources1
Examples5
Submodules13
LicenseMIT
Namespacealibaba
Updated