Using Console
Using CLI
YOUR_SECURITY_GROUP_ID
with the actual ID of the security group you want to modify.YOUR_SECURITY_GROUP_ID
with the actual ID of the security group you want to modify. Replace YOUR_INGRESS_RULES
and YOUR_EGRESS_RULES
with the desired stateful rules in the JSON format.describe-security-groups
command again.Using Python