-
Notifications
You must be signed in to change notification settings - Fork 110
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
AL2023 base image support #59
Comments
are there any workarounds here such that we can deploy .Net 7.0 Arm64 lambdas per aws/aws-lambda-dotnet#1310 |
Thank you for raising this issue. This should be addressed in AL2022, but unfortunately you can't use AL2022 in Lambda yet because it requires a kernel upgrade. We're working on that, but I don't have a schedule to share at this time, and to set expectations it's likely to be well into next year. Unfortunately, I don't have a workaround I can offer in the meantime. |
@jtuliani are there any other forums (Microsoft) that we can comment on to encourage movement, of is this entirely under Amazon/AWS/Lambda team control? Do we need to reach out to our AWS Account Management? We are under the impression that there is an underlying EOL issue with the prior/current version, that expires early next year. |
@jtuliani Is there the possibility of getting a pre-release AL2022 for lambda earlier? |
@tmitchel2 as I understand it (so very possibly incorrect/incomplete) having a pre-release image is not sufficient, as the AWS Lambda back end would also need to support said base image per the “Kernel upgrade” as @jtuliani mentions! We’ve been pondering reaching out to our AWS account management representatives to see if they can help apply any influence. Our best efforts at a work around is that . in our case, it’s currently impossible to build a .Net 7 AoT (native binary) from a M1 Apple Silicon environment for x64 using QEMU emulation as the Docker build crashes - not really surprising given combination of Rosetta x64 emulation too. Whilst we can trigger a GitHub workflow to do this (via an Ubuntu runner) and place the built Lambda package zip in S3 and have CDK deployments pick it up from there. This is very inefficient from a developer experience/productivity perspective. Now that .Net 7 SDK is released, one hopes that there is more incentive to get this resolved, as this is a blocking dependency given .Net7 uses the newer glibc libraries. However it seems AWS predominantly only generally support LTS runtimes, so we’d have to wait another 12 months…and continue to be dependent on custom runtime images. As we scale up we will really need to switch to ARM based Lambda’s to more effectively manage costs. AoT offer significant cold start performance improvements such that we may need to not need to pursue provisioned capacity - so to us getting this resolved is critical. We gather the current version EOL is now 2024 so that incentive is now less pressing unfortunately! |
@Simonl9l Yup Im in exactly the same position. Im on arm64 with NET 6.0 and want to upgrade to NET 7.0 to leverage AOT compilation to get rid of the cold start time. Ive taken the x86 route for now so I can at least upgrade but obviously not desirable from a cost perspective. I only have an x86 mac, but I don't understand your issue with having an M1. I just use cdk for setting up my environment builds, I had no issues in that area to build on arm or x86 variants. The only issue was the glibc one on arm + NET 7.0 at runtime. Cdk has made the process seemless and easy in my scenario for remote builds and then locally I just build for osx or forget the platform specific stuff entirely. |
@jtuliani would you have any update on the expected timing? How far ahead of us in "well into next year" for 2023?
|
@FMKerckhof sounds like we just need to wait for .NET 7.0.4 which will work with the existing AL2 lambda host. |
thanks for weighing in @tmitchel2 - I need specific c++ libraries but for certain R packages (not for .NET) which need to be deployed in a custom runtime container, sadly for those there is no update trajectory foreseen that will resolve the issue hence I'd like an outlook on the availability of a base image. |
Graal native images build done with oracle native image buildpack (maven, gradle) don‘t run as the used GLIBc version are not available at runtime at the outdated lambda base image. Please deliver a recent image with recent GLIBC support. |
For anyone that missed this from @jtuliani #92 (comment)
|
As of 22 Feb 2023, the AL2023 has reached GA I believe (because the The |
Correct, AL2023 support was launched on 2023-11-10: https://aws.amazon.com/blogs/compute/introducing-the-amazon-linux-2023-runtime-for-aws-lambda/ Closing this issue. |
I just wanted to create an issue to track the AL2 -> AL2023 transition. I compiled
chromium
to work on AL2023, but it will not run properly in Lambda because of AL2 not supporting some glibc versions.Originally posted by @jtuliani in #47 (comment)
EDIT: cough AL2023 instead of AL2022
The text was updated successfully, but these errors were encountered: