Description
Opening an issue as requested. We currently install lambda-powertools using the SAR layer method, however it appears that the optional dependencies to use advanced features like the parser
are not available in the layer. We'd like a way to include these dependencies without having to maintain our own lambda layer pipeline (which would remove most of the value of installing the main powertools dependency using the SAR application).
Some possible approaches:
- Retain a single SAR application for the powertools dependency, but include all optional dependencies
- Concerns: overall layer size? Not sure how big these dependencies are
- Configure a pipeline to publish multiple SAR apps with various combinations of optional dependencies
- Concerns: Operational overhead for the AWS team, potential explosion of layer combinations (especially with 5-layer limit on lambda - unless there's some news about this at reinvent 😄 )
- Offload the work to all consumers of the powertools library
- Concerns: Lots of repeated work, managing their own pipelines to generate layers, across all users of powertools
@heitorlessa are the extras required for this functionality included in the SAR app / lambda layer? Or do those need to be handled separately? Might be worth adding a note in the docs, not sure if that would be under the parser docs or the lambda layer installation docs?
Hey @mwarkentin - the latter, handled separately as described in the parser docs.
Unsure whether it worth creating a separate Layer for that tbh given the additional operational overhead. In V2, we'd like to create each utility to be pip installable if a theory works, then we could consider multiple layers I suppose.
Happy to discuss more in a separate issue tho ;)
Originally posted by @heitorlessa in #118 (comment)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status