Using Console
Using CLI
IpPermissions
attribute that contains rules.
YOUR_SECURITY_GROUP_ID
with the actual Group ID of the identified security group.Using Python
YourRegion
and YourProfile
with your actual AWS region and profile name in the code snippet.