

# Identify Amazon Transit Gateway referenced security groups
<a name="tgw-sg-updates-identify"></a>

To determine if your security group is being referenced in the rules of a security group in a VPC attached to the same transit gateway, use one of the following commands.
+ [describe-security-group-references](https://docs.amazonaws.cn/cli/latest/reference/ec2/describe-security-group-references.html) (Amazon CLI)
+ [Get-EC2SecurityGroupReference](https://docs.amazonaws.cn/powershell/latest/reference/items/Get-EC2SecurityGroupReference.html) (Amazon Tools for Windows PowerShell)