nodejs downgraded to v12
See original GitHub issueWhat is the problem?
We are upgrading from v1.118.0 to v1.130.0. We noticed as part of the upgrade that some of the implicit lambdas were downgraded from the nodejs 1.14 runtime to the 1.12 runtime. In particular, this is happening for the CertificateRequestorFunction lambda created via aws_certificatemanager.DnsValidatedCertificate
, and the framework-onEvent lambda created via custom_resources.Provider
.
I don’t know which module is responsible for these lambda runtimes.
Reproduction Steps
- Deploy a stack with
aws_certificatemanager.DnsValidatedCertificate
andcustom_resources.Provider
using CDK v1.118.0. - Deploy the stack again with CDK v1.130.0 and look at the diff.
What did you expect to happen?
The lambda runtime should have remained at nodejs 14.
What actually happened?
It downgraded to nodejs 12.
CDK CLI Version
1.130.0
Framework Version
No response
Node.js Version
16.13.0
OS
Alpine 3.14
Language
Python
Language Version
3.9
Other information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
How to downgrade Node version - Stack Overflow
Go to Control panel> program and features>Node.js then uninstall. Go to website: https://nodejs.org/en/ and download the version and install ...
Read more >Quickly downgrade or upgrade your Node.js version
To switch between the two, you type in n , hit Enter , use the up/down arrow keys to choose a Node.js version,...
Read more >How to downgrade node version - Educative.io
For Windows and nvm , the command is: nvm install <version> . After installation, run nvm use <version> to switch to the downgraded...
Read more >How to Upgrade (or Downgrade) Node.js Using npm
Need to update your version of Node.js? Here's how you can upgrade or downgrade from the command line using npm.
Read more >How to Downgrade Node Version Windows - Linux Hint
Step 1: Open Command Prompt · Step 2: Check the Current Node Version · Step 3: Downgrade the Node Version · Step 4:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You aren’t linking to the latest code @gkumar7. It uses v14, we don’t use v12 anymore in any of our functions https://github.com/aws/aws-cdk/blob/0f002e2009bbab2e10c08cdf908c5091ba61b754/packages/%40aws-cdk/aws-certificatemanager/lib/dns-validated-certificate.ts#L110
Stumbled on this issue as I see the latest cdk version is still using NodeJS 12.x. With NodeJS v12.x EOL, could we at least add a parameterized way to update DnsValidatedCertificate to use NodeJS 14.x?