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

Upgrade nodejs runtime to 16.x (v2 branch) #184

Merged
merged 12 commits into from
Mar 22, 2024

Conversation

mbp
Copy link
Contributor

@mbp mbp commented Oct 7, 2022

Node.js 16.x runtime has been available since May 2022: https://aws.amazon.com/blogs/compute/node-js-16-x-runtime-now-available-in-aws-lambda/

Node.js 14.x support is ending in 6 months: https://github.com/nodejs/release#release-schedule
Node.js 12.x support has already ended.

In this PR, I update all Lambda functions to use 16.x runtime. I also had to upgrade aws-cdk-lib minimum dependency to 2.28.0, since this version adds NODEJS_16_X on CustomResourceProviderRuntime.

@mbp mbp changed the title Upgrade nodejs runtime to 16.x Upgrade nodejs runtime to 16.x (v2 branch) Oct 7, 2022
@mbp
Copy link
Contributor Author

mbp commented Oct 12, 2022

@hupe1980 sorry to bother :-) Is it possible that you could take a look?

@mbp
Copy link
Contributor Author

mbp commented Nov 18, 2022

Friendly reminder @hupe1980. Now only 5 months for end of support for Node.js 14.x.

@kadishmal kadishmal self-assigned this Mar 5, 2024
@kadishmal kadishmal self-requested a review March 5, 2024 08:41
Esen Sagynov added 5 commits March 21, 2024 15:50
- Updated Lerna to the latest version.
- Updated Webpack dependency in cdkdx which has an SSL security issue hupe1980/cdkdx#22.
- Updated ClamAV version for Ubuntu run in Docker. Version `0.103.11-1.el7` is no longer available.
- Added build instructions to README.

Build results:

```
 Lerna (powered by Nx)   Successfully ran target build for 45 projects (2m)

✨  Done in 113.17s.
```

Test results:

```
Test Suites: 42 passed, 42 total
Tests:       106 passed, 106 total
Snapshots:   64 passed, 64 total
Time:        7.664 s
Ran all test suites in 27 projects.
✨  Done in 10.13s.
```
- Issue reported in aws/jsii#3505.
- Upstream https://hub.docker.com/r/jsii/superchain recommends the `1-bullseye-slim` version.
Docker is required to build some of the packages. Must grant permissions to the socket.
@kadishmal
Copy link
Collaborator

Hi @mbp! Just wanted to know if you are available to fix some comments for this PR? There are some errors if run as is. Can you rebase your branch from cdk2 branch?

Esen Sagynov and others added 2 commits March 22, 2024 15:21
- Fix dependency versionsing. Must use the carrot `^` to ensure users can use any CDK version higher than then over tested here.
- Some constant enum names have changed in the newer versions.
- Granting permissions now require an IAM role instead of the handler.
- CloudFront distribution interface have changed.
@mbp
Copy link
Contributor Author

mbp commented Mar 22, 2024

@kadishmal sorry, I am not available to do the changes. I had to stop using this project because of lack of updates.

@kadishmal
Copy link
Collaborator

@mbp, sure, I've made changes to fix the issues.

@kadishmal kadishmal merged commit 36726d6 into cloudcomponents:cdk2 Mar 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants