Running Ruby-based Lambda functions with binary dependencies can be a bit tricky because AWS Lambda expects the packages with a specific structure, and because included binaries must be built and packaged to work for the Lambda operating environment. This post describes how Bundler should be configured for Lambda and how to ensure binary dependencies are available for gems such as pg and nokogiri.