All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::EDAS::ClusterMember

Last Updated:Oct 27, 2023

ALIYUN::EDAS::ClusterMember is used to add Elastic Compute Service (ECS) instances to a cluster.

Syntax

{
  "Type": "ALIYUN::EDAS::ClusterMember",
  "Properties": {
    "Password": String,
    "ClusterId": String,
    "InstanceIds": List
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

Password

String

Yes

No

The password that is used to connect to the ECS instance.

None.

ClusterId

String

Yes

No

The cluster ID.

None.

InstanceIds

List

Yes

No

The IDs of the ECS instances. Separate multiple ECS instance IDs with commas (,).

None.

Return values

Fn::GetAtt

  • ClusterMemberIds: the IDs of the machines in the cluster.

  • ClusterId: the cluster ID.

  • InstanceIds: the IDs of the ECS instances.

  • EcuIds: the Elastic Compute Unit (ECU) IDs of the ECS instances.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Description: Manage Spring Cloud applications in Container Service for Kubernetes (ACK)
Parameters:
  ClusterId:
    Type: String
    Description: 'Cluster ID to import ECS instance '
  InstanceId:
    Label: ECS Instance Id
    Type: String
    AssociationProperty: ALIYUN::ECS::Instance::InstanceId
    AssociationPropertyMetadata:
      RegionId: regionId
  Password:
    NoEcho: true
    Type: String
    Description: Server login password, Length 8-30, must contain three(Capital letters, lowercase letters, numbers, ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol in).
    AllowedPattern: '[0-9A-Za-z\_\-\&:;''<>,=%`~!@#\(\)\$\^\*\+\|\{\}\[\]\.\?\/]+$'
    Label:
      en: Instance Password
       
    ConstraintDescription: Length 8-30, must contain three(Capital letters, lowercase letters, numbers, ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol in).
    MinLength: 8
    MaxLength: 30
Resources:
  ClusterMember:
    Type: ALIYUN::EDAS::ClusterMember
    Properties:
      ClusterId:
        Ref: ClusterId
      InstanceIds:
        - Ref: InstanceId
      Password:
        Ref: Password
Outputs:
  EDASClusterInstanceIds:
    Description: ECS instance IDs in EDAS cluster
    Value:
      Fn::GetAtt:
        - ClusterMember
        - InstanceIds

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Manage Spring Cloud applications in ACK",
  "Parameters": {
    "ClusterId": {
      "Type": "String",
      "Description": "Cluster ID to import ECS instance "
    },
    "InstanceId": {
      "Label": "ECS Instance Id",
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::Instance::InstanceId",
      "AssociationPropertyMetadata": {
        "RegionId": "regionId"
      }
    },
    "Password": {
      "NoEcho": true,
      "Type": "String",
      "Description": "Server login password, Length 8-30, must contain three(Capital letters, lowercase letters, numbers, ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol in).",
      "AllowedPattern": "[0-9A-Za-z\\_\\-\\&:;'<>,=%`~!@#\\(\\)\\$\\^\\*\\+\\|\\{\\}\\[\\]\\.\\?\\/]+$",
      "Label": {
        "en": "Instance Password",
         
      },
      "ConstraintDescription": "Length 8-30, must contain three(Capital letters, lowercase letters, numbers, ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol in).",
      "MinLength": 8,
      "MaxLength": 30
    }
  },
  "Resources": {
    "ClusterMember": {
      "Type": "ALIYUN::EDAS::ClusterMember",
      "Properties": {
        "ClusterId": {
          "Ref": "ClusterId"
        },
        "InstanceIds": [
          {
            "Ref": "InstanceId"
          }
        ],
        "Password": {
          "Ref": "Password"
        }
      }
    }
  },
  "Outputs": {
    "EDASClusterInstanceIds": {
      "Description": "ECS instance IDs in EDAS cluster",
      "Value": {
        "Fn::GetAtt": [
          "ClusterMember",
          "InstanceIds"
        ]
      }
    }
  }
}