Closed rgreinho closed 3 months ago
I believe you will need to move to Amazon Linux 2023 as AL2 doesn’t support newer GLIBC versions. That was my experience when I was using AL2.
I believe you will need to move to Amazon Linux 2023 as AL2 doesn’t support newer GLIBC versions. That was my experience when I was using AL2.
That's correct. Deploy your function with the runtime provided.al2023
.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one.
Thanks y'all, it worked! 😃
We are deploying to aws-cn so Amazon Linux 2023 is unfortunately not yet an option for us. Our solution is to add
{
bundling: {
cargoLambdaFlags: ['--target', 'aarch64-unknown-linux-gnu.2.26'],
},
runtime: 'provided.al2'
}
to the RustFunctionProps
(cargo-lambda-cdk).
We are deploying to aws-cn so Amazon Linux 2023 is unfortunately not yet an option for us. Our solution is to add
{ bundling: { cargoLambdaFlags: ['--target', 'aarch64-unknown-linux-gnu.2.26'], }, runtime: 'provided.al2' }
to the
RustFunctionProps
(cargo-lambda-cdk).
Thanks for solving, AWS gov-cloud won't be getting AL2023 for lambda for the foreseeable future so this is a big help.
Since I upgraded to Rust 1.78, I am facing the following issue while deploying lambda functions:
I checked older issues and found somehow similar ones, but it looks like I am building and deploying my functions correctly though:
My runtime is Amazon Linux 2:
The functions are built with
cargo lambda build --release
My rust version is:
And I am using
lambda_runtime = "0.11.1"
.Could it be that Rust 1.78 cannot yet run on Amazon Linux 2 runtimes?