I have inherited a large number of undocumented lambdas and I want to know which ones we are and which ones we are not using in our estate. I can collect a list of all of them using aws lambda list-functions
, but does not tell me whether they were last called.
Is there an endpoint to the CLI that I could iterate over with the lambda's ARN in order to access this? I have attempted aws cloudwatch get-event-data-store
(unsuccessfully). Also not all the lambdas are set up with cloudwatch and there does not seem to be any help in cloudtrail.
Finding the 'last run time' seems like something that people would want to do for a serverless function, but there isn't anything easy about it. Is this possible?