AWS Layer version 37 doesn't work on arm64 lambda
See original GitHub issueHow do you use Sentry?
Sentry Saas (sentry.io)
Version
arn:aws:lambda:ap-southeast-2:943013980633:layer:SentryPythonServerlessSDK:37
Steps to Reproduce
AWS Lambda layer = arn:aws:lambda:ap-southeast-2:943013980633:layer:SentryPythonServerlessSDK:37
I have tried from version 22, the last version that still works is 24, the first version has this problem is 25.
Also confirm version 37 works on x86 architecture. My guess is something new introduced since layver version 25 only works for x86, most likely the /opt/relay/relay
.
Expected Result
Lambda function should work. eg
Response
{
... whatever application returned ...
}
Function Logs
START RequestId: f415d848-dfb6-4361-b01d-b1a3b11cd2e2 Version: $LATEST
[INFO] 2022-09-12T04:22:46.550Z f415d848-dfb6-4361-b01d-b1a3b11cd2e2 Found credentials in environment variables.
[INFO] 2022-09-12T04:22:47.490Z f415d848-dfb6-4361-b01d-b1a3b11cd2e2 successfully patched module requests
[INFO] 2022-09-12T04:22:47.550Z f415d848-dfb6-4361-b01d-b1a3b11cd2e2 successfully patched module botocore
[INFO] 2022-09-12T04:22:47.649Z f415d848-dfb6-4361-b01d-b1a3b11cd2e2 successfully patched module sqlite3
[INFO] 2022-09-12T04:22:47.907Z f415d848-dfb6-4361-b01d-b1a3b11cd2e2 Found credentials in environment variables.
... application log ignored...
END RequestId: f415d848-dfb6-4361-b01d-b1a3b11cd2e2
REPORT RequestId: f415d848-dfb6-4361-b01d-b1a3b11cd2e2 Duration: 12914.55 ms Billed Duration: 12915 ms Memory Size: 128 MB Max Memory Used: 93 MB Init Duration: 423.18 ms
XRAY TraceId: 1-631eb40c-550e81323a18faa810a21797 SegmentId: 6cc523cc159fcfb8 Sampled: true
Actual Result
Response
{
"errorMessage": "RequestId: 16beabbe-5555-4162-8aba-efba85e5e2fa Error: exit status 1",
"errorType": "Extension.Crash"
}
Function Logs
START RequestId: 16beabbe-5555-4162-8aba-efba85e5e2fa Version: $LATEST
+ exec /opt/relay/relay run --mode=proxy --shutdown-timeout=2 --aws-runtime-api=127.0.0.1:9001
/opt/extensions/sentry-lambda-extension: line 3: /opt/relay/relay: cannot execute binary file
/opt/extensions/sentry-lambda-extension: line 3: /opt/relay/relay: Success
EXTENSION Name: sentry-lambda-extension State: Started Events: []
END RequestId: 16beabbe-5555-4162-8aba-efba85e5e2fa
REPORT RequestId: 16beabbe-5555-4162-8aba-efba85e5e2fa Duration: 98.92 ms Billed Duration: 99 ms Memory Size: 128 MB Max Memory Used: 3 MB
XRAY TraceId: 1-631eb380-49977a6b4c3ad20a2c539e0a SegmentId: 11d7af5965f61201 Sampled: true
RequestId: 16beabbe-5555-4162-8aba-efba85e5e2fa Error: exit status 1
Extension.Crash
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Available versions of the AWS AppConfig Lambda extension
The AWS AppConfig Lambda extension supports Lambda functions developed for the x86-64 and ARM64 (Graviton2) platforms. To work properly, your Lambda function ...
Read more >python - Migrate to arm64 on AWS Lambda show error
I went and check my virtual env layer and pretty sure the file /opt/python/cryptography/hazmat/bindings/_rust.abi3.so is existed there. Then I ...
Read more >Homepage - AWS Lambda Powertools for Python
Lambda Layer (arm64): arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV2-Arm64:5; PyPi: pip install aws-lambda- ...
Read more >class Lambda. Client - Boto3 Docs 1.26.34 documentation
The name or Amazon Resource Name (ARN) of the layer. VersionNumber (integer) -- ... Note: Lambda does not support adding policies to version...
Read more >Install — AWS SDK for pandas 2.18.0 documentation
2 - Go to the AWS Lambda console, open the layer section (left side) and click create layer. 3 - Set name and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@zhaowb yes, sorry we released a new AWS extension based layer and ARM is currently not supported. I would recommend staying on an older version till we also support ARM architectures.
Hoping this will be supported soon!