ALIYUN::EDAS::ClusterMember类型用于向集群中添加ECS实例。
语法
{
"Type": "ALIYUN::EDAS::ClusterMember",
"Properties": {
"Password": String,
"ClusterId": String,
"InstanceIds": List
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
Password | String | 是 | 否 | ECS密码 | 无 |
ClusterId | String | 是 | 否 | 集群ID | 无 |
InstanceIds | List | 是 | 否 | ECS实例ID,多个ECS实例用英文逗号隔开。 | 无 |
返回值
Fn::GetAtt
- ClusterMemberIds:集群机器ID。
- ClusterId:集群ID。
- InstanceIds:ECS实例ID。
示例
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"ClusterMember": {
"Type": "ALIYUN::EDAS::ClusterMember",
"Properties": {
"Password": {
"Ref": "Password"
},
"ClusterId": {
"Ref": "ClusterId"
},
"InstanceIds": {
"Ref": "InstanceIds"
}
}
}
},
"Parameters": {
"Password": {
"Type": "String",
"Description": "Password ECS hosts need to import (ECS settings can continue to use purchased)"
},
"ClusterId": {
"Type": "String",
"Description": "Cluster ID to import ECS instance "
},
"InstanceIds": {
"MinLength": 1,
"Type": "Json",
"Description": "ECS instance ID list to import."
}
},
"Outputs": {
"ClusterMemberIds": {
"Description": "Cluster member IDs corresponding to the ECS instance IDs.",
"Value": {
"Fn::GetAtt": [
"ClusterMember",
"ClusterMemberIds"
]
}
},
"ClusterId": {
"Description": "Cluster ID.",
"Value": {
"Fn::GetAtt": [
"ClusterMember",
"ClusterId"
]
}
},
"InstanceIds": {
"Description": "ECS instance IDs.",
"Value": {
"Fn::GetAtt": [
"ClusterMember",
"InstanceIds"
]
}
}
}
}
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Resources:
ClusterMember:
Type: 'ALIYUN::EDAS::ClusterMember'
Properties:
Password:
Ref: Password
ClusterId:
Ref: ClusterId
InstanceIds:
Ref: InstanceIds
Parameters:
Password:
Type: String
Description: >-
Password ECS hosts need to import (ECS settings can continue to use
purchased)
ClusterId:
Type: String
Description: 'Cluster ID to import ECS instance '
InstanceIds:
MinLength: 1
Type: Json
Description: ECS instance ID list to import.
Outputs:
ClusterMemberIds:
Description: Cluster member IDs corresponding to the ECS instance IDs.
Value:
'Fn::GetAtt':
- ClusterMember
- ClusterMemberIds
ClusterId:
Description: Cluster ID.
Value:
'Fn::GetAtt':
- ClusterMember
- ClusterId
InstanceIds:
Description: ECS instance IDs.
Value:
'Fn::GetAtt':
- ClusterMember
- InstanceIds