mrpandey
mrpandey

Reputation: 1019

How to find the last time an AWS resource was used?

I am trying to build a tool which tracks unused AWS resources. I have figured out how to obtain a list of all resources on my AWS account. Now, for each of these resources, I need to find out the last time it was used.

Is there some AWS API/CLI using which I can find the required info?

I did some search, but the most common suggestion I get is to use tools like Janitor Monkey and Cloud Custodian. I am trying to build a tool of my own, and do not want to employ some other software.

Upvotes: 0

Views: 718

Answers (1)

urirot
urirot

Reputation: 399

you can use AWS Cloudwatch for monitoring.

You can monitor metrics like CPU utilization and network latency.

Also, you can try using the logs but that will depend on the application that is running in your machine.

Upvotes: 1

Related Questions