- Newest
- Most votes
- Most comments
It seems that the only workaround is to use the "Copy to new Security Group" action, then filling in the desired name and description in the arguments to that command. In some corner cases (e.g. copy to different VPC), this requires that you manually delete the "self-ref" rule during the copy command, then add it back manually once the copy has been assigned a number by AWS.
You're right that security groups in Amazon EC2 are identified by their ID (sg-xxxxxxxx), but they also have a name and description that can be more meaningful. However, there's a slight misunderstanding in your question.
The "Name" tag you're referring to is different from the "security group name". The "security group name" is actually set when you create the security group and cannot be changed after creation. The "Name" tag, on the other hand, can be edited at any time.
As for the description, you can indeed change it after the security group has been created. Here's how you can do it:
-
Using the AWS CLI: You can use the 'update-security-group-rule-descriptions-egress' or 'update-security-group-rule-descriptions-ingress' commands to update the description of egress or ingress rules respectively. However, these commands don't change the overall security group description.
-
Using the AWS Management Console: Unfortunately, there isn't a direct way to change the security group description through the console after creation.
-
Using AWS SDK or API: You can use the UpdateSecurityGroupRuleDescriptionsIngress and UpdateSecurityGroupRuleDescriptionsEgress API calls to update rule descriptions, but not the overall security group description.
It's important to note that if you need to change the security group name, you would need to create a new security group with the desired name and then associate your resources with this new security group.
To make your security groups more identifiable, it's a best practice to use meaningful names when creating them, and to use tags (including the "Name" tag) to add additional context and information. These tags can be easily edited at any time and can be used for better organization and identification of your security groups.
Sources
Change the security groups for your Amazon EC2 instance - Amazon Elastic Compute Cloud
Use CreateSecurityGroup with an AWS SDK or CLI - Amazon Elastic Compute Cloud
Use CreateSecurityGroup with an AWS SDK or CLI - AWS SDK Code Examples
What I find particulary odd is that many of the web uis will tell you what the "security group name" of the new group will be (eg launch-wizard-5) and yet they don't allow you to enter a meaningful name.
Relevant content
- AWS OFFICIALUpdated a year ago

Unfortunately, this non-answer mostly repeats the question then says that AWS provides no functionality to set the "security group name" (which I did not confuse with the "name", I merely contrasted the two), even for a new security group. In particular, the console UI for creating a security group does not offer a way to choose a name.