Skip to main content
Version: v1.11-alpha

Alibaba Cloud ECS

Description

Terraform configuration for Alibaba Cloud Elastic Compute Service.

Specification

NameDescriptionTypeRequiredDefault
associate_public_ip_addressWhether to associate a public ip address with an instance in a VPC.boolfalse
credit_specificationPerformance mode of the t5 burstable instance. Valid values: 'Standard', 'Unlimited'.stringfalse
data_disksAdditional data disks to attach to the scaled ECS instance.list(map(string))false
deletion_protectionWhether enable the deletion protection or not. 'true': Enable deletion protection. 'false': Disable deletion protection.boolfalse
descriptionDescription of all instances.stringfalse
dry_runWhether to pre-detection. When it is true, only pre-detection and not actually modify the payment type operation. Default to false.boolfalse
force_deleteIf it is true, the 'PrePaid' instance will be change to 'PostPaid' and then deleted forcibly. However, because of changing instance charge type has CPU core count quota limitation, so strongly recommand that 'Don't modify instance charge type frequentlly in one month'.boolfalse
host_nameHost name used on all instances as prefix. Like if the value is TF-ECS-Host-Name and then the final host name would be TF-ECS-Host-Name001, TF-ECS-Host-Name002 and so on.stringfalse
image_idThe image id used to launch one or more ecs instances.stringfalse
instance_charge_typeThe charge type of instance. Choices are 'PostPaid' and 'PrePaid'.stringfalse
instance_typeThe instance type used to launch one or more ecs instances.stringfalse
internet_charge_typeThe internet charge type of instance. Choices are 'PayByTraffic' and 'PayByBandwidth'.stringfalse
internet_max_bandwidth_in(Deprecated from version v1.121.2) The maximum internet in bandwidth of instance. The attribute is invalid and no any affect for the instance. So it has been deprecated from version v1.121.2.numberfalse
internet_max_bandwidth_outThe maximum internet out bandwidth of instance.numberfalse
key_nameThe name of SSH key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.stringfalse
kms_encrypted_passwordAn KMS encrypts password used to an instance. It is conflicted with 'password'.stringfalse
kms_encryption_contextAn KMS encryption context used to decrypt 'kms_encrypted_password' before creating or updating an instance with 'kms_encrypted_password'.map(string)false
nameName to be used on all resources as prefix. Default to 'TF-Module-ECS-Instance'. The final default name would be TF-Module-ECS-Instance001, TF-Module-ECS-Instance002 and so on.stringfalse
number_of_instancesThe number of instances to be created.numberfalse
passwordThe password of instance.stringfalse
portsA list of ports open in security group.list(number)false
private_ipConfigure Instance private IP address.stringfalse
private_ipsA list to configure Instance private IP address.list(string)false
resource_group_idThe Id of resource group which the instance belongs.stringfalse
role_nameInstance RAM role name. The name is provided and maintained by RAM. You can use 'alicloud_ram_role' to create a new one.stringfalse
security_enhancement_strategyThe security enhancement strategy.stringfalse
security_group_idsA list of security group ids to associate with.list(string)false
spot_price_limitThe hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.numberfalse
spot_strategyThe spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter 'instance_charge_type' is 'PostPaid'. Value range: 'NoSpot': A regular Pay-As-You-Go instance. 'SpotWithPriceLimit': A price threshold for a spot instance. 'SpotAsPriceGo': A price that is based on the highest Pay-As-You-Go instance.stringfalse
subscriptionA mapping of fields for Prepaid ECS instances created.map(string)false
system_disk_auto_snapshot_policy_idThe ID of the automatic snapshot policy applied to the system disk.stringfalse
system_disk_categoryThe system disk category used to launch one or more ecs instances.stringfalse
system_disk_sizeThe system disk size used to launch one or more ecs instances.numberfalse
tagsA mapping of tags to assign to the resource.map(string)false
use_num_suffixAlways append numerical suffix(like 001, 002 and so on) to instance name and host name, even if number_of_instances is 1.boolfalse
user_data_pathUser data to pass to instance on boot.stringfalse
volume_tagsA mapping of tags to assign to the devices created by the instance at launch time.map(string)false
vswitch_idThe virtual switch ID to launch in VPC.stringfalse
writeConnectionSecretToRefThe secret which the cloud resource connection will be written to.writeConnectionSecretToReffalse

writeConnectionSecretToRef

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written to.stringtrue
namespaceThe secret namespace which the cloud resource connection will be written to.stringfalse