question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Lambda on Arm CPUs

See original GitHub issue

Context

Amazon recently announced that they are now offering Lambda running on their custom Graviton2 CPUs. These are built around the Arm CPU architecture instead of Intel, apparently offering up to 19 percent better performance at 20 percent lower cost.

Zappa does not currently have a way to indicate which CPU architecture it should use for deployment. Furthermore, for Python packages that have binary components Zappa currently always fetches the wheel files for the x86_64 architecture.

It would be valuable if Zappa supported deployment on the Arm platform by means of a configuration setting.

Expected Behavior

n/a

Actual Behavior

n/a

Possible Fix

The code that implements core.create_lambda_function() calls the CreateFunction AWS API endpoint to create the Lambda function. Amazon has updated the API to add a new Architectures argument that can be set to either x86_64 or arm64 (with the former as the default). A new architecture configuration setting should set this argument.

The regular expressions that find the suitable wheel files and check for cached wheels will need to be updated to find the wheels for the correct architecture.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:8
  • Comments:5

github_iconTop GitHub Comments

3reactions
turingbeingcommented, Oct 14, 2021

Any PRs for this issue?

I will work on this issue

2reactions
dickermoshecommented, Feb 22, 2022

My mistake. You’re 100% right. It always looks for x86. I’ll shut up now 😳

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS Lambda Functions Powered by AWS Graviton2 ...
All Lambda runtimes built on top of Amazon Linux 2, including the custom runtime, are supported on Arm, with the exception of Node.js...
Read more >
Migrating AWS Lambda functions to Arm ... - Serverless Land
AWS Lambda now allows you to configure new and existing functions to run on Arm-based AWS Graviton2 processors in addition to x86-based ...
Read more >
AWS makes Arm-powered Lambda functions generally available
Amazon Web Services has made the option of using Graviton2 Arm-based processors for Lambda functions generally available.
Read more >
Graviton-Based Lambda Functions, What It Means For You
https://lumigo.io/learn/aws-lambda-cost-guide/AWS just announced support for AWS Lambda functions powered by AWS Graviton2 processors.
Read more >
AWS Lambda Now Supports arm64 (Graviton2), A Win For ...
AWS Lambda Now Supports arm64 (Graviton2), A Win For Our Planet! AWS Lambda now supports running on Graviton2 processors (arm64). Driving ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found