aws ec2 describe-security-group-vpc-associations
Describes security group VPC associations made with AssociateSecurityGroupVpc. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To describe VPC associations
The following describe-security-group-vpc-associations example describes the VPC associations for the specified security group.
aws ec2 describe-security-group-vpc-associations --filters Name=group-id,Values=sg-04dbb43907d3f8a78Identify--filtersSecurity group VPC association filters.Its output
{
"SecurityGroupVpcAssociations": [
{
"GroupId": "sg-04dbb43907d3f8a78",
"VpcId": "vpc-0bf4c2739bc05a694",
"VpcOwnerId": "123456789012",
"State": "associated"
}
]
}For more information, see Associate security groups with multiple VPCs in the Amazon VPC User Guide.
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--filtersSecurity group VPC association filters.--max-resultsThe maximum number of items to return for this request.--next-tokenThe token returned from a previous paginated request.