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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠