- Install Gems to Vendor
bundle config set --local path 'vendor/bundle'
bundle
- Zip it UP
zip -r function.zip lambda_function.rb vendor
- Upload it
aws lambda update-function-code --function-name discussions-to-collection --zip-file fileb://function.zip