Closed apmclean closed 11 months ago
Thanks for opening your first issue here! We'll come back to you as soon as we can. In the meantime, check out the #typescript channel on our Powertools for AWS Lambda Discord: Invite link
Hey @apmclean , thanks for opening the issue and the detailed description, greatly appreciated!
It seems we forgot to update the layer version in our CDK example. Version 18
does not include the ssm parameter package. In the meantime, if you set the ARN of layer to version 24
, this will resolve the issue.
Also, feel free to submit a PR, if you like, happy to merge it 👍
I would like to take this issue
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Expected Behaviour
CDK Example found at
examples/cdk/README.md
functions as describedCurrent Behaviour
Deployment succeeds, however invocation of the API Gateway URL produces an Internal Error.
Looking at the Lambda functions logs it produces:
Code snippet
Follow instructions:
examples/cdk/README.md
Steps to Reproduce
Follow instructions:
examples/cdk/README.md
Possible Solution
Looking at
examples/cdk/src/example-stack.ts
- Runtime of NodeJS 20 is specified as a default:However version :18 of the Lambda Layer is specified:
Viewing the Layer configuration in the Lambda console shows that NodeJS 20 is not supported. Support Runtimes for that layer version are:
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
20.x
Packaging format used
Lambda Layers
Execution logs
No response