Using Console
Using CLI
YOUR_SECURITY_GROUP_ID
with the actual ID of the security group you want to delete. Make sure to only delete the security groups that are not required and do not impact your existing resources.Using Python
remediate_security_groups.py
) with the following code: