You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"alicloud_ecs_launch_template" {
source="./modules/alicloud/r/alicloud_ecs_launch_template"# auto_release_time - (optional) is a type of stringauto_release_time=null# deployment_set_id - (optional) is a type of stringdeployment_set_id=null# description - (optional) is a type of stringdescription=null# enable_vm_os_config - (optional) is a type of boolenable_vm_os_config=null# host_name - (optional) is a type of stringhost_name=null# image_id - (optional) is a type of stringimage_id=null# image_owner_alias - (optional) is a type of stringimage_owner_alias=null# instance_charge_type - (optional) is a type of stringinstance_charge_type=null# instance_name - (optional) is a type of stringinstance_name=null# instance_type - (optional) is a type of stringinstance_type=null# internet_charge_type - (optional) is a type of stringinternet_charge_type=null# internet_max_bandwidth_in - (optional) is a type of numberinternet_max_bandwidth_in=null# internet_max_bandwidth_out - (optional) is a type of numberinternet_max_bandwidth_out=null# io_optimized - (optional) is a type of stringio_optimized=null# key_pair_name - (optional) is a type of stringkey_pair_name=null# launch_template_name - (optional) is a type of stringlaunch_template_name=null# name - (optional) is a type of stringname=null# network_type - (optional) is a type of stringnetwork_type=null# password_inherit - (optional) is a type of boolpassword_inherit=null# period - (optional) is a type of numberperiod=null# private_ip_address - (optional) is a type of stringprivate_ip_address=null# ram_role_name - (optional) is a type of stringram_role_name=null# resource_group_id - (optional) is a type of stringresource_group_id=null# security_enhancement_strategy - (optional) is a type of stringsecurity_enhancement_strategy=null# security_group_id - (optional) is a type of stringsecurity_group_id=null# security_group_ids - (optional) is a type of list of stringsecurity_group_ids=[]
# spot_duration - (optional) is a type of stringspot_duration=null# spot_price_limit - (optional) is a type of numberspot_price_limit=null# spot_strategy - (optional) is a type of stringspot_strategy=null# system_disk_category - (optional) is a type of stringsystem_disk_category=null# system_disk_description - (optional) is a type of stringsystem_disk_description=null# system_disk_name - (optional) is a type of stringsystem_disk_name=null# system_disk_size - (optional) is a type of numbersystem_disk_size=null# tags - (optional) is a type of map of stringtags={}
# template_resource_group_id - (optional) is a type of stringtemplate_resource_group_id=null# template_tags - (optional) is a type of map of stringtemplate_tags={}
# user_data - (optional) is a type of stringuser_data=null# userdata - (optional) is a type of stringuserdata=null# version_description - (optional) is a type of stringversion_description=null# vpc_id - (optional) is a type of stringvpc_id=null# vswitch_id - (optional) is a type of stringvswitch_id=null# zone_id - (optional) is a type of stringzone_id=nulldata_disks=[{
category =null
delete_with_instance =null
description =null
encrypted =null
name =null
performance_level =null
size =null
snapshot_id =null
}]
network_interfaces=[{
description =null
name =null
primary_ip =null
security_group_id =null
vswitch_id =null
}]
system_disk=[{
category =null
delete_with_instance =null
description =null
iops =null
name =null
performance_level =null
size =null
}]
}
resource"alicloud_ecs_launch_template""this" {
# auto_release_time - (optional) is a type of stringauto_release_time=var.auto_release_time# deployment_set_id - (optional) is a type of stringdeployment_set_id=var.deployment_set_id# description - (optional) is a type of stringdescription=var.description# enable_vm_os_config - (optional) is a type of boolenable_vm_os_config=var.enable_vm_os_config# host_name - (optional) is a type of stringhost_name=var.host_name# image_id - (optional) is a type of stringimage_id=var.image_id# image_owner_alias - (optional) is a type of stringimage_owner_alias=var.image_owner_alias# instance_charge_type - (optional) is a type of stringinstance_charge_type=var.instance_charge_type# instance_name - (optional) is a type of stringinstance_name=var.instance_name# instance_type - (optional) is a type of stringinstance_type=var.instance_type# internet_charge_type - (optional) is a type of stringinternet_charge_type=var.internet_charge_type# internet_max_bandwidth_in - (optional) is a type of numberinternet_max_bandwidth_in=var.internet_max_bandwidth_in# internet_max_bandwidth_out - (optional) is a type of numberinternet_max_bandwidth_out=var.internet_max_bandwidth_out# io_optimized - (optional) is a type of stringio_optimized=var.io_optimized# key_pair_name - (optional) is a type of stringkey_pair_name=var.key_pair_name# launch_template_name - (optional) is a type of stringlaunch_template_name=var.launch_template_name# name - (optional) is a type of stringname=var.name# network_type - (optional) is a type of stringnetwork_type=var.network_type# password_inherit - (optional) is a type of boolpassword_inherit=var.password_inherit# period - (optional) is a type of numberperiod=var.period# private_ip_address - (optional) is a type of stringprivate_ip_address=var.private_ip_address# ram_role_name - (optional) is a type of stringram_role_name=var.ram_role_name# resource_group_id - (optional) is a type of stringresource_group_id=var.resource_group_id# security_enhancement_strategy - (optional) is a type of stringsecurity_enhancement_strategy=var.security_enhancement_strategy# security_group_id - (optional) is a type of stringsecurity_group_id=var.security_group_id# security_group_ids - (optional) is a type of list of stringsecurity_group_ids=var.security_group_ids# spot_duration - (optional) is a type of stringspot_duration=var.spot_duration# spot_price_limit - (optional) is a type of numberspot_price_limit=var.spot_price_limit# spot_strategy - (optional) is a type of stringspot_strategy=var.spot_strategy# system_disk_category - (optional) is a type of stringsystem_disk_category=var.system_disk_category# system_disk_description - (optional) is a type of stringsystem_disk_description=var.system_disk_description# system_disk_name - (optional) is a type of stringsystem_disk_name=var.system_disk_name# system_disk_size - (optional) is a type of numbersystem_disk_size=var.system_disk_size# tags - (optional) is a type of map of stringtags=var.tags# template_resource_group_id - (optional) is a type of stringtemplate_resource_group_id=var.template_resource_group_id# template_tags - (optional) is a type of map of stringtemplate_tags=var.template_tags# user_data - (optional) is a type of stringuser_data=var.user_data# userdata - (optional) is a type of stringuserdata=var.userdata# version_description - (optional) is a type of stringversion_description=var.version_description# vpc_id - (optional) is a type of stringvpc_id=var.vpc_id# vswitch_id - (optional) is a type of stringvswitch_id=var.vswitch_id# zone_id - (optional) is a type of stringzone_id=var.zone_iddynamic"data_disks" {
for_each=var.data_diskscontent {
# category - (optional) is a type of stringcategory=data_disks.value["category"]
# delete_with_instance - (optional) is a type of booldelete_with_instance=data_disks.value["delete_with_instance"]
# description - (optional) is a type of stringdescription=data_disks.value["description"]
# encrypted - (optional) is a type of boolencrypted=data_disks.value["encrypted"]
# name - (optional) is a type of stringname=data_disks.value["name"]
# performance_level - (optional) is a type of stringperformance_level=data_disks.value["performance_level"]
# size - (optional) is a type of numbersize=data_disks.value["size"]
# snapshot_id - (optional) is a type of stringsnapshot_id=data_disks.value["snapshot_id"]
}
}
dynamic"network_interfaces" {
for_each=var.network_interfacescontent {
# description - (optional) is a type of stringdescription=network_interfaces.value["description"]
# name - (optional) is a type of stringname=network_interfaces.value["name"]
# primary_ip - (optional) is a type of stringprimary_ip=network_interfaces.value["primary_ip"]
# security_group_id - (optional) is a type of stringsecurity_group_id=network_interfaces.value["security_group_id"]
# vswitch_id - (optional) is a type of stringvswitch_id=network_interfaces.value["vswitch_id"]
}
}
dynamic"system_disk" {
for_each=var.system_diskcontent {
# category - (optional) is a type of stringcategory=system_disk.value["category"]
# delete_with_instance - (optional) is a type of booldelete_with_instance=system_disk.value["delete_with_instance"]
# description - (optional) is a type of stringdescription=system_disk.value["description"]
# iops - (optional) is a type of stringiops=system_disk.value["iops"]
# name - (optional) is a type of stringname=system_disk.value["name"]
# performance_level - (optional) is a type of stringperformance_level=system_disk.value["performance_level"]
# size - (optional) is a type of numbersize=system_disk.value["size"]
}
}
}