Building AWS Ruby Lambdas that Require Gems with Native Extension

If your Ruby development environment (e.g. a Mac) is different from your target Lambda in terms of operating system or architecture, there may be problems creating your Lambda image. This is especially true if your Ruby Gem Dependencies include C extensions. Without taking special steps, you may end up with a Lambda image that won't work when you try to run the Lambda.This is due to the fact that some Gems have native extensions that ether have prebuilt versions for specific target OS and architectures. Many common Gems have native extentions. Some of these include Gems like nokogiri, json, nio4r and ffi.
Building AWS Ruby Lambdas that Require Gems with Native Extension #ruby #rubydeveloper #rubyonrails #aws #gems https://rubyonrails.ba/single/building-aws-ruby-lambdas-that-require-gems-with-native-extension

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles