ALIYUN::CS::AnyCluster is used to create a Kubernetes cluster of any type.

Syntax

{
  "Type": "ALIYUN::CS::AnyCluster",
  "Properties": {
    "ClusterConfig": Map
  }
}

Properties

Parameter Type Required Editable Description Constraint
ClusterConfig Map Yes Not supported Cluster configuration For more information, see API for creating a Kubernetes cluster. For more information about how to create a Managed Kubernetes cluster, see Create a managed Kubernetes cluster.

Return value

Fn::GetAtt

  • ClusterId: The ID of the cluster.
  • TaskId: The ID of the task. It is automatically allocated by the system to query the task status.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "AnyCluster": {
      "Type": "ALIYUN::CS::AnyCluster",
      "Properties": {
        "ClusterConfig": {
          "Ref": "ClusterConfig"
        }
      }
    }
  },
  "Parameters": {
    "ClusterConfig": {
      "Type": "Json",
      "Description": "Cluster config."
    }
  },
  "Outputs": {
    "ClusterId": {
      "Description": "Cluster instance ID.",
      "Value": {
        "Fn::GetAtt": [
          "AnyCluster",
          "ClusterId"
        ]
      }
    },
    "TaskId": {
      "Description": "Task ID. Automatically assigned by the system, the user queries the task status.",
      "Value": {
        "Fn::GetAtt": [
          "AnyCluster",
          "TaskId"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  AnyCluster:
    Type: 'ALIYUN::CS::AnyCluster'
    Properties:
      ClusterConfig:
        Ref: ClusterConfig
Parameters:
  ClusterConfig:
    Type: Json
    Description: Cluster config.
Outputs:
  ClusterId:
    Description: Cluster instance ID.
    Value:
      'Fn::GetAtt':
        -AnyCluster
        - ClusterId
  TaskId:
    Description: >-
      Task ID. Automatically assigned by the system and the user queries the task
      status.
    Value:
      'Fn::GetAtt':
        -AnyCluster
        -TaskId