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

Feature request: AWS Lambda Layers support #826

Closed
saragerion opened this issue May 2, 2022 · 5 comments
Closed

Feature request: AWS Lambda Layers support #826

saragerion opened this issue May 2, 2022 · 5 comments
Assignees
Labels
completed This item is complete and has been merged/shipped feature-request This item refers to a feature request for an existing or new utility logger This item relates to the Logger Utility metrics This item relates to the Metrics Utility tracer This item relates to the Tracer Utility
Milestone

Comments

@saragerion
Copy link
Contributor

Description of the feature request

Problem statement

Currently AWS Lambda Powertools for Python supports usage via a Lambda Layer. The TypeScript Powertools do not.

Summary of the feature

Lambda Layer is a .zip file archive that can contain additional code, pre-packaged dependencies, data, or configuration files. Layers promote code sharing and separation of responsibilities so that you can iterate faster on writing business logic.

This issue would include Lambda Powertools Lambda Layer using AWS Lambda Console, or your preferred deployment framework.

When using Layers, you can add Lambda Powertools as a dev dependency (or as part of your virtual env) to not impact the development process.

Additionally, Lambda Layers allow us to understand who uses this library in a non-intrusive way. This helps us justify and gain future investments for other Lambda Powertools languages.

Code examples

https://awslabs.github.io/aws-lambda-powertools-python/latest/#install

Benefits for you and the wider AWS community

A different way to install and leverage the library.

Describe alternatives you've considered

N/A

Additional context

N/A

Related issues, RFCs

N/A

@saragerion saragerion added the triage This item has not been triaged by a maintainer, please wait label May 2, 2022
@saragerion saragerion changed the title Feature (all): AWS Lambda Layer support Feature (all): AWS Lambda Layers support May 2, 2022
@orozcoadrian
Copy link

Lambda layers can be architecture-specific, if they contain native code. Assuming there's no native code in this library, it will be compatible with both x86 and arm64. It'd be nice to make that explicit in the documentation.

Reference:
https://aws.amazon.com/blogs/compute/migrating-aws-lambda-functions-to-arm-based-aws-graviton2-processors/#:~:text=Functions%20without%20architecture%2Dspecific%20dependencies%20or%20binaries

For illustration, here's a lambda layer that only works with x86, but there's no mention of it in the docs: https://serverlessrepo.aws.amazon.com/applications/us-east-1/145266761615/image-magick-lambda-layer

@idm-ryou
Copy link

idm-ryou commented Oct 18, 2022

Thank you for your great work.
It would be helpful to have a table in the documentation that maps the npm package version to the Lambda Layer version.

@dreamorosi
Copy link
Contributor

dreamorosi commented Oct 18, 2022

Thank you for your great work.
It would be helpful to have a table in the documentation that maps the npm package version to the Lambda Layer version.

Hi @idm-ryou, thanks for the feedback. While looking at the docs you should be able to see the package version at the top of the page (visible when you are at the top of the page):
image
All the contents of the docs, including layer version, refer to that version.

At the moment however, we have an issue in our release process that makes it so that library version & layer version shown in the docs are out of sync. For instance, at the moment our v1.3.0 documentation is showing Layer version 2 while it should show version 3.

We are tracking work to fix the issue here #1124

@dreamorosi
Copy link
Contributor

Released in v1.3.0

@dreamorosi dreamorosi removed the pending-release This item has been merged and will be released soon label Oct 18, 2022
@github-actions
Copy link
Contributor

⚠️ COMMENT VISIBILITY WARNING ⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@dreamorosi dreamorosi changed the title Feature (all): AWS Lambda Layers support Feature request: AWS Lambda Layers support Nov 14, 2022
@dreamorosi dreamorosi added feature-request This item refers to a feature request for an existing or new utility completed This item is complete and has been merged/shipped labels Nov 14, 2022
@dreamorosi dreamorosi added logger This item relates to the Logger Utility tracer This item relates to the Tracer Utility metrics This item relates to the Metrics Utility labels Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed This item is complete and has been merged/shipped feature-request This item refers to a feature request for an existing or new utility logger This item relates to the Logger Utility metrics This item relates to the Metrics Utility tracer This item relates to the Tracer Utility
Projects
None yet
Development

No branches or pull requests

5 participants