Skip to content
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

Support ARM layers #184

Merged
merged 12 commits into from
Nov 16, 2021
Merged

Support ARM layers #184

merged 12 commits into from
Nov 16, 2021

Conversation

duncanista
Copy link
Contributor

What does this PR do?

Add support for ARM layers. Check SLS-1387.
Swap previous layer if lambda layers already contain a previous version.

Motivation

Follow up with

Testing Guidelines

  • Added tests to add correct layer given the architecture.
  • Ignore architecture if runtime doesn't require us to change the layer.

Additional Notes

Upgraded SLS Framework to latest version.

Types of changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog

@duncanista duncanista requested a review from a team as a code owner October 18, 2021 18:09
@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2021

Codecov Report

Merging #184 (68a2517) into master (391f51c) will increase coverage by 0.62%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #184      +/-   ##
==========================================
+ Coverage   75.45%   76.08%   +0.62%     
==========================================
  Files          10       10              
  Lines         603      623      +20     
  Branches      159      164       +5     
==========================================
+ Hits          455      474      +19     
  Misses         91       91              
- Partials       57       58       +1     
Impacted Files Coverage Δ
src/index.ts 75.78% <ø> (ø)
src/layer.ts 90.00% <91.66%> (+2.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 391f51c...68a2517. Read the comment docs.

etaoins added a commit to seek-oss/skuba that referenced this pull request Nov 3, 2021
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
etaoins added a commit to seek-oss/skuba that referenced this pull request Nov 3, 2021
* Switch `lambda-sqs-worker` template to ARM64

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

* Reword title

* Format for prettier

* Downgrade to patch

Co-authored-by: Ryan Ling <[email protected]>

* Less bogus words

Co-authored-by: Ryan Ling <[email protected]>

Co-authored-by: Ryan Ling <[email protected]>
Copy link
Contributor

@jcstorms1 jcstorms1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @duncanista this looks good to me but I'd get a second pair of eyes on it if that's OK.

src/index.ts Show resolved Hide resolved
@duncanista duncanista requested review from maxday and removed request for astuyve November 16, 2021 02:50
Copy link
Contributor

@maxday maxday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@duncanista duncanista merged commit 23ead5b into master Nov 16, 2021
@duncanista duncanista deleted the jordan.gonzalez/support-arm-layers branch November 16, 2021 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants