Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 2823674

Browse files
authored
chore: main - upgrade lambdas nodejs16 (#724)
* chore: upgrade lambdas to node16 * chore: upgrade to node16 for cdk deployment * chore: remove changes to provision-user script * chore: remove changes to provision-user script * chore: remove changes to provision-user * chore: remove changes to cdk.json * chore: remove changes to install.sh * chore: update lambdas to nodejs16
1 parent 974759f commit 2823674

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

integration-tests/infrastructure/subscriptions-endpoint/template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Resources:
2222
Properties:
2323
CodeUri: src/
2424
Handler: app.lambdaHandler
25-
Runtime: nodejs14.x
25+
Runtime: nodejs16.x
2626
Architectures:
2727
- x86_64
2828
Policies:

javaHapiValidatorLambda/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
<dependency>
156156
<groupId>org.projectlombok</groupId>
157157
<artifactId>lombok</artifactId>
158-
<version>1.18.16</version>
158+
<version>1.18.22</version>
159159
<scope>provided</scope>
160160
</dependency>
161161
<dependency>

lib/cdk-infra-stack.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export default class FhirWorksStack extends Stack {
334334
const defaultBulkExportLambdaProps = {
335335
timeout: Duration.seconds(30),
336336
memorySize: 192,
337-
runtime: Runtime.NODEJS_14_X,
337+
runtime: Runtime.NODEJS_16_X,
338338
description: 'Start the Glue job for bulk export',
339339
role: bulkExportResources.glueJobRelatedLambdaRole,
340340
entry: path.join(__dirname, '../bulkExport/index.ts'),
@@ -369,7 +369,7 @@ export default class FhirWorksStack extends Stack {
369369
const uploadGlueScriptsLambdaFunction = new NodejsFunction(this, 'uploadGlueScriptsLambdaFunction', {
370370
timeout: Duration.seconds(30),
371371
memorySize: 192,
372-
runtime: Runtime.NODEJS_14_X,
372+
runtime: Runtime.NODEJS_16_X,
373373
role: bulkExportResources.uploadGlueScriptsLambdaRole,
374374
description: 'Upload glue scripts to s3',
375375
handler: 'handler',
@@ -406,7 +406,7 @@ export default class FhirWorksStack extends Stack {
406406
const updateSearchMappingsLambdaFunction = new NodejsFunction(this, 'updateSearchMappingsLambdaFunction', {
407407
timeout: Duration.seconds(300),
408408
memorySize: 512,
409-
runtime: Runtime.NODEJS_14_X,
409+
runtime: Runtime.NODEJS_16_X,
410410
description: 'Custom resource Lambda to update the search mappings',
411411
role: new Role(this, 'updateSearchMappingsLambdaRole', {
412412
assumedBy: new ServicePrincipal('lambda.amazonaws.com'),
@@ -560,7 +560,7 @@ export default class FhirWorksStack extends Stack {
560560
},
561561
},
562562
},
563-
runtime: Runtime.NODEJS_14_X,
563+
runtime: Runtime.NODEJS_16_X,
564564
environment: {
565565
...lambdaDefaultEnvVars,
566566
EXPORT_STATE_MACHINE_ARN: bulkExportStateMachine.bulkExportStateMachine.stateMachineArn,
@@ -747,7 +747,7 @@ export default class FhirWorksStack extends Stack {
747747

748748
const ddbToEsLambda = new NodejsFunction(this, 'ddbToEs', {
749749
timeout: Duration.seconds(300),
750-
runtime: Runtime.NODEJS_14_X,
750+
runtime: Runtime.NODEJS_16_X,
751751
description: 'Write DDB changes from `resource` table to ElasticSearch service',
752752
handler: 'handler',
753753
entry: path.join(__dirname, '../ddbToEsLambda/index.ts'),
@@ -829,7 +829,7 @@ export default class FhirWorksStack extends Stack {
829829

830830
const subscriptionReaper = new NodejsFunction(this, 'subscriptionReaper', {
831831
timeout: Duration.seconds(30),
832-
runtime: Runtime.NODEJS_14_X,
832+
runtime: Runtime.NODEJS_16_X,
833833
description: 'Scheduled Lambda to remove expired Subscriptions',
834834
role: new Role(this, 'subscriptionReaperRole', {
835835
assumedBy: new ServicePrincipal('lambda.amazonaws.com'),
@@ -913,7 +913,7 @@ export default class FhirWorksStack extends Stack {
913913
timeout: Duration.seconds(20),
914914
memorySize: isDev ? 512 : 1024,
915915
reservedConcurrentExecutions: isDev ? 10 : 200,
916-
runtime: Runtime.NODEJS_14_X,
916+
runtime: Runtime.NODEJS_16_X,
917917
description: 'Match ddb events against active Subscriptions and emit notifications',
918918
role: new Role(this, 'subscriptionsMatcherLambdaRole', {
919919
assumedBy: new ServicePrincipal('lambda.amazonaws.com'),
@@ -1014,7 +1014,7 @@ export default class FhirWorksStack extends Stack {
10141014
// eslint-disable-next-line no-new
10151015
new NodejsFunction(this, 'subscriptionsRestHook', {
10161016
timeout: Duration.seconds(10),
1017-
runtime: Runtime.NODEJS_14_X,
1017+
runtime: Runtime.NODEJS_16_X,
10181018
description: 'Send rest-hook notification for subscription',
10191019
role: subscriptionsResources.restHookLambdaRole,
10201020
handler: 'handler',

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@types/uuid": "^8.3.4",
5050
"@typescript-eslint/eslint-plugin": "^4.33.0",
5151
"@typescript-eslint/parser": "^4.33.0",
52-
"aws-cdk": "2.20.0",
52+
"aws-cdk": "2.45.0",
5353
"chance": "^1.1.7",
5454
"esbuild": "^0.14.39",
5555
"eslint": "^7.32.0",
@@ -77,7 +77,7 @@
7777
},
7878
"dependencies": {
7979
"@types/aws-lambda": "^8.10.92",
80-
"aws-cdk-lib": "2.20.0",
80+
"aws-cdk-lib": "2.45.0",
8181
"aws-embedded-metrics": "^2.0.4",
8282
"aws-sdk": "^2.1000.0",
8383
"axios": "^0.21.4",

yarn.lock

+11-11
Original file line numberDiff line numberDiff line change
@@ -3614,25 +3614,25 @@ atomic-batcher@^1.0.2:
36143614
resolved "https://registry.yarnpkg.com/atomic-batcher/-/atomic-batcher-1.0.2.tgz#d16901d10ccec59516c197b9ccd8930689b813b4"
36153615
integrity sha512-EFGCRj4kLX1dHv1cDzTk+xbjBFj1GnJDpui52YmEcxxHHEWjYyT6l51U7n6WQ28osZH4S9gSybxe56Vm7vB61Q==
36163616

3617-
aws-cdk-lib@2.20.0:
3618-
version "2.20.0"
3619-
resolved "https://registry.yarnpkg.com/aws-cdk-lib/-/aws-cdk-lib-2.20.0.tgz#bb22702cc3748d8ed7eb42646f473ff740311bfe"
3620-
integrity sha512-jACK/1UJxtWWl6QH+I1V8Oc8F1EEL6aFQYk24DIrzNyB1Aj9LIs9/NyDu5zN00QFKrR6aDE7WAv1VG3sa6wWdg==
3617+
aws-cdk-lib@2.45.0:
3618+
version "2.45.0"
3619+
resolved "https://registry.yarnpkg.com/aws-cdk-lib/-/aws-cdk-lib-2.45.0.tgz#04da554912728005d687ab19e51a2c57376a870a"
3620+
integrity sha512-oEeZZF8xjub9KYAB7n01A60wwQXSzNapmiih3t5uf9aEvlvqT+0as8/WrPdNIeAaf9Lhb0WQXdZ2o2DlsFHbAg==
36213621
dependencies:
36223622
"@balena/dockerignore" "^1.0.2"
36233623
case "1.6.3"
36243624
fs-extra "^9.1.0"
36253625
ignore "^5.2.0"
3626-
jsonschema "^1.4.0"
3626+
jsonschema "^1.4.1"
36273627
minimatch "^3.1.2"
36283628
punycode "^2.1.1"
3629-
semver "^7.3.5"
3629+
semver "^7.3.7"
36303630
yaml "1.10.2"
36313631

3632-
aws-cdk@2.20.0:
3633-
version "2.20.0"
3634-
resolved "https://registry.yarnpkg.com/aws-cdk/-/aws-cdk-2.20.0.tgz#e3b00ecd1589777bebd1d003e32479cbfad735e1"
3635-
integrity sha512-rs9LTpvrlbsMcenZ3t7TuLDGbHhbnDocrE63Xb2PT++VptR/A8svllK8k1W7hPl77L9QS75GNK5gh+ShkEzsnw==
3632+
aws-cdk@2.45.0:
3633+
version "2.45.0"
3634+
resolved "https://registry.yarnpkg.com/aws-cdk/-/aws-cdk-2.45.0.tgz#f52dfb42a5df0f49609b55f14bfeac7290899b4c"
3635+
integrity sha512-AIug6Ugvtd3I0+U3gTNZtJVDhOgpGpxwWMoOQUlX6xKGwDgQxWrWdq2QWe7ZyKgCRnY9SM90fa+Yxbx+VYk9Bw==
36363636
optionalDependencies:
36373637
fsevents "2.3.2"
36383638

@@ -8575,7 +8575,7 @@ jsonpath@^1.1.0:
85758575
static-eval "2.0.2"
85768576
underscore "1.12.1"
85778577

8578-
jsonschema@^1.4.0:
8578+
jsonschema@^1.4.0, jsonschema@^1.4.1:
85798579
version "1.4.1"
85808580
resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.4.1.tgz#cc4c3f0077fb4542982973d8a083b6b34f482dab"
85818581
integrity sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ==

0 commit comments

Comments
 (0)