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
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"eslint.alwaysShowStatus": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"explorer.autoReveal": false
}
4 changes: 2 additions & 2 deletions examples/blue-green-container-deployment-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dependencies": {
"@cloudcomponents/cdk-blue-green-container-deployment": "^2.1.0",
"@cloudcomponents/cdk-container-registry": "^2.1.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/cloudfront-authorization-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-cloudfront-authorization": "^2.1.0",
"aws-cdk-lib": "^2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "^10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/codecommit-backup-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-codecommit-backup": "^2.0.0",
"aws-cdk-lib": "^2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "^10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-codepipeline-check-parameter-action": "^2.1.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/codepipeline-merge-action-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-codepipeline-merge-action": "^2.1.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/codepipeline-slack-approval-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-codepipeline-slack": "^2.1.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/container-audit-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dependencies": {
"@cloudcomponents/cdk-codepipeline-anchore-inline-scan-action": "^2.1.0",
"@cloudcomponents/cdk-codepipeline-dockerfile-linter-action": "^2.1.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/contentful-webhook-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dependencies": {
"@cloudcomponents/cdk-contentful-webhook": "^2.1.0",
"@cloudcomponents/cdk-secret-key": "^2.0.0",
"aws-cdk-lib": "^2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "^10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/dependency-check-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-dependency-check": "^2.1.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/dynamodb-seeder-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-dynamodb-seeder": "^2.1.0",
"aws-cdk-lib": "^2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "^10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/github-webhook-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dependencies": {
"@cloudcomponents/cdk-github-webhook": "^2.1.0",
"@cloudcomponents/cdk-secret-key": "^2.0.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/notifications-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dependencies": {
"@cloudcomponents/cdk-chatops": "^2.1.0",
"@cloudcomponents/cdk-developer-tools-notifications": "^2.1.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/pull-request-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dependencies": {
"@cloudcomponents/cdk-pull-request-approval-rule": "^2.1.0",
"@cloudcomponents/cdk-pull-request-check": "^2.1.0",
"aws-cdk-lib": "^2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "^10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/responsive-email-template-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-responsive-email-template": "^2.1.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/s3-antivurs-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-s3-antivirus": "^2.1.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/static-website-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-static-website": "^2.0.0",
"aws-cdk-lib": "^2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "^10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/stripe-webhook-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dependencies": {
"@cloudcomponents/cdk-secret-key": "^2.0.0",
"@cloudcomponents/cdk-stripe-webhook": "^2.1.0",
"aws-cdk-lib": "2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/temp-stack-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-temp-stack": "^2.1.0",
"aws-cdk-lib": "^2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "^10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
4 changes: 2 additions & 2 deletions examples/wordpress-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@cloudcomponents/cdk-wordpress": "^2.0.0",
"aws-cdk-lib": "^2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "^10.0.41",
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/source-map-support": "^0.5.4",
"aws-cdk": "2.8.0"
"aws-cdk": "^2.28.0"
}
}
6 changes: 3 additions & 3 deletions packages/cdk-blue-green-container-deployment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
}
},
"peerDependencies": {
"aws-cdk-lib": "^2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "^10.0.41"
},
"devDependencies": {
"@aws-cdk/assert": "2.8.0",
"aws-cdk-lib": "2.8.0",
"@aws-cdk/assert": "2.28.0",
"aws-cdk-lib": "^2.28.0",
"aws-sdk": "^2.1096.0",
"constructs": "10.0.41",
"custom-resource-helper": "^1.0.15",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs18.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('EcsDeploymentConfig', () => {
const { service, prodTargetGroup, testTargetGroup, prodListener, testListener } = createPrereqResources(stack);

const customApplication = new codedeploy.EcsApplication(stack, 'CustomApplication', {
applicationName: 'My Custom Application',
applicationName: 'My-Custom-Application',
});

new EcsDeploymentGroup(stack, 'DeploymentGroup', {
Expand All @@ -110,7 +110,7 @@ describe('EcsDeploymentConfig', () => {
expectCDK(stack).to(
haveResource('AWS::CodeDeploy::Application', {
ComputePlatform: 'ECS',
ApplicationName: 'My Custom Application',
ApplicationName: 'My-Custom-Application',
}),
);

Expand All @@ -129,7 +129,7 @@ describe('EcsDeploymentConfig', () => {
const { service, prodTargetGroup, testTargetGroup, prodListener, testListener } = createPrereqResources(stack);

new EcsDeploymentGroup(stack, 'DeploymentGroup', {
applicationName: 'My Named Application',
applicationName: 'My-Named-Application',
deploymentGroupName: 'My Deployment Group',
ecsServices: [service],
targetGroups: [prodTargetGroup, testTargetGroup],
Expand All @@ -141,7 +141,7 @@ describe('EcsDeploymentConfig', () => {
expectCDK(stack).to(
haveResource('AWS::CodeDeploy::Application', {
ComputePlatform: 'ECS',
ApplicationName: 'My Named Application',
ApplicationName: 'My-Named-Application',
}),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class EcsDeploymentGroup extends Resource implements IEcsDeploymentGroup,
}

const serviceToken = new Function(this, 'Function', {
runtime: Runtime.NODEJS_14_X,
runtime: Runtime.NODEJS_16_X,
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'ecs-deployment-group')),
handler: 'index.handler',
timeout: Duration.minutes(15),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class EcsService extends Construct implements IConnectable, IEcsService,
];

const serviceToken = new Function(this, 'Function', {
runtime: Runtime.NODEJS_14_X,
runtime: Runtime.NODEJS_16_X,
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'ecs-service')),
handler: 'index.handler',
timeout: Duration.minutes(15),
Expand Down
6 changes: 3 additions & 3 deletions packages/cdk-chatops/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
}
},
"peerDependencies": {
"aws-cdk-lib": "^2.8.0",
"aws-cdk-lib": "^2.28.0",
"constructs": "^10.0.41"
},
"devDependencies": {
"@aws-cdk/assert": "2.8.0",
"aws-cdk-lib": "2.8.0",
"@aws-cdk/assert": "2.28.0",
"aws-cdk-lib": "^2.28.0",
"aws-sdk": "^2.1096.0",
"axios": "^0.25.0",
"constructs": "10.0.41",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class MSTeamsIncomingWebhookConfiguration extends Construct {
super(scope, id);

this.incomingWebhook = new Function(this, 'Function', {
runtime: Runtime.NODEJS_14_X,
runtime: Runtime.NODEJS_16_X,
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'msteams-incoming-webhook')),
handler: 'index.handler',
environment: {
Expand Down
Loading
Loading