0

I am using AWS-CLI to my files into my lambda (because i want to ship with my own boto3).

The problem is that I have to upload the whole project (my files + boto3) in my lambda.

I have to wait ~5min each time (my connection is kinda bad)

The question is: can i upload only the files that i want (as git)?

Currently I use this command:

zip -r function.zip . && aws lambda update-function-code --function-name MYFUNC --zip-file fileb://function.zip && rm function.zip

Thanks

1 Answer 1

1

Create a lambda layer for your common files and attach it to your lambda.

Where you can make direct upload for frequently changing files.

Lambda layers

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.