ECS01-UWWDJZTL4UYBVFPQ
模板ID
UWWDJZTL4UYBVFPQ
https://bpstudio.console.aliyun.com/bpStudio/topo?TemplateId=UWWDJZTL4UYBVFPQ
支持地域
所有地域
模板架构
参数变量
变量名 | 默认值 | 描述 |
${Amount} | 1 | 数量 |
${InstanceName} | CADT-ECS | 实例名称 |
${InstanceType} | ecs.c6.large | 实例规格 |
${ImageFamily} | Alibaba Cloud Linux | 镜像类型 |
${ImageId} | aliyun_2_1903_x64_20G_alibase_20230522.vhd | 镜像ID |
${SystemDiskCategory} | cloud_efficiency | 系统盘类型 |
${SystemDiskPerformanceLevel} | PL0 | 系统盘性能级别 |
${SystemDiskSize} | 40 | 系统盘大小 |
${DataDisk} | [] | 数据盘 |
${HostName} | 主机名 | |
${Description} | 描述 | |
${EnablePublicIpAddress} | FALSE | 是否开启公网IP |
${InternetMaxBandwidth} | 1 | 公网带宽峰值 |
${UserData} | 用户自定义数据 | |
${PrivateIpAddress} | 指定私网IP | |
${ResourceGroupId} | 资源组ID | |
${Tags} | {"createdBy":"CADT"} | 标签 |
命令行调试
YAML文件传参配置示例:
template_id: UWWDJZTL4UYBVFPQ
instances:
# - node_type: vpc
# node_name: vpc
# id: vpc-uf6wipm4ow7ivck7sln4k
# - node_type: vswitch
# node_name: vswitch
# id: vsw-uf6eld3lyrw6k5hobk80r
# - node_type: security_group
# node_name: security_group
# id: sg-bp13sgmc9pqh07em6qnw
variables:
${Amount}: "2"
${InstanceName}: "ECS001"
${InstanceType}: "ecs.c6.xlarge"
# ${ImageFamily}: ""
# ${ImageId}: ""
${SystemDiskCategory}: "cloud_essd"
${SystemDiskPerformanceLevel}: "PL0"
${SystemDiskSize}: "100"
${DataDisk}: '[{"size":"50","performance_level":"PL1","name":"disk1","category":"cloud_essd"}]'
${HostName}: "ecs0001"
${Description}: "ECS Test"
${EnablePublicIpAddress}: "False"
${InternetMaxBandwidth}: "1"
${UserData}: ""
${PrivateIpAddress}: ""
${ResourceGroupId}: ""
${Tags}: "{'成本标签':'基础设施','env':'prod','module':'Redis'}"
configuration:
enableMonitor: 0
enableReport: 0
output:
ecs:
- Private_ip
文档内容是否对您有帮助?