This pattern shows how to find AWS resources based on their creation date by using the AWS Config advanced query feature.
AWS Config advanced queries use a subset of SQL to query the configuration state of AWS resources for inventory management, operational intelligence, security, and compliance. You can use these queries to find AWS resources in a single AWS account and AWS Region or across multiple accounts and Regions. By running a query that uses the resourceCreationTime property, you can return a list of your AWS resources based on their specific creation date. You can run AWS config advanced queries by using either of the following:
The AWS Config Query editor in the AWS Config console
The AWS Command Line Interface (AWS CLI)