All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::SLS::MachineGroup

Last Updated:Aug 20, 2026

The ALIYUN::SLS::MachineGroup resource creates a machine group in Simple Log Service. A machine group is a set of ECS instances from which Logtail collects logs.

Syntax

{
  "Type": "ALIYUN::SLS::MachineGroup",
  "Properties": {
    "GroupType": String,
    "ProjectName": String,
    "MachineList": List,
    "GroupName": String,
    "MachineIdentifyType": String,
    "GroupAttribute": String
  }
}

Properties

Property nameTypeRequiredUpdatableDescriptionConstraints
GroupType String No NoThe type of the machine group.The value is empty.
ProjectName String No NoThe name of the Simple Log Service project.The name can be up to 128 characters in length and can contain letters, digits, underscores (_), periods (.), and hyphens (-).
MachineList List No NoThe IP addresses or custom tags of the machines.Use the private IP addresses of ECS instances.
Important Do not add Windows and Linux instances to the same machine group.
GroupName String No NoThe name of the machine group.The name can be up to 128 characters in length and can contain letters, digits, underscores (_), periods (.), and hyphens (-).
MachineIdentifyType String No NoThe identification type of the machine.Valid values:
  • ip
  • userdefined
GroupAttribute String No NoThe attribute of the machine group.None

Return values

Fn::GetAtt

  • ProjectName: The name of the Simple Log Service project.
  • GroupName: The name of the machine group.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      MachineGroup:
        Type: ALIYUN::SLS::MachineGroup
        Properties:
          ProjectName: rostest-beijing
          GroupName: machine-group-test2
          MachineIdentifyType: ip
          MachineList:
            - 192.168.XX.XX
    Outputs: {}
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "MachineGroup": {
          "Type": "ALIYUN::SLS::MachineGroup",
          "Properties": {
            "ProjectName": "rostest-beijing",
            "GroupName": "machine-group-test2",
            "MachineIdentifyType": "ip",
            "MachineList": [
              "192.168.XX.XX"
            ]
          }
        }
      },
      "Outputs": {
      }
    }