We have lots of Lambda functions in our AWS account which was created by ex-employees.
I have to get a list of Lambdas which were not used in the last six months and delete them.
Also, how can I find out if there are any dependent objects on those Lambdas?
Thanks in advance.
Question posted in Amazon Web Sevices
The official Amazon Web Services documentation can be found here.
The official Amazon Web Services documentation can be found here.
2
Answers
How about automating this task through a script and this will save your time in future as well. This is one of the very well written blog along with the solution. Give it a try
https://aws.amazon.com/blogs/mt/automating-the-discovery-of-unused-aws-lambda-functions/
You can take a look at this open-source repository on github.
They are creating an open-source framework for writing Runbooks using Jupyter notebooks.
This repo has a pre-built actions to find AWS lambdas that have a high error rate, are timing out etcetera. I think it has one for finding unused lambdas too. Instead of writing the script, you can have it in one runbook. Sharing this as it helped me with some of my automations. 🙂