Use Amazon Linux 2023 lambda runtime image by default #190
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?