Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add CRUD support for lambda layers #7204

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

Merged
merged 13 commits into from
Nov 23, 2022
Merged

Conversation

dominikschubert
Copy link
Member

Adds basic CRUD support for lambda layers into the community offering.

This is only a superficial CRUD-based simulation, i.e. the code won't actually be mounted into the lambda. (This feature is reserved for LocalStack PRO.)

@dominikschubert dominikschubert self-assigned this Nov 18, 2022
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 18, 2022 10:37 Inactive
@github-actions
Copy link

github-actions bot commented Nov 18, 2022

LocalStack integration with Pro

       3 files  ±  0         3 suites  ±0   1h 23m 40s ⏱️ + 1m 20s
1 496 tests +  6  1 270 ✔️ ±0  226 💤 +  6  0 ±0 
2 110 runs  +18  1 638 ✔️ ±0  472 💤 +18  0 ±0 

Results for commit 1f99107. ± Comparison against base commit 3735392.

♻️ This comment has been updated with latest results.

@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 21, 2022 16:04 Inactive
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 21, 2022 16:04 Inactive
@coveralls
Copy link

coveralls commented Nov 21, 2022

Coverage Status

Coverage increased (+0.08%) to 82.903% when pulling 1f99107 on feat_lambda-layer-crud into 3735392 on master.

@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 21, 2022 20:39 Inactive
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 22, 2022 19:30 Inactive
@dominikschubert dominikschubert marked this pull request as ready for review November 22, 2022 19:30
Copy link
Member

@dfangl dfangl left a comment

Choose a reason for hiding this comment

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

Only some nits!

all_layer_versions = []
for layer in state.layers.values():
if (
layer_name in layer.arn
Copy link
Member

Choose a reason for hiding this comment

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

Is this really a substring match? Can I list the layer versions of the layer "arn" and get the first one?
The API spec says its the name or arn, could we just extract the name and access by its key?

Copy link
Member

@steffyP steffyP left a comment

Choose a reason for hiding this comment

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

I'm only reviewing the snapshot/transformer changes as I don't have any experience with lambda layers :)
Transfomers LGTM, should be fine if the tests pass 👍

@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 23, 2022 10:25 Inactive
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 23, 2022 10:51 Inactive
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 23, 2022 11:00 Inactive
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 23, 2022 12:48 Inactive
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests November 23, 2022 13:10 Inactive
@dfangl dfangl temporarily deployed to localstack-ext-tests November 23, 2022 13:57 Inactive
@dfangl dfangl temporarily deployed to localstack-ext-tests November 23, 2022 14:20 Inactive
@dominikschubert dominikschubert merged commit 35318ed into master Nov 23, 2022
@dominikschubert dominikschubert deleted the feat_lambda-layer-crud branch November 23, 2022 15:55
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.

4 participants