Skip to content
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

(powertools-layer): ability to import the latest version of the lambda powertools layer #30702

Open
2 tasks
cshields236 opened this issue Jun 28, 2024 · 4 comments
Labels
@aws-cdk/aws-lambda Related to AWS Lambda effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@cshields236
Copy link

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

@cshields236 cshields236 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jun 28, 2024
@github-actions github-actions bot added the @aws-cdk/aws-lambda Related to AWS Lambda label Jun 28, 2024
@dreamorosi
Copy link
Contributor

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.

@pahud
Copy link
Contributor

pahud commented Jul 1, 2024

Yap we could include that in the facts table. That would be amazing!

Welcome the pull requests.

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jul 1, 2024
@pahud
Copy link
Contributor

pahud commented Jul 1, 2024

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?

@dreamorosi
Copy link
Contributor

Hi @pahud, if we agree on a format I can provide the mapping for each Layer ARN and package version no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-lambda Related to AWS Lambda effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

3 participants