Reputation: 971
I am testing a script by uploading a zip file on-to AWS Lambda.
This function contains external libraries. Uploading a new file will override these libraries.
I read the Creating a Deployment Package (Node.js) documentation, but I am not able to get a proper understanding.
What am I missing?
Upvotes: 3
Views: 1445
Reputation: 1788
If you can edit your function code inline through the AWS Lambda console, it means that if you edit that single file (index.js or handler.js) will overwrite and replace the entire function with that one file. but if you upload the zip, there should be no problem
Upvotes: 3
Reputation: 1731
If your script has node modules installed from npm, this just means that uploading will overwrite those node modules with whatever is in your new zip file.
It's only telling you whatever you had before will be overwritten.
Upvotes: 2