Add to or remove from a security group

Last Updated: Oct 10, 2017

Add an instance to a security group

You can add an instance to a security group using the ECS Management console. One ECS instance can be added to up to five security groups. After adding the instance to a security group, the security group rules will automatically be applied to the instance.

To add an instance to a security group, perform the following:

  1. Log on to the ECS console.

  2. Click Instances in the left-side navigation pane.

  3. Select your desired region.

  4. Select the desired instance. Click the instance name or corresponding Manage button.

  5. Click Security Groups in the left-side navigation pane.

  6. Click Add Security Group. In the displayed dialog box, select the appropriate security group.

  7. Click OK.

Remove an instance from a security group

You can remove instances from security groups. Note that an instance must be in at least two security group for this action to be performed, and you have done enough test before this operation to avoid any intranet communication error between instances.

To remove an instance from a security group, perform the following:

  1. Log on to the ECS console.

  2. Click Instances in the left-side navigation pane.

  3. Select your desired region.

  4. Select the desired instance. Click the instance name or corresponding Manage button.

  5. Click Security Groups in the left-side navigation pane.

  6. Select the security group to remove from and click Remove.

  7. Click OK.

For use cases of security groups, see Usage scenarios.

Thank you! We've received your feedback.