Skip to content

Instantly share code, notes, and snippets.

@qmaruf
Created January 29, 2023 13:39
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/896243c4b776b957c818d2da9efde03c to your computer and use it in GitHub Desktop.
Save qmaruf/896243c4b776b957c818d2da9efde03c to your computer and use it in GitHub Desktop.
def update_lambda(function_name):
response = lambda_client.update_function_code(
FunctionName=function_name,
ZipFile=open(f'{function_name}.zip', 'rb').read()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment