Description
Use case
Package managers within the Node ecosystem give users the ability to specify different semantic version ranges for the packages used within a project. However, when Powertools users leverage the published lambda layers, they are not able to enjoy the same semver guarantees as they rely on in their package.json
.
Solution/User Experience
While users can currently access the latest powertools layer that is available via an SSM parameter, it would be useful for a similar parameter to exist which points at the latest layer compatible with an arbitrary semver range.
e.g.
package.json
-> ^2.17.0
/aws/service/powertools/typescript/generic/all/2
-> arn:aws:lambda:{region}:094274105915:layer:AWSLambdaPowertoolsTypeScriptV2:23
Alternative solutions
Perhaps instead of publishing a compatible version via SSM parameters, we could export a utility function that returns the layer ARN given some semver range as input. This would be more flexible but would limit its use to CDK or other programatic IaC tools.
Acknowledgment
- This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status