how to get details of security group

0

Hi, we would like to know is there any way to find out if the security group is in use or not or in short to which resource this security group is associated.we did tried to find out for example using aws ec2 describe-network-interfaces --filters Name=group-id,Values=<group-id> but this does not help us much.

Thanks Dilip

2 Answers
1

Hi Dilip.

This Knowledge Center article goes into more depth on what commands need to be run after the aws ec2 describe-network-interfaces command.

AWS
EXPERT
answered 2 years ago
profile pictureAWS
EXPERT
reviewed 2 years ago
1

Hello Dilip, This will definitely show you all the resources your security group is associated with aws ec2 describe-network-interfaces --filters Name=group-id,Values=<group-id> --region <region> --output json --query 'NetworkInterfaces'

profile pictureAWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions