Hello. The way that the clean_up function is currently set up allows for Lambda functions that are not created by CredKing to be deleted. This occurred in my cloud environment; CredKing was the tool that deleted these functions, confirmed via CloudTrail.
Instead of calling list_functions, I would suggest passing the 'arns' list defined on line 64 in credking.py to the clean_up function and then simply deleting the ARNs that you know were created by CredKing. This would prevent other Lambda functions that were not created by CredKing from being deleted during the clean up process.
Hello. The way that the clean_up function is currently set up allows for Lambda functions that are not created by CredKing to be deleted. This occurred in my cloud environment; CredKing was the tool that deleted these functions, confirmed via CloudTrail.
Instead of calling list_functions, I would suggest passing the 'arns' list defined on line 64 in credking.py to the clean_up function and then simply deleting the ARNs that you know were created by CredKing. This would prevent other Lambda functions that were not created by CredKing from being deleted during the clean up process.