Building AWS Ruby Lambdas that Require Gems with Native Extension
10-Feb-2023 785
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 #Building #Lambdas #Require #Native #Extension #aws #gems https://rubyonrails.ba/link/building-aws-ruby-lambdas-that-require-gems-with-native-extension