To Deploy to AWS Lambda 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 demo-passwords --zip-file fileb://function.zip