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 Risposta
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
con risposta 2 anni fa
  • 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?

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande