Skip to content

Commit 7037fc1

Browse files
authored
fix: do not use NODEJS_14_X lambda runtime (#148)
1 parent 329688a commit 7037fc1

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/aws-semaphore-agent-stack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ class AwsSemaphoreAgentStack extends Stack {
497497

498498
let suspenderFunction = new Function(this, 'azRebalanceSuspenderLambda', {
499499
description: "Suspend AZRebalance process for auto scaling group",
500-
runtime: Runtime.NODEJS_14_X,
500+
runtime: Runtime.NODEJS_16_X,
501501
code: new AssetCode("lambdas/az-rebalance-suspender"),
502502
handler: "app.handler",
503503
role: suspenderRole,

lib/dynamic-ssh-keys-updater.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class DynamicSSHKeysUpdater extends Construct {
6161

6262
let lambdaFunction = new Function(this, 'Lambda', {
6363
description: `Check if GitHub SSH public keys have changed.`,
64-
runtime: Runtime.NODEJS_14_X,
64+
runtime: Runtime.NODEJS_16_X,
6565
timeout: Duration.seconds(10),
6666
code: new AssetCode('lambdas/ssh-keys-updater'),
6767
handler: 'app.handler',

test/aws-semaphore-agent.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ describe("auto scaling group", () => {
602602

603603
template.hasResourceProperties("AWS::Lambda::Function", {
604604
Description: "Suspend AZRebalance process for auto scaling group",
605-
Runtime: "nodejs14.x",
605+
Runtime: "nodejs16.x",
606606
Code: Match.anyValue(),
607607
Handler: "app.handler",
608608
Role: Match.anyValue()
@@ -781,7 +781,7 @@ describe("SSH keys updater lambda", () => {
781781
const template = createTemplate(basicArgumentStore());
782782
template.hasResourceProperties("AWS::Lambda::Function", {
783783
Description: "Check if GitHub SSH public keys have changed.",
784-
Runtime: "nodejs14.x",
784+
Runtime: "nodejs16.x",
785785
Timeout: 10,
786786
Code: Match.anyValue(),
787787
Handler: "app.handler",

0 commit comments

Comments
 (0)