You can remove instances from security groups. When an ECS instance is removed from a security group, the instance is isolated from all the other ECS instances in the security group. We recommend that you perform tests in advance to ensure that services can continue to run properly after the instance is removed from the security group.
Prerequisites
Background information
- For information about how to remove a single instance from a security group, see Remove a single instance.
- For information about how to remove multiple instances from a security group, see Remove multiple instances.
Remove a single instance
- Log on to the ECS console.
- In the left-side navigation pane, choose .
- In the top navigation bar, select a region.
- On the Instances page, find the instance to be removed from a security group, and click Manage in the Actions column.
- The Instance Details tab appears. Click the Security Groups tab.
- Find the security group from which you want to remove the instance, and click Remove in the Actions column.
- Click OK.
Remove multiple instances
- Log on to the ECS console.
- In the left-side navigation pane, choose .
- In the top navigation bar, select a region.
- On the Security Groups page, find the security group from which you want to remove instances, and click the security group ID.
- In the left-side navigation pane, click Instances in Security Group.
- Select one or more instances, and click Remove from Security Group.
- Click OK.