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?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ