edit-icon download-icon

ALIYUN::ECS::JoinSecurityGroup

Last Updated: Jun 13, 2018

The ALIYUN::ECS::JoinSecurityGroup type is used to add one or more ECS instances to a specified security group.

Syntax

  1. {
  2. "Type" : "ALIYUN::ECS::JoinSecurityGroup",
  3. "Properties" : {
  4. "InstanceId" : String,
  5. "InstanceIdList" : List,
  6. "SecurityGroupId" : String
  7. }
  8. }

Properties

Name Type Required Update allowed Description Constraint
SecurityGroupId string Yes No Security group ID. N/A
InstanceId string No No ID of the ECS instance you want to add to the security group. N/A
InstanceIdList list No Yes IDs of the ECS instances you want to add to the security group. N/A

Return values

Fn::GetAtt

None.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "SG": {
  5. "Type": "ALIYUN::ECS::JoinSecurityGroup",
  6. "Properties": {
  7. "SecurityGroupId": "sg-25zwc3se0",
  8. "InstanceIdList": ["i-25zskuabf", "i-25jvzsvr5"]
  9. }
  10. }
  11. }
  12. }
Thank you! We've received your feedback.