Skip to content

Use Amazon Linux 2023 lambda runtime image by default#190

Open
jhrcek wants to merge 1 commit into
seek-oss:masterfrom
jhrcek:jan/use-amazon-linux-2023-by-default
Open

Use Amazon Linux 2023 lambda runtime image by default#190
jhrcek wants to merge 1 commit into
seek-oss:masterfrom
jhrcek:jan/use-amazon-linux-2023-by-default

Conversation

@jhrcek

@jhrcek jhrcek commented Jan 8, 2024

Copy link
Copy Markdown
Contributor

At the moment serverless-haskell is using provided.al2 as a target for packaging lambda zips.
Unfortunately this image has too old glibc version (2.26) which doesn't work with haskell binaries linked with more recent version of GHC (ghc 9.6+).

Last year AWS made new runtime images available based on amazon linux 2023
See https://aws.amazon.com/blogs/compute/introducing-the-amazon-linux-2023-runtime-for-aws-lambda/
The main appeal of these new images (apart from being more lightweight) is that they have more recent version of glibc (2.34), thus making it possible to run haskell binaries compiler with more recent GHC version.

This PR upgrades the default AWSEvnironment configuration to use this new image.

If you agree with this change, could you please also release new version of serverless-haskell to both hackage and npmjs repos?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant