AWS, AWS Lambda, Programming, Software Development, Cloud Services.
open(zip_filename, 'rb') as f: create_resp = lambda_client.create_function( FunctionName="consumer", Runtime="python3.10", Role="arn:aws:iam::000000000000:role/lambda-role", Handler="consumer.handler", Code={'ZipFile': f.read()}, MemorySize=128, ) # creating event source mapping, which allows read