11

So I've read through the docs at: https://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html

I've created the zip file, how / where do I actually upload / publish this zip file into AWS?

3 Answers 3

9

It's kind of hidden away and not very intuitive.

Within the AWS Lamba admin: Create Function > Author from Scratch. Within the Code entry type dropdown there is a Upload a .ZIP file option.

enter image description here

5

You can upload using aws-cli.

aws configure

aws lambda list-functions

aws lambda update-function-code \
    --function-name MyLambdaFunction \
    --zip-file fileb://index.zip

See https://developer.amazon.com/blogs/post/Tx1UE9W1NQ0GYII/Publishing-Your-Skill-Code-to-Lambda-via-the-Command-Line-Interface

1

Upload to AWS from the Lambda console, by creating a new function here: https://console.aws.amazon.com/lambda/home. You can also build your functions and upload to AWS using a tool like Serverless framework.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.