How to list services by resource creation date?

0

Is there a way to create a list of resources based on the date of creation? This is for understanding what resources were created after a MAP Agreement signed . And collect them in one place.

1 Answer
0

Hello

You can use AWS config Advanced query to get the information of all resources single account and multiple accounts in a single place using Config aggregator

  • Go to Advanced Query config console in AWS link here
  • Copy the Query into the Console and run the Query

Please find the below query to get the information of resources by the date > 2021-07-26, You can change this date by your MAP date and you will get results , You can also export in CSV

SELECT
  resourceId,
  resourceName,
  resourceType,
  configuration.instanceType,
  tags,
  configuration.creationDate
WHERE
  configuration.creationDate > '2021-07-26'
ORDER BY
  configuration.creationDate

If you want to filter you can change by the data types here

Thank You GK

profile picture
GK
answered 2 years ago
  • After following the steps mentioned by GK, i found that stopping and starting EC2 instances updates the creationDate as launchDate, sue to which this query gives incorrect results. Has anyone else faced the same issue?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions