Skip to content

Feature request: SSM parameter(s) for latest layer compatible with semantic version range #3809

Open
@scratchclaggy

Description

@scratchclaggy

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

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussingThe issue needs to be discussed, elaborated, or refinedfeature-requestThis item refers to a feature request for an existing or new utilitylayersItems related to the Lambda Layers pipeline

    Type

    No type

    Projects

    Status

    Ideas

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions