Skip to content

Commit

Permalink
Moving to node 20 + lib upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
tstibbs committed Nov 20, 2023
1 parent 1d7999b commit 8595bdd
Show file tree
Hide file tree
Showing 18 changed files with 5,055 additions and 9,241 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 20.x
- name: Set up environment
run: mkdir cdk.tmp
working-directory: aws/environment-setup
Expand Down
2 changes: 1 addition & 1 deletion aws/environment-setup/lib/deploy-iot.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class IotStack extends Stack {
},
memorySize: 128,
timeout: Duration.minutes(1),
runtime: Runtime.NODEJS_16_X,
runtime: Runtime.NODEJS_20_X,
initialPolicy: [
new PolicyStatement({
actions: ['iot:SearchIndex'],
Expand Down
2 changes: 1 addition & 1 deletion aws/environment-setup/lib/deploy-parent-monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function createLambda(stack, notificationTopic, cloudTrailLogsBucket) {
},
memorySize: 128,
timeout: cdk.Duration.seconds(20),
runtime: lambda.Runtime.NODEJS_16_X
runtime: lambda.Runtime.NODEJS_20_X
})
notificationTopic.grantPublish(loginMonitorFunction)
cloudTrailLogsBucket.grantRead(loginMonitorFunction)
Expand Down
4 changes: 2 additions & 2 deletions aws/environment-setup/lib/deploy-parent-tooling.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function createLambda(stack, notificationTopic) {
},
memorySize: 128,
timeout: cdk.Duration.minutes(5),
runtime: lambda.Runtime.NODEJS_16_X,
runtime: lambda.Runtime.NODEJS_20_X,
role: toolingFunctionsRole
})

Expand All @@ -77,7 +77,7 @@ function createLambda(stack, notificationTopic) {
},
memorySize: 128,
timeout: cdk.Duration.minutes(1),
runtime: lambda.Runtime.NODEJS_16_X,
runtime: lambda.Runtime.NODEJS_20_X,
role: toolingFunctionsRole
})

Expand Down
2 changes: 1 addition & 1 deletion aws/environment-setup/lib/deploy-shared-infra.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function createEmergencyInfra(stack, notificationTopic) {
],
memorySize: 128,
timeout: Duration.minutes(5),
runtime: Runtime.NODEJS_16_X
runtime: Runtime.NODEJS_20_X
})
notificationTopic.grantPublish(emergencyTearDownFunction)

Expand Down
2 changes: 1 addition & 1 deletion aws/environment-setup/lib/deploy-shared-usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function createParentUsageMonitorResources(stack, notificationTopic) {
role: lambdaRole,
memorySize: 512,
timeout: Duration.minutes(5),
runtime: Runtime.NODEJS_16_X
runtime: Runtime.NODEJS_20_X
})
notificationTopic.grantPublish(usageMonitorFunction)

Expand Down
Loading

0 comments on commit 8595bdd

Please sign in to comment.