I'll summarize my issue.
I have a solution containing multiple .NET lambdas (3.1) which I deploy using serverless, all of which work just fine in the old architecture (x86_64) but when I changed the architecture setting to arm64 (and saw that it updated the actual lambda in console) whenever I actually run the lambda it crashes.
Unable to load assembly 'Lambda.Api'.: LambdaException
19 Oct 2021 09:22:15,116 [WARN] (invoke@invoke.c:331 errno: None) run_dotnet(dotnet_path, &args) failed
Unknown application error occurred
I have three questions regarding this.
I'm not sure, but probably you have to pass arm64
parameter during the packaging
dotnet lambda package -farch arm64