-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch lambda-sqs-worker
template to ARM64
#640
Conversation
These are a bit cheaper and a bit faster than the x86 Lambdas: <https://aws.amazon.com/blogs/aws/aws-lambda-functions-powered-by-aws-graviton2-processor-run-your-functions-on-arm-and-get-up-to-34-better-price-performance/> The underlying Lambda architecture should be invisible to typical TypeScript Lambdas. Indirect Apply has switched over all of their Lambdas, only encountering difficulty with DataDog/serverless-plugin-datadog#184
🦋 Changeset detectedLatest commit: 9f56793 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-authored-by: Ryan Ling <[email protected]>
Co-authored-by: Ryan Ling <[email protected]>
I think it might be worth leaving a comment somewhere that you should be using arm64 build agents since buildx isn't available on our regular build agents yet |
This doesn't require ARM64 build agents. Serverless uploads a source ZIP, there's no binaries involved. |
However - when we run eg. |
You can't use native dependencies on the To include native node deps on Lambda, you'd need to use something like SAM to build a Docker image: If you're going to that length, you need to change the |
Gotcha - thanks for the explanation! 😄 |
These are a bit cheaper and a bit faster than the x86 Lambdas:
https://aws.amazon.com/blogs/aws/aws-lambda-functions-powered-by-aws-graviton2-processor-run-your-functions-on-arm-and-get-up-to-34-better-price-performance/
The underlying Lambda architecture should be invisible to typical TypeScript Lambdas. Indirect Apply has switched over all of their Lambdas, only encountering difficulty with DataDog/serverless-plugin-datadog#184.