How to Determine AWS Security Group Dependencies

amazon ec2

Amazon EC2 won't let me delete a security group, complaining that the group still has dependencies. How Can I find what those dependencies are?

aws ec2 describe-security-groups doesn't say.

Best Answer

Paste the security group ID in the "Network Interfaces" section of EC2. This will find usage across EC2, EB, RDS, ELB.

CLI: aws ec2 describe-network-interfaces --filters Name=group-id,Values=sg-123abc45