@@ -334,7 +334,7 @@ export default class FhirWorksStack extends Stack {
334
334
const defaultBulkExportLambdaProps = {
335
335
timeout : Duration . seconds ( 30 ) ,
336
336
memorySize : 192 ,
337
- runtime : Runtime . NODEJS_14_X ,
337
+ runtime : Runtime . NODEJS_16_X ,
338
338
description : 'Start the Glue job for bulk export' ,
339
339
role : bulkExportResources . glueJobRelatedLambdaRole ,
340
340
entry : path . join ( __dirname , '../bulkExport/index.ts' ) ,
@@ -369,7 +369,7 @@ export default class FhirWorksStack extends Stack {
369
369
const uploadGlueScriptsLambdaFunction = new NodejsFunction ( this , 'uploadGlueScriptsLambdaFunction' , {
370
370
timeout : Duration . seconds ( 30 ) ,
371
371
memorySize : 192 ,
372
- runtime : Runtime . NODEJS_14_X ,
372
+ runtime : Runtime . NODEJS_16_X ,
373
373
role : bulkExportResources . uploadGlueScriptsLambdaRole ,
374
374
description : 'Upload glue scripts to s3' ,
375
375
handler : 'handler' ,
@@ -406,7 +406,7 @@ export default class FhirWorksStack extends Stack {
406
406
const updateSearchMappingsLambdaFunction = new NodejsFunction ( this , 'updateSearchMappingsLambdaFunction' , {
407
407
timeout : Duration . seconds ( 300 ) ,
408
408
memorySize : 512 ,
409
- runtime : Runtime . NODEJS_14_X ,
409
+ runtime : Runtime . NODEJS_16_X ,
410
410
description : 'Custom resource Lambda to update the search mappings' ,
411
411
role : new Role ( this , 'updateSearchMappingsLambdaRole' , {
412
412
assumedBy : new ServicePrincipal ( 'lambda.amazonaws.com' ) ,
@@ -560,7 +560,7 @@ export default class FhirWorksStack extends Stack {
560
560
} ,
561
561
} ,
562
562
} ,
563
- runtime : Runtime . NODEJS_14_X ,
563
+ runtime : Runtime . NODEJS_16_X ,
564
564
environment : {
565
565
...lambdaDefaultEnvVars ,
566
566
EXPORT_STATE_MACHINE_ARN : bulkExportStateMachine . bulkExportStateMachine . stateMachineArn ,
@@ -747,7 +747,7 @@ export default class FhirWorksStack extends Stack {
747
747
748
748
const ddbToEsLambda = new NodejsFunction ( this , 'ddbToEs' , {
749
749
timeout : Duration . seconds ( 300 ) ,
750
- runtime : Runtime . NODEJS_14_X ,
750
+ runtime : Runtime . NODEJS_16_X ,
751
751
description : 'Write DDB changes from `resource` table to ElasticSearch service' ,
752
752
handler : 'handler' ,
753
753
entry : path . join ( __dirname , '../ddbToEsLambda/index.ts' ) ,
@@ -829,7 +829,7 @@ export default class FhirWorksStack extends Stack {
829
829
830
830
const subscriptionReaper = new NodejsFunction ( this , 'subscriptionReaper' , {
831
831
timeout : Duration . seconds ( 30 ) ,
832
- runtime : Runtime . NODEJS_14_X ,
832
+ runtime : Runtime . NODEJS_16_X ,
833
833
description : 'Scheduled Lambda to remove expired Subscriptions' ,
834
834
role : new Role ( this , 'subscriptionReaperRole' , {
835
835
assumedBy : new ServicePrincipal ( 'lambda.amazonaws.com' ) ,
@@ -913,7 +913,7 @@ export default class FhirWorksStack extends Stack {
913
913
timeout : Duration . seconds ( 20 ) ,
914
914
memorySize : isDev ? 512 : 1024 ,
915
915
reservedConcurrentExecutions : isDev ? 10 : 200 ,
916
- runtime : Runtime . NODEJS_14_X ,
916
+ runtime : Runtime . NODEJS_16_X ,
917
917
description : 'Match ddb events against active Subscriptions and emit notifications' ,
918
918
role : new Role ( this , 'subscriptionsMatcherLambdaRole' , {
919
919
assumedBy : new ServicePrincipal ( 'lambda.amazonaws.com' ) ,
@@ -1014,7 +1014,7 @@ export default class FhirWorksStack extends Stack {
1014
1014
// eslint-disable-next-line no-new
1015
1015
new NodejsFunction ( this , 'subscriptionsRestHook' , {
1016
1016
timeout : Duration . seconds ( 10 ) ,
1017
- runtime : Runtime . NODEJS_14_X ,
1017
+ runtime : Runtime . NODEJS_16_X ,
1018
1018
description : 'Send rest-hook notification for subscription' ,
1019
1019
role : subscriptionsResources . restHookLambdaRole ,
1020
1020
handler : 'handler' ,
0 commit comments