Check out this document. You can do it via the console as shown in the document or via the CLI:
aws ec2 describe-network-interfaces --filters Name=group-id,Values=<group-id> --region <region> --output json
Hope this helps
We answered your question in the latest episode of AWS Supports You. Please take a look at the YouTube video here, and we hope it helps answer your question! https://www.youtube.com/watch?v=lzadlmq4LcM
Please don't hesitate to comment here if you have any follow up questions. If this helped to answer your question, please make sure to mark this question as answered.
Have a great day!
This will definitely show you all the resources your security group is associate with
aws ec2 describe-network-interfaces --filters Name=group-id,Values=<group-id> --region <region> --output json --query 'NetworkInterfaces'
Hey, does checking into network interfaces cover all cases? or there might be some cases further left and we end up deleting the wrong one. Couple of things on top of my head
- What if a security group is referenced by another security group but not there in a network interface
- What if security group is used by another account?
there might be other cases ,how can we make sure that these cases are also handled or am i just being too much paranoid?
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 9 months ago
- How do I monitor changes to security groups set up on my EC2 Linux instance using EventBridge and Amazon SNS?AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
- EXPERTpublished 4 months ago