I have a lambda function within AWS based off the clear-lambda-storage application at . There is code that is as follows:
from argparse import Namespace
from clear_lambda_storage import remove_old_lambda_versions
def clear_lambda_storage(event, context):
remove_old_lambda_versions(Namespace(token_key_id=None, token_secret=None, regions=None, profile=None, num_to_keep=3, function_names=["insertName"]))
return "Successful clean! 🗑 ✅"
With the function_names argument I want to have a list of names of all the lambda functions in the account - is there any way I can do this besides manually hardcoding them (so that if a new lambda function is added, the list is updated).