Skip to content

Commit 1a891f3

Browse files
committed
Upgrade nodejs runtime for cdk-codepipeline-slack lambdas
1 parent dfbf1fc commit 1a891f3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/cdk-codepipeline-slack/src/slack-approval-action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class SlackApprovalAction extends Action {
6363
}
6464

6565
const approvalRequester = new Function(scope, 'SlackApprovalRequesterFunction', {
66-
runtime: Runtime.NODEJS_10_X,
66+
runtime: Runtime.NODEJS_14_X,
6767
handler: 'index.handler',
6868
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'approval-requester')),
6969
environment,
@@ -74,7 +74,7 @@ export class SlackApprovalAction extends Action {
7474
topic.addSubscription(new LambdaSubscription(approvalRequester));
7575

7676
const approvalHandler = new Function(scope, 'SlackApprovalHandlerFunction', {
77-
runtime: Runtime.NODEJS_10_X,
77+
runtime: Runtime.NODEJS_14_X,
7878
handler: 'index.handler',
7979
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'approval-handler')),
8080
environment,

packages/cdk-codepipeline-slack/src/slack-notifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class SlackNotifier extends Construct {
4646
}
4747

4848
const notifier = new Function(scope, 'SlackNotifierFunction', {
49-
runtime: Runtime.NODEJS_12_X,
49+
runtime: Runtime.NODEJS_14_X,
5050
handler: 'index.handler',
5151
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'notifier')),
5252
environment: this.environment,

0 commit comments

Comments
 (0)