I am trying to run a .NET 6 lambda on the Amazon Linux 2 runtime.
Trying to get the following example to work: https://github.com/normj/LambdaNETCoreSamples/tree/master/CustomRuntimeListBucketsNET6
I have tried both this example, and my own sample project with similar configurations and continue to get the following error: Error: fork/exec /var/task/bootstrap: exec format error Runtime.InvalidEntrypoint. I have set the lambda handler value to "provided", "bootstrap" etc in the AWS UI but continue to get the same error.
The error suggests that the entry point is invalid, what should the handler value on the lambda be in AWS for this?
Also, I am using "dotnet lambda package" to create a zip and push the application via zip, is this causing the problem?