Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Amazon Linux 2023 lambda runtime image by default #190

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhrcek
Copy link
Contributor

@jhrcek jhrcek commented Jan 8, 2024

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