{
"ROSTemplateFormatVersion" : "2015-09-01",
"Parameters": {
"InstanceName": {
"Description": "镜像名称.",
"Type": "String",
"Default": "localhost"
},
},
"Resources" : {
"WebServer": {
"Type": "ALIYUN::ECS::InstanceGroup",
"Properties": {
"ZoneId": "cn-beijing-e",
"ImageId" : "m-2ze3nm8r3llb2cskif",
"InstanceType": "ecs.xn4.small",
"SystemDiskCategory": "cloud_efficiency",
"SystemDiskSize" : "100",
"NetworkType" : "vpc",
"VpcId" : "vpc-2zeglu219w8i98rbu",
"VSwitchId" : "vsw-2ze2tbbj5h3dqirlr",
"SecurityGroupId": "sg-2ze9k5jjzvr5xng9w",
"AllocatePublicIP" : "false",
"MaxAmount" : 1,
"MinAmount" : 1,
"InstanceName" : { "ref" : "InstanceName" },
"HostName" : "lease-passportt[1,1]",
"AutoReleaseTime" : "2018-05-29T22:00:00Z",
}
}
},
"Outputs": {
"InstanceIds": {
"Value" : {"get_attr": ["WebServer","InstanceIds"]}
},
"PublicIps": {
"Value" : {"get_attr": ["WebServer","PublicIps"]}
}
}
}
"ROSTemplateFormatVersion" : "2015-09-01",
"Parameters": {
"InstanceName": {
"Description": "镜像名称.",
"Type": "String",
"Default": "localhost"
},
},
"Resources" : {
"WebServer": {
"Type": "ALIYUN::ECS::InstanceGroup",
"Properties": {
"ZoneId": "cn-beijing-e",
"ImageId" : "m-2ze3nm8r3llb2cskif",
"InstanceType": "ecs.xn4.small",
"SystemDiskCategory": "cloud_efficiency",
"SystemDiskSize" : "100",
"NetworkType" : "vpc",
"VpcId" : "vpc-2zeglu219w8i98rbu",
"VSwitchId" : "vsw-2ze2tbbj5h3dqirlr",
"SecurityGroupId": "sg-2ze9k5jjzvr5xng9w",
"AllocatePublicIP" : "false",
"MaxAmount" : 1,
"MinAmount" : 1,
"InstanceName" : { "ref" : "InstanceName" },
"HostName" : "lease-passportt[1,1]",
"AutoReleaseTime" : "2018-05-29T22:00:00Z",
}
}
},
"Outputs": {
"InstanceIds": {
"Value" : {"get_attr": ["WebServer","InstanceIds"]}
},
"PublicIps": {
"Value" : {"get_attr": ["WebServer","PublicIps"]}
}
}
}