VOOZH about

URL: https://repost.aws/questions/QUHdA-EYqXTzirZWY6heb9Eg/how-can-we-check-when-each-lambda-function-in-aws-was-last-used

⇱ How can we check when each Lambda function in AWS was last used | AWS re:Post


Skip to content

How can we check when each Lambda function in AWS was last used

0

We have around 200+ Lambda functions. How can we check when each Lambda function in AWS was last used? While going through the Lambda function details, I found only the last modified entry. Similarly, is it possible to determine the time it was last executed without checking the CloudWatch and the Monitoring tab?

Language
English

asked 3 years ago3.5K views

2 Answers
  • Newest
  • Most votes
  • Most comments
1

Hello.

A surefire way is to open CloudWatch Logs from Monitoring and check the latest execution times.
As far as I know, you can probably only do this on the management console by checking the monitoring or checking the logs.

EXPERT

answered 3 years ago

0

Hi,

I'd suggest you to go this post: https://stackoverflow.com/questions/73887032/get-last-execution-date-for-more-than-100-lambdas

It provides some Python code to obtain the last execution time that you're after.

I would suggest to replace the text files with the list of functions names by a call to https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda/client/list_functions.html

Best,

Didier

EXPERT

answered 3 years ago

EXPERT

reviewed 3 years ago