aws / aws-lambda-runtime-interface-emulator

Apache License 2.0
936 stars 99 forks source link

Allow extensions to be disabled #135

Open csreddy opened 3 weeks ago

csreddy commented 3 weeks ago

Issue

Docker for Mac on Apple Silicon MacBooks fail to run SAM containers containing Rust Lambda extensions. This is affecting services that offer SAM based features and customers are blocked. Not sure if the problem is in Docker or Lambda runtime.

cc @valerena

Issues:

Error

START RequestId: 339c53f8-6e0e-4092-8962-421b6b4b1f06 Version: $LATEST
22 May 2024 05:13:35,686 [ERROR] (rapid) Init failed error=exit status 127 InvokeID=
22 May 2024 05:13:35,687 [ERROR] (rapid) Invoke failed error=ErrAgentNameCollision InvokeID=445da4b1-6e01-4662-90e3-10dfaba11e96
22 May 2024 05:13:35,687 [ERROR] (rapid) Invoke DONE failed: Sandbox.Failure

Description of changes

Introducing new env variable AWS_LAMBDA_RIE_DISABLE_EXTENSIONS to disable extensions. With this feature customers can get around the problem by setting this env var in SAM template.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

csreddy commented 2 weeks ago

Sure.