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

feat(lambda): Migrate away from NODEJS_10_X and NODEJS_12_X to NODEJS_14_X #20531

Closed
wants to merge 1 commit into from

Conversation

robertd
Copy link
Contributor

@robertd robertd commented May 28, 2022

Screen Shot 2022-06-01 at 9 08 18 PM

Closes #20568
Closes #19992
Closes #20474


All Submissions:

Adding new Unconventional Dependencies:

  • This PR adds new unconventional dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • Did you use yarn integ to deploy the infrastructure and generate the snapshot (i.e. yarn integ without --dry-run)?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented May 28, 2022

@github-actions github-actions bot added the p2 label May 28, 2022
@aws-cdk-automation aws-cdk-automation requested a review from a team May 28, 2022 16:18
@robertd
Copy link
Contributor Author

robertd commented May 28, 2022

This is a very chunky PR 🤣

  • Migrated away (tests, docs, internal use) from NODEJS_10_X to NODEJS_16_X
  • Migrated away (tests, docs, internal use) from NODEJS_12_X to NODEJS_16_X
  • Migrated away (tests, docs, internal use) from NODEJS_14_X to NODEJS_16_X
  • Added nodejs16 to CustomResources
  • Updated integration tests across the board. Some integ tests introduced destructive changes (expected with change of nodejs runtime)

P.S. See you again when nodejs20.x becomes a runtime 🤣
P.S.S. I need an extra pair of eyes on this PR since it touched too many modules at once (cc @pahud @jogold @rix0rrr)

@robertd robertd marked this pull request as ready for review May 28, 2022 20:53
@robertd
Copy link
Contributor Author

robertd commented May 29, 2022

Affected packages

@aws-cdk-containers/ecs-service-extensions
@aws-cdk/aws-amplify
@aws-cdk/aws-apigateway
@aws-cdk/aws-apigatewayv2-authorizers
@aws-cdk/aws-apigatewayv2-integrations
@aws-cdk/aws-appsync
@aws-cdk/aws-autoscaling-hooktargets
@aws-cdk/aws-chatbot
@aws-cdk/aws-cloudformation
@aws-cdk/aws-cloudfront
@aws-cdk/aws-cloudtrail
@aws-cdk/aws-codedeploy
@aws-cdk/aws-codepipeline-actions
@aws-cdk/aws-cognito
@aws-cdk/aws-config
@aws-cdk/aws-dynamodb-global
@aws-cdk/aws-dynamodb
@aws-cdk/aws-ec2
@aws-cdk/aws-ecs
@aws-cdk/aws-eks
@aws-cdk/aws-events-targets
@aws-cdk/aws-globalaccelerator-endpoints
@aws-cdk/aws-glue
@aws-cdk/aws-iam
@aws-cdk/aws-iot-actions
@aws-cdk/aws-iot
@aws-cdk/aws-iotevents-actions
@aws-cdk/aws-kinesisfirehose-destinations
@aws-cdk/aws-kinesisfirehose
@aws-cdk/aws-lambda-destinations
@aws-cdk/aws-lambda-event-sources
@aws-cdk/aws-lambda-nodejs
@aws-cdk/aws-lambda-python
@aws-cdk/aws-lambda
@aws-cdk/aws-logs-destinations
@aws-cdk/aws-logs
@aws-cdk/aws-msk
@aws-cdk/aws-opensearchservice
@aws-cdk/aws-rds
@aws-cdk/aws-redshift
@aws-cdk/aws-route53-targets
@aws-cdk/aws-route53
@aws-cdk/aws-s3-deployment
@aws-cdk/aws-s3-notifications
@aws-cdk/aws-s3
@aws-cdk/aws-s3objectlambda
@aws-cdk/aws-secretsmanager
@aws-cdk/aws-ses-actions
@aws-cdk/aws-ses
@aws-cdk/aws-sns-subscriptions
@aws-cdk/aws-stepfunctions-tasks
@aws-cdk/cloudformation-include
@aws-cdk/core
@aws-cdk/custom-resources
@aws-cdk/integ-runner
@aws-cdk/integ-tests
@aws-cdk/lambda-layer-awscli
@aws-cdk/pipelines
@aws-cdk/triggers
aws-cdk-lib
aws-cdk

Copy link
Contributor

@jogold jogold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

(maybe check that nodejs16.x is available in all regions)

@robertd
Copy link
Contributor Author

robertd commented May 31, 2022

Nice!

(maybe check that nodejs16.x is available in all regions)

@jogold

The Node.js 16 runtime is available in all Regions where Lambda is available, except for the AWS China Region (Beijing) Region, operated by Sinnet and AWS China (Ningxia) Region, operated by NWCD"s.

@rix0rrr
Copy link
Contributor

rix0rrr commented May 31, 2022

The Node.js 16 runtime is available in all Regions where Lambda is available, except for the AWS China Region (Beijing) Region, operated by Sinnet and AWS China (Ningxia) Region, operated by NWCD"s.

Oh oops. This is a bit of a blocker. We can't really afford to break Chinese (or GovCloud) customers 😔

@robertd
Copy link
Contributor Author

robertd commented May 31, 2022

@rix0rrr Got it. We can put this PR in the backlog and revisit it once GovCloud and Chinese regions catch up.

@robertd
Copy link
Contributor Author

robertd commented Jun 1, 2022

@jogold @rix0rrr I'll "downgrade" this PR to nodejs14 until nodejs16 becomes available in GovCloud and AWS regions in China.

@robertd robertd marked this pull request as draft June 1, 2022 19:31
@robertd robertd changed the title feat(lambda): Migrate away from NODEJS_10_X, NODEJS_12_X, and NODEJS_14_X to NODEJS_16_X feat(lambda): Migrate away from NODEJS_10_X and NODEJS_12_X to NODEJS_14_X Jun 2, 2022
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 8be50e1
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@github-actions github-actions bot added bug This issue is a bug. effort/small Small work item – less than a day of effort p1 and removed p2 labels Jun 2, 2022
@robertd
Copy link
Contributor Author

robertd commented Jun 2, 2022

It looks like main replaced master branch in the meantime... I'll have to update this PR to reflect new origin.

@TheRealAmazonKendra TheRealAmazonKendra changed the base branch from v1-main to main June 2, 2022 08:58
@robertd
Copy link
Contributor Author

robertd commented Jun 2, 2022

I'm planning on starting over on this PR when time permits... too many changes happening at the same time for this PR to stay clean (master to main switchover, yarn-integ updates, nodejs16 to nodejs14 "downgrade"... etc).

@robertd robertd closed this Jun 2, 2022
@robertd robertd deleted the robertd/lambda branch June 2, 2022 21:47
mergify bot pushed a commit that referenced this pull request Jun 3, 2022
…_14_X (#20595)

Spiritual successor of #20531

<img width="487" alt="Screen Shot 2022-06-01 at 9 08 18 PM" src="https://user-images.githubusercontent.com/31543/171552028-7153063a-1c19-4972-ab89-6f280a4e9326.png">

- Migrated away (tests, docs, internal use) from NODEJS_10_X to NODEJS_14_X
- Migrated away (tests, docs, internal use) from NODEJS_12_X to NODEJS_14_X
- Added NODEJS_16_X to CustomResources
- Update CustomResources to use nodejs14.x by default
- Updated integration tests across the board. Some integ tests introduced destructive changes (expected with change of nodejs runtime)

Closes #20568
Closes #19992
Closes #20474

----

### All Submissions:

* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
daschaa pushed a commit to daschaa/aws-cdk that referenced this pull request Jul 9, 2022
…_14_X (aws#20595)

Spiritual successor of aws#20531

<img width="487" alt="Screen Shot 2022-06-01 at 9 08 18 PM" src="https://user-images.githubusercontent.com/31543/171552028-7153063a-1c19-4972-ab89-6f280a4e9326.png">

- Migrated away (tests, docs, internal use) from NODEJS_10_X to NODEJS_14_X
- Migrated away (tests, docs, internal use) from NODEJS_12_X to NODEJS_14_X
- Added NODEJS_16_X to CustomResources
- Update CustomResources to use nodejs14.x by default
- Updated integration tests across the board. Some integ tests introduced destructive changes (expected with change of nodejs runtime)

Closes aws#20568
Closes aws#19992
Closes aws#20474

----

### All Submissions:

* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@alexherriott
Copy link

@robertd do you know when will node16 support be available? date / release?

@robertd
Copy link
Contributor Author

robertd commented Dec 8, 2022

@alexherriott Node16 support is already in place #20261

@alexherriott
Copy link

thanks Robert
what mean is when will CDK update all its runtimes to use node16.

@robertd
Copy link
Contributor Author

robertd commented Dec 8, 2022

Ah gotcha… That would be a gigantic PR effort (like this one). Sometime soon I guess :)

@robertd
Copy link
Contributor Author

robertd commented Dec 8, 2022

Also, we need to check and see if nodejs16 is available in all regions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. effort/small Small work item – less than a day of effort p1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

custom_resources: Node version 12 out of support
5 participants