Using Console
Using CLI
<security-group-id>
with the ID of the security group that needs to be updated, <port-number>
with the port number that needs to be opened, <ip-address>
with the IP address that needs to be allowed, and <description>
with the description of the security group.Using Python
describe_security_groups
method of the AWS EC2 client to retrieve a list of all security groups in your AWS account.
update_security_group_rule_descriptions_ingress
method of the AWS EC2 client to add a description to the security group.