Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Security Groups -- Name vs. Group Name

Tags:

In AWS Security Groups, what is the difference between "Name" and "Group Name"? It's confusing because when one creates a "Security Group", "Name" would seem to be interpreted as "name of the security group"...but then there is "Group Name". Seems redundant to the point of confusion. "Group Name" seems to be the more substantive and important field.

The "Name" field can be changed by clicking the pencil icon as shown in the screenshot below:

enter image description here

But the "Group Name" cannot be edited and can be specified only at the time of creation:

enter image description here

I've been simply setting Name to be the same as Group Name for consistency and simplicity. I can't find any guidance on best practices for the "Name" field and how or if it should be named relative to the "Group Name" field (the pop-up help on AWS simply describes required naming syntax). Is "Name" just a convenience field which has little to zero significance (since it can be easily changed at any point)? What are the programmatic and functional effects of these names?

like image 564
rob_7cc Avatar asked Apr 15 '19 22:04

rob_7cc


People also ask

Can I change security group name AWS?

You can change the security groups when the instance is in the running or stopped state. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Instances. Select your instance, and then choose Actions, Security, Change security groups.

Which naming convention is allowed when creating a security group?

Name: The name for the security group (for example, "my-security-group"). A name can be up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and .

Can EC2 have 2 security groups?

You can apply multiple security groups to a single EC2 instance or apply a single security group to multiple EC2 instances. System administrators often make changes to the state of the ports; however, when multiple security groups are applied to one instance, there is a higher chance of overlapping security rules.


1 Answers

Name is simply displaying the value of the Name tag on the security group.

The real name is the Group Name, which cannot be changed after creation.

Yes, it is confusing!

like image 118
John Rotenstein Avatar answered Sep 20 '22 14:09

John Rotenstein