ALIYUN::MSE::Cluster is used to create a Cluster.

Syntax

{
  "Type": "ALIYUN::MSE::Cluster",
  "Properties": {
    "DiskType": String,
    "InstanceCount": Integer,
    "PrivateSlbSpecification": String,
    "VpcId": String,
    "ClusterVersion": String,
    "PubNetworkFlow": String,
    "ClusterSpecification": String,
    "VSwitchId": String,
    "PubSlbSpecification": String,
    "ClusterType": String,
    "NetType": String
  }
}

Properties

Parameter Type Required Editable Description Constraint
DiskType String No No Disk type Valid values: alicloud-disk-ssd-multi-zone
InstanceCount Integer Yes No Instances Value range: 1 to 5
PrivateSlbSpecification String No No Intranet SLB specification Valid values:
  • slb.s1.small
  • slb.s3.medium
VpcId String No No The ID of the VPC. N/A
ClusterVersion String Yes No Version Valid values:
  • ZooKeeper_3_4_14
  • NACOS_ANS_1_1_3
  • EUREKA_1_9_3
PubNetworkFlow String No No Public bandwidth Value range: 0~5000

Unit: Mbps

Note 0 indicates no public network access.
ClusterSpecification String Yes No Engine Specification Valid values:
  • MSE_SC_1_2_200_c:1 vCPU core and 2GB memory.
  • MSE_SC_2_4_200_c: 2-Core 4GB
  • MSE_SC_4_8_200_c: 4-core 8GB
  • MSE_SC_8_16_200_c: 8-core 16GB
VSwitchId String No No Valid VSwitch IDs. N/A
PubSlbSpecification String No No Public network SLB specification Valid values:
  • slb.s1.small
  • slb.s3.medium
ClusterType String Yes No Cluster type Valid values:
  • ZooKeeper
  • Nacos-Ans
  • Eureka
NetType String Yes No Network type Valid values:
  • privatenet: VPC
  • pubnet: public network

Error code

Fn::GetAtt

  • InternetAddress: The public endpoint.
  • IntranetAddress: The private IP address of the ECS instance.
  • AclEntryList: The whitelist.
  • Cpu: The number of CPUs.
  • InternetPort:The public network interface.
  • IntranetPort: The private network interface.
  • DiskType: The disk type.
  • AppVersion: The App version
  • InitCostTime: The creation time.
  • PayInfo: The billing method
  • ClusterName: The name of the cluster.
  • IntranetDomain: The intranet domain name.
  • NetType: The network type.
  • ClusterVersion: The version of the cluster.
  • InstanceId: The ID of the instance.
  • ClusterId: The ID of the cluster.
  • InternetDomain: The ublic domain name.
  • AclId: The ID of the access control list.
  • VSwitchId: The ID of the vSwitch
  • ClusterSpecification: The engine specification.
  • CreateTime: The time when the order was created.
  • HealthStatus: The health status.
  • MemoryCapacity: The memory capacity
  • ClusterType: The cluster type.
  • OrderId: The ID of the order.
  • ClusterAliasName: The alias of the cluster.
  • InstanceCount: The number of instances.
  • DiskCapacity: The disk capacity.
  • VpcId: The ID of the VPC.
  • PubNetworkFlow: The Internet bandwidth.
  • RegionId: The ID of the region.
  • InitStatus: Indicates the cluster creation status.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DiskType": {
      "Type": "String",
      "Description": "disk type"
    },
    "PrivateSlbSpecification": {
      "Type": "String",
      "Description": ""
    },
    "InstanceCount": {
      "Type": "Number",
      "Description": "instance count"
    },
    "VpcId": {
      "Type": "String",
      "Description": "vpc id"
    },
    "ClusterVersion": {
      "Type": "String",
      "Description": "cluster version, Enum: ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3,EUREKA_1_9_3"
    },
    "PubNetworkFlow": {
      "Type": "String",
      "Description": "pub network flow"
    },
    "ClusterSpecification": {
      "Type": "String",
      "Description": "cluster specification, Enum: MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c,MSE_SC_8_16_200_c"
    },
    "VSwitchId": {
      "Type": "String",
      "Description": "switcher Id"
    },
    "PubSlbSpecification": {
      "Type": "String",
      "Description": ""
    },
    "ClusterType": {
      "Type": "String",
      "Description": "cluster type"
    },
    "NetType": {
      "Type": "String",
      "Description": "network type, Enum: privatenet,pubnet"
    }
  },
  "Resources": {
    "MSECluster": {
      "Type": "ALIYUN::MSE::Cluster",
      "Properties": {
        "DiskType": {
          "Ref": "DiskType"
        },
        "PrivateSlbSpecification": {
          "Ref": "PrivateSlbSpecification"
        },
        "InstanceCount": {
          "Ref": "InstanceCount"
        },
        "VpcId": {
          "Ref": "VpcId"
        },
        "ClusterVersion": {
          "Ref": "ClusterVersion"
        },
        "PubNetworkFlow": {
          "Ref": "PubNetworkFlow"
        },
        "ClusterSpecification": {
          "Ref": "ClusterSpecification"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "PubSlbSpecification": {
          "Ref": "PubSlbSpecification"
        },
        "ClusterType": {
          "Ref": "ClusterType"
        },
        "NetType": {
          "Ref": "NetType"
        }
      }
    }
  },
  "Outputs": {
    "InternetAddress": {
      "Description": "internet address",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InternetAddress"
        ]
      }
    },
    "AclEntryList": {
      "Description": "acl entry list",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "AclEntryList"
        ]
      }
    },
    "Cpu": {
      "Description": "cpu core size",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "Cpu"
        ]
      }
    },
    "InternetPort": {
      "Description": "internet port",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InternetPort"
        ]
      }
    },
    "IntranetPort": {
      "Description": "intranet port",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "IntranetPort"
        ]
      }
    },
    "DiskType": {
      "Description": "disk type",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "DiskType"
        ]
      }
    },
    "AppVersion": {
      "Description": "app version",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "AppVersion"
        ]
      }
    },
    "InitCostTime": {
      "Description": "init cost time",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InitCostTime"
        ]
      }
    },
    "PayInfo": {
      "Description": "pay info",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "PayInfo"
        ]
      }
    },
    "ClusterName": {
      "Description": "cluster name",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterName"
        ]
      }
    },
    "IntranetDomain": {
      "Description": "intranet domain",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "IntranetDomain"
        ]
      }
    },
    "NetType": {
      "Description": "network type, Enum: privatenet,pubnet",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "NetType"
        ]
      }
    },
    "ClusterVersion": {
      "Description": "cluster version, Enum: ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3,EUREKA_1_9_3",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterVersion"
        ]
      }
    },
    "InstanceId": {
      "Description": "instance id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InstanceId"
        ]
      }
    },
    "ClusterId": {
      "Description": "cluster id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterId"
        ]
      }
    },
    "InternetDomain": {
      "Description": "internet domain",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InternetDomain"
        ]
      }
    },
    "AclId": {
      "Description": "acl id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "AclId"
        ]
      }
    },
    "VSwitchId": {
      "Description": "switcher Id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "VSwitchId"
        ]
      }
    },
    "ClusterSpecification": {
      "Description": "cluster specification, Enum: MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c,MSE_SC_8_16_200_c",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterSpecification"
        ]
      }
    },
    "CreateTime": {
      "Description": "create time",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "CreateTime"
        ]
      }
    },
    "HealthStatus": {
      "Description": "health status",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "HealthStatus"
        ]
      }
    },
    "MemoryCapacity": {
      "Description": "memory capacity",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "MemoryCapacity"
        ]
      }
    },
    "ClusterType": {
      "Description": "cluster type",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterType"
        ]
      }
    },
    "OrderId": {
      "Description": "order id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "OrderId"
        ]
      }
    },
    "ClusterAliasName": {
      "Description": "cluster alias name",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterAliasName"
        ]
      }
    },
    "InstanceCount": {
      "Description": "instance count",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InstanceCount"
        ]
      }
    },
    "IntranetAddress": {
      "Description": "intranet address",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "IntranetAddress"
        ]
      }
    },
    "DiskCapacity": {
      "Description": "disk capacity, unit: G",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "DiskCapacity"
        ]
      }
    },
    "VpcId": {
      "Description": "vpc id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "VpcId"
        ]
      }
    },
    "PubNetworkFlow": {
      "Description": "pub network flow",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "PubNetworkFlow"
        ]
      }
    },
    "RegionId": {
      "Description": "region id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "RegionId"
        ]
      }
    },
    "InitStatus": {
      "Description": "init status, Enum: INIT_ING, INIT_FAILED, INIT_SUCCESS, INIT_TIME_OUT,DESTROY_ING, DESTROY_FAILED, DESTROY_SUCCESS, RESTART_ING, RESTART_SUCCESS, RESTART_FAILED, SCALE_ING, SCALE_SUCCESS, SCALE_FAILED",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InitStatus"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DiskType:
    Type: String
    Description: disk type
  PrivateSlbSpecification:
    Type: String
    Description: ''
  InstanceCount:
    Type: Number
    Description: instance count
  VpcId:
    Type: String
    Description: vpc id
  ClusterVersion:
    Type: String
    Description: >-
      cluster version, Enum:
      ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3, and EUREKA_1_9_3
  PubNetworkFlow:
    Type: String
    Description: pub network flow
  ClusterSpecification:
    Type: String
    Description: >-
      cluster specification, Enum:
      MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c, and MSE_SC_8_16_200_c
  VSwitchId:
    Type: String
    Description: switcher Id
  PubSlbSpecification:
    Type: String
    Description: ''
  ClusterType:
    Type: String
    Description: cluster type
  NetType:
    Type: String
    Description: 'network type, Enum: privatenet,pubnet'
Resources:
  MSECluster:
    Type: 'ALIYUN::MSE::Cluster'
    Properties:
      DiskType:
        Ref: DiskType
      PrivateSlbSpecification:
        Ref: PrivateSlbSpecification
      InstanceCount:
        Ref: InstanceCount
      VpcId:
        Ref: VpcId
      ClusterVersion:
        Ref: ClusterVersion
      PubNetworkFlow:
        Ref: PubNetworkFlow
      ClusterSpecification:
        Ref: ClusterSpecification
      VSwitchId:
        Ref: VSwitchId
      PubSlbSpecification:
        Ref: PubSlbSpecification
      ClusterType:
        Ref: ClusterType
      NetType:
        Ref: NetType
Outputs:
  InternetAddress:
    Description: internet address
    Value:
      'Fn::GetAtt':
        -MSECluster
        -InternetAddress
  AclEntryList:
    Description: acl entry list
    Value:
      'Fn::GetAtt':
        -MSECluster
        -AclEntryList
  Cpu:
    Description: cpu core size
    Value:
      'Fn::GetAtt':
        -MSECluster
        -Cpu
  InternetPort:
    Description: internet port
    Value:
      'Fn::GetAtt':
        -MSECluster
        -InternetPort
  IntranetPort:
    Description: intranet port
    Value:
      'Fn::GetAtt':
        -MSECluster
        -IntranetPort
  DiskType:
    Description: disk type
    Value:
      'Fn::GetAtt':
        -MSECluster
        -DiskType
  AppVersion:
    Description: app version
    Value:
      'Fn::GetAtt':
        -MSECluster
        -AppVersion
  InitCostTime:
    Description: init cost time
    Value:
      'Fn::GetAtt':
        -MSECluster
        -InitCostTime
  PayInfo:
    Description: pay info
    Value:
      'Fn::GetAtt':
        -MSECluster
        -PayInfo
  ClusterName:
    Description: cluster name
    Value:
      'Fn::GetAtt':
        -MSECluster
        -ClusterName
  IntranetDomain:
    Description: intranet domain
    Value:
      'Fn::GetAtt':
        -MSECluster
        -IntranetDomain
  NetType:
    Description: 'network type, Enum: privatenet,pubnet'
    Value:
      'Fn::GetAtt':
        -MSECluster
        -NetType
  ClusterVersion:
    Description: >-
      cluster version, Enum:
      ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3, and EUREKA_1_9_3
    Value:
      'Fn::GetAtt':
        -MSECluster
        -ClusterVersion
  InstanceId:
    Description: instance id
    Value:
      'Fn::GetAtt':
        -MSECluster
        - InstanceId
  ClusterId:
    Description: cluster id
    Value:
      'Fn::GetAtt':
        -MSECluster
        - ClusterId
  InternetDomain:
    Description: internet domain
    Value:
      'Fn::GetAtt':
        -MSECluster
        -InternetDomain
  AclId:
    Description: acl id
    Value:
      'Fn::GetAtt':
        -MSECluster
        -AclId
  VSwitchId:
    Description: switcher Id
    Value:
      'Fn::GetAtt':
        -MSECluster
        - VSwitchId
  ClusterSpecification:
    Description: >-
      cluster specification, Enum:
      MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c, and MSE_SC_8_16_200_c
    Value:
      'Fn::GetAtt':
        -MSECluster
        -ClusterSpecification
  CreateTime:
    Description: create time
    Value:
      'Fn::GetAtt':
        -MSECluster
        -CreateTime
  HealthStatus:
    Description: health status
    Value:
      'Fn::GetAtt':
        -MSECluster
        -HealthStatus
  MemoryCapacity:
    Description: memory capacity
    Value:
      'Fn::GetAtt':
        -MSECluster
        -MemoryCapacity
  ClusterType:
    Description: cluster type
    Value:
      'Fn::GetAtt':
        -MSECluster
        -ClusterType
  OrderId:
    Description: order id
    Value:
      'Fn::GetAtt':
        -MSECluster
        - OrderId
  ClusterAliasName:
    Description: cluster alias name
    Value:
      'Fn::GetAtt':
        -MSECluster
        -ClusterAliasName
  InstanceCount:
    Description: instance count
    Value:
      'Fn::GetAtt':
        -MSECluster
        -InstanceCount
  IntranetAddress:
    Description: intranet address
    Value:
      'Fn::GetAtt':
        -MSECluster
        -IntranetAddress
  DiskCapacity:
    Description: 'disk capacity, unit: G'
    Value:
      'Fn::GetAtt':
        -MSECluster
        -DiskCapacity
  VpcId:
    Description: vpc id
    Value:
      'Fn::GetAtt':
        -MSECluster
        - VpcId
  PubNetworkFlow:
    Description: pub network flow
    Value:
      'Fn::GetAtt':
        -MSECluster
        -PubNetworkFlow
  RegionId:
    Description: region id
    Value:
      'Fn::GetAtt':
        -MSECluster
        -RegionId
  InitStatus:
    Description: >-
      init status, Enum: INIT_ING, INIT_FAILED, INIT_SUCCESS,
      INIT_TIME_OUT,DESTROY_ING, DESTROY_FAILED, DESTROY_SUCCESS, RESTART_ING,
      RESTART_SUCCESS, RESTART_FAILED, SCALE_ING, SCALE_SUCCESS, SCALE_FAILED
    Value:
      'Fn::GetAtt':
        -MSECluster
        -InitStatus