edit-icon download-icon

ALIYUN::LogService::MachineGroup

Last Updated: Jun 13, 2018

The ALIYUN::LogService::MachineGroup type is used to create ECS machine groups that require Logtail for log collection.

Syntax

  1. {
  2. "Type" : "ALIYUN::SLS::MachineGroup",
  3. "Properties" : {
  4. "GroupType" : String,
  5. "ProjectName" : String,
  6. "MachineList" : List,
  7. "GroupName" : String,
  8. "MachineIdentifyType" : String,
  9. "GroupAttribute" : String
  10. }
  11. }

Attributes

Attribute name Type Required Description Constraint
GroupType string No Machine group type Value options: null and Armory
ProjectName string No Log Service project name The project name can contain a maximum of 128 characters including letters, digits, hyphens(-), periods(.), and underscores(_)
MachineList list No Machine IP addresses or user-defined tags ECS intranet IP addresses are supported. Windows and Linux ECS servers must not be added to the same machine group
GroupName string No Machine group name The name can contain a maximum of 128 characters including letters, digits, hyphens(-), periods(.), and underscores(_)
MachineIdentifyType string No Machine identification type Value options: ip and userdefined
GroupAttribute string No Machine group attributes N/A

Return values

Fn::GetAtt

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

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "MachineGroup": {
  5. "Type": "ALIYUN::SLS::MachineGroup",
  6. "Properties": {
  7. "ProjectName": "rostest-beijing",
  8. "GroupName": "machine-group-test2",
  9. "GroupType": "",
  10. "MachineIdentifyType": "ip",
  11. "GroupAttribute": '{
  12. "groupTopic": "testtopic",
  13. "externalName": "testgroup"
  14. }',
  15. "MachineList": ['192.168.X.X']
  16. }
  17. }
  18. },
  19. "Outputs" : {
  20. "ProjectName": {
  21. "Value" : {"Fn::GetAttr": ["MachineGroup","ProjectName"]}
  22. },
  23. "GroupName": {
  24. "Value" : {"Fn::GetAttr": ["MachineGroup","GroupName"]}
  25. }
  26. }
  27. }
Thank you! We've received your feedback.