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 name | Type | Required | Updatable | Description | Constraints |
| GroupType | String | No | No | The type of the machine group. | The value is empty. |
| ProjectName | String | No | No | The 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 | No | The 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 | No | The 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 | No | The identification type of the machine. | Valid values:
|
| GroupAttribute | String | No | No | The 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
JSONformat{ "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": { } }