CmdID / aws / aws route53resolver
aws route53resolver list-resolver-rule-associations
Lists the associations that were created between Resolver rules and VPCs using the current Amazon Web Services account. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list associations between Resolver rules and VPCs
The following list-resolver-rule-associations example lists the associations between resolver rules and VPCs in the current AWS account.
aws route53resolver list-resolver-rule-associationsIdentifyIts output
{
"MaxResults": 30,
"ResolverRuleAssociations": [
{
"Id": "rslvr-autodefined-assoc-vpc-304bexam-internet-resolver",
"ResolverRuleId": "rslvr-autodefined-rr-internet-resolver",
"Name": "System Rule Association",
"VPCId": "vpc-304bexam",
"Status": "COMPLETE",
"StatusMessage": ""
},
{
"Id": "rslvr-rrassoc-d61cbb2c8bexample",
"ResolverRuleId": "rslvr-rr-42b60677c0example",
"Name": "my-resolver-rule-association",
"VPCId": "vpc-304bexam",
"Status": "COMPLETE",
"StatusMessage": ""
}
]
}For more information, see How Route 53 Resolver Forwards DNS Queries from Your VPCs to Your Network in the Amazon Route 53 Developer Guide.
Options
--filtersAn optional specification to return a subset of Resolver rules, such as Resolver rules that are associated with the same VPC ID.--max-resultsThe maximum number of rule associations that you want to return in the response to a ListResolverRuleAssociations request.--next-tokenFor the first ListResolverRuleAssociation request, omit this value.