- Make a zip of index.js, both package.json, and node_modules.
- Go to s3 bucket, delete the old zip then upload the new zip. Once uploaded, get the link to the zip and copy it.
- Go to lambda and click upload from, choose s3 location, then paste the link.