Identify AWS Transit Gateway referenced security groups - Amazon VPC

Identify AWS Transit Gateway referenced security groups

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.