Associate Resolver query logging configurations to a Route 53 Profile
For instructions on how to create a Resolver query logging configuration, see Configuring (Resolver query logging), and then choose a tab to associate Resolver configuration to a Route 53 Profile by using the Route 53 console, or AWS CLI.
- Console
-
To associate query logging configurations
Sign in to the AWS Management Console and open the Route 53 console at https://console.aws.amazon.com/route53/
. -
On the navigation bar, choose the Region where you created the Profile.
-
On the Profile name page, choose the Resolver query log configurations tab, and then Associate.
-
On the Associate query logging configurations page, in the Resolver query log configurations table, you can select up to three configurations that you previously created. If you want to associate more than three query logging configurations, use the API. For more information, see AssociateResourceToProfile.
-
To create new Resolver query logging configurations, see Configuring (Resolver query logging).
-
Choose Associate
-
The association progress is displayed in the Status column on the Resolver query log configurations tab.
- CLI
-
You can associate a query log configuration to a Profile by running a AWS CLI command like the following and using your own values for
nameprofile-idandresource-arn.aws route53profiles associate-resource-to-profile --nametest-resource-association--profile-idrp-4987774726example--resource-arnarn:aws:route53resolver:us-east-1:123456789012:resolver-query-log-config/rqlc-cfe7f72exampleThe following is an example output after you run the command:
{ "ProfileResourceAssociation": { "CreationTime": 1710851226.613, "Id": "rpr-001913120b8example", "ModificationTime": 1710851226.613, "Name": "test-resource-association", "OwnerId": "123456789012", "ProfileId": "rp-4987774726example", "ResourceArn": "arn:aws:route53resolver:us-east-1:123456789012:resolver-query-log-config/rqlc-cfe7f72example", "ResourceType": "RESOLVER_QUERY_LOG_CONFIG", "Status": "CREATING", "StatusMessage": "Creating rp-4987774726example to rqlc-cfe7f72example association" } }