(powertools-layer): ability to import the latest version of the lambda powertools layer
Describe the feature
it would be great to have the ability to call on the latest version of the lambda powertools layer for use in Lambda functions. It is currently possible with other Lambda layers including AppConfig one & Lamda insights Example. Ideally would love to have an implemetation like
const fn = new Function(this, 'foo', {
layers: [PowertoolsForAwsLambda.NODEJS_LATEST]
});
Use Case
At the moment there is no automated solution for powertools and we are reliant on manually updating an SSM parameter which holds the ARN of the layer.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
CDK version used
2.144.0
Environment details (OS name and version, etc.)
OSX14.5
Hi, I work on the Powertools for AWS Lambda team at AWS - our Lambda layer are public and available in the Lambda console, similar to the ones mentioned in the OP.
We’d love to see them included in CDK if the team agrees with adding them.
Yap we could include that in the facts table. That would be amazing!
Welcome the pull requests.
Hi @dreamorosi
our Lambda layer are public and available in the Lambda console, similar to the ones mentioned in the OP.
Is there any recommended approach to generate the ARN list using AWS CLI?
If not, do you have any relevant doc page like this for all the latest ARNs?
Hi @pahud, if we agree on a format I can provide the mapping for each Layer ARN and package version no problem