-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Conversation
390b84d
to
1f82451
Compare
09fe126
to
627b7c7
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this 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 👍
6fe374c
to
e68e146
Compare
9564093
to
1f72cc6
Compare
…ode of the layer available in the executors
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.)