All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::EDAS::DeployGroup

Last Updated:May 16, 2023

ALIYUN::EDAS::DeployGroup is used to create an instance group for an application.

Syntax

{
  "Type": "ALIYUN::EDAS::DeployGroup",
  "Properties": {
    "GroupName": String,
    "AppId": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

GroupName

String

Yes

No

The name of the instance group.

The name must be 1 to 64 characters in length.

AppId

String

Yes

No

The ID of the application.

None.

Return values

Fn::GetAtt

  • GroupName: the name of the instance group.

  • Id: the ID of the instance group.

  • AppId: the ID of the application.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Description: Test an EDAS cluster, application, and application instance group
Parameters:
  AppId:
    Type: String
    Description: Application ID
    Default: '****'
  GroupName:
    Type: String
    Description: Group name, maximum length of 64.
    Default: mytest
Resources:
  DeployGroup:
    Type: ALIYUN::EDAS::DeployGroup
    Properties:
      GroupName:
        Ref: GroupName
      AppId:
        Ref: AppId
Outputs:
  GroupName:
    Description: Deploy group name
    Value:
      Fn::GetAtt:
        - DeployGroup
        - GroupName
  Id:
    Description: Deploy group ID
    Value:
      Fn::GetAtt:
        - DeployGroup
        - Id
  AppId:
    Description: Application ID
    Value:
      Fn::GetAtt:
        - DeployGroup
        - AppId

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Test an EDAS cluster, application, and application instance group",
  "Parameters": {
    "AppId": {
      "Type": "String",
      "Description": "Application ID",
      "Default": "****"
    },
    "GroupName": {
      "Type": "String",
      "Description": "Group name, maximum length of 64.",
      "Default": "mytest"
    }
  },
  "Resources": {
    "DeployGroup": {
      "Type": "ALIYUN::EDAS::DeployGroup",
      "Properties": {
        "GroupName": {
          "Ref": "GroupName"
        },
        "AppId": {
          "Ref": "AppId"
        }
      }
    }
  },
  "Outputs": {
    "GroupName": {
      "Description": "Deploy group name",
      "Value": {
        "Fn::GetAtt": [
          "DeployGroup",
          "GroupName"
        ]
      }
    },
    "Id": {
      "Description": "Deploy group ID",
      "Value": {
        "Fn::GetAtt": [
          "DeployGroup",
          "Id"
        ]
      }
    },
    "AppId": {
      "Description": "Application ID",
      "Value": {
        "Fn::GetAtt": [
          "DeployGroup",
          "AppId"
        ]
      }
    }
  }
}