-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(lambda): (CDK lambdas still using node16) #26461
Comments
Hi Any ETA on this? Thanks |
Migrate the LogRetention Custom Resource to AWS SDK v3. Part of a fix for #26461 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Node18 is the default runtime environment for lambdas in the [default](https://aws.amazon.com/it/blogs/compute/node-js-18-x-runtime-now-available-in-aws-lambda/), [China](https://www.amazonaws.cn/en/new/2023/amazon-lambda-adds-support-for-node-js-18-in-amazon-web-services-china-regions/), and [GovCloud](https://aws.amazon.com/it/about-aws/whats-new/2023/04/aws-lambda-node-js-18-govcloud-regions/) regions. This fix updates the runtime default versions for constructs that were still using older versions, in particular: - `LogRetention` - `AwsCustomResource` - `CustomResourceProvider` Also, it updates the `DefaultCrNodeVersionMap` in the fact tables to reflect the updated values. Closes #26461. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
on 2.94 |
Hi @lkoniecz Thanks for reporting this. The team is currently aware of 2 custom resources that are still on node 16 (not 18). |
@mrgrain |
No worries and thanks for confirming! |
Describe the bug
Since https://github.com/aws/aws-cdk/releases/tag/v2.87.0 CDK lambda runtime should be using node 18 runtime.
We are seeing some runtimes still using node 16 e.g. LogRetention lambda. (there may be more)
https://github.com/aws/aws-cdk/blob/v2.87.0/packages/aws-cdk-lib/aws-logs/lib/log-retention.ts
it seems to be defaulting to node_16 if a regional Fact is not set – where is this set? I couldn’t see anything in release notes relating to this. is this something AWS configures so that node 18 is used? Or do we have to do something?
Expected Behavior
node 18 runtime should be used in all CDK generated lambdas
Current Behavior
Node 16 is being used in some CDK generated lambdas
Reproduction Steps
this is autogenerated by CDK
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.87.0
Framework Version
2.87.0
Node.js Version
16
OS
Ubuntu standard:6.0
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: