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 個回答
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
已回答 2 年前
  • 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?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南