Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Guides > Dashboard Users Guide > Manage > Network Manager > Actions > Networks > View a Network > Assign Multiple Security Groups to an Instance

Assign Multiple Security Groups to an Instance

Objective

Assign multiple security groups to an EC2 server. 

Prerequisites

  • An unlaunched server. After you launch a server, you cannot add additional security groups to it or remove assigned security groups from it.
  • Assigning security groups requires the 'actor' role.  See User Role Privileges.

Overview

Security group ingress rules are additive in nature. For example, if you assign two security groups—'A' and 'B'—to a server, and security group 'A' has ports 22 and 80 open and security group 'B' has ports 22 and 443 open, the server will have ports 22, 80, and 443 open, as shown in the diagram below.

1diag-MultipleSecurityGroups-v1.png

Steps

Servers

Provided that a server is not running, you can edit its security groups by opening its properties and clicking Edit. In the "Server Details" screen that displays, use the "Security Group(s)" drop-down list to select a security group to assign to the server, or click the New button to create a new security group for the server.

Clicking the 2screen-DeleteSecGrpButton-v1.png button next to a security group name removes the server from the security group.

3screen-AssignMultipleSecurityGroups-v2.png

When you launch the server, it is included in all security groups specified in its properties.

Server Arrays

You can also add multiple security groups to a server array under using the same process described in the previous section. All servers launched in the server array are assigned the security groups specified.

You must to post a comment.
Last modified
12:48, 16 Jun 2014

Tags

Classifications

This page has no classifications.

Announcements

None


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.