Custom Lambda Layers

Important: These docs are for the outdated Jets 5 versions and below. For the latest Jets docs: docs.rubyonjets.com

You can include and use your own Custom Lambda Layers. This allows you to handle cases of extra customization like additional system libraries and gems. Here’s how you configure custom Lambda Layers.

config/application.rb:

Jets.application.configure do
  config.lambda.layers = [
    "arn:aws:lambda:us-west-2:112233445566:layer:my-layer:2",
    "arn:aws:lambda:us-west-2:112233445566:layer:another-layer:8",
  ]
end

Jets uses one layer for the Gem Layer. The current max Lambda Layers is 5, so this means you can add up to 4 of your own custom layers.