Using Console
Using CLI
YOUR_GROUP_ID
with the Group ID of the default security group that allows all traffic.By following these steps, you will successfully remediate the misconfiguration of default security groups allowing all traffic in AWS using AWS CLI.Using Python