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?
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?