HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/ec2/describe-security-group-references.rst
**To describe security group references**

This example describes the security group references for ``sg-bbbb2222``. The response indicates that security group ``sg-bbbb2222`` is being referenced by a security group in VPC ``vpc-aaaaaaaa``.

Command::

  aws ec2 describe-security-group-references --group-id sg-bbbbb22222

Output::

  {    
    "SecurityGroupsReferenceSet": [
      {
        "ReferencingVpcId": "vpc-aaaaaaaa ",
        "GroupId": "sg-bbbbb22222", 
        "VpcPeeringConnectionId": "pcx-b04deed9"      
      }   
    ]
  }