aws route53 list-resource-record-sets --hosted-zone-id MYZONE
does not show when that record was created/changed. Is there a way to know that?
Model: GPT-4
aws route53 list-resource-record-sets --hosted-zone-id MYZONE does not show when that record was created/changed. Provide instructions for using CloudTrail?
Yes, you can use AWS CloudTrail to find information about when a Route53 record was created or changed. CloudTrail logs all API calls made in your AWS account, so you can use it to search for the events related to your Route53 records.
To find the creation or modification time of a specific record in your hosted zone, follow these steps:
Open the AWS Management Console and navigate to the CloudTrail service.
In the left navigation pane, click on “Event history.”
Now, filter the events using the following settings:
Event name: Filter by the event names that correspond to Route53 record set changes, such as ChangeResourceRecordSets or CreateHostedZone.
Resource type: Select AWS::Route53::HostedZone.
Resource ID: Enter the hosted zone ID (e.g., MYZONE).
Optionally, you can further narrow down the results by specifying a date range or adding additional filters like username or AWS service.
After applying the filters, you’ll see a list of events matching your criteria. Click on an event to view its details, including the creation or modification timestamp, event source, request parameters, and response elements.
Keep in mind that CloudTrail retains event history for 90 days by default, so if the changes you’re looking for happened more than 90 days ago, you might need to search in the archived logs stored in your Amazon S3 bucket, if you’ve enabled long-term storage of CloudTrail logs.