Skip to content

Instantly share code, notes, and snippets.

@qmaruf
Created January 29, 2023 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qmaruf/50c4d3ffabeee233d89043ad169816f4 to your computer and use it in GitHub Desktop.
Save qmaruf/50c4d3ffabeee233d89043ad169816f4 to your computer and use it in GitHub Desktop.
def lambda_function_exist(function_name):
try:
lambda_client.get_function(FunctionName=function_name)
return True
except lambda_client.exceptions.ResourceNotFoundException:
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment