@@ -14,6 +14,7 @@ import * as SQS from '@aws-cdk/aws-sqs'
1414import { LambdasWithLayer } from './LambdasWithLayer'
1515import { CORE_STACK_NAME } from '../stacks/stackName'
1616import { enabledInContext } from '../helper/enabledInContext'
17+ import { NodeJS14Runtime } from './NodeJS14Runtime'
1718
1819/**
1920 * Provides the resources for geolocating LTE/NB-IoT network cells
@@ -55,7 +56,8 @@ export class CellGeolocation extends CloudFormation.Resource {
5556 const fromCache = new Lambda . Function ( this , 'fromCache' , {
5657 layers : lambdas . layers ,
5758 handler : 'index.handler' ,
58- runtime : Lambda . Runtime . NODEJS_12_X ,
59+ // runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support. See https://github.com/aws/aws-cdk/pull/12861
60+ runtime : NodeJS14Runtime ,
5961 timeout : CloudFormation . Duration . seconds ( 10 ) ,
6062 memorySize : 1792 ,
6163 code : lambdas . lambdas . geolocateCellFromCacheStepFunction ,
@@ -116,7 +118,8 @@ export class CellGeolocation extends CloudFormation.Resource {
116118 const fromDevices = new Lambda . Function ( this , 'fromDevices' , {
117119 layers : lambdas . layers ,
118120 handler : 'index.handler' ,
119- runtime : Lambda . Runtime . NODEJS_12_X ,
121+ // runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support. See https://github.com/aws/aws-cdk/pull/12861
122+ runtime : NodeJS14Runtime ,
120123 timeout : CloudFormation . Duration . seconds ( 10 ) ,
121124 memorySize : 1792 ,
122125 code : lambdas . lambdas . geolocateCellFromDeviceLocationsStepFunction ,
@@ -143,7 +146,8 @@ export class CellGeolocation extends CloudFormation.Resource {
143146 const addToCache = new Lambda . Function ( this , 'addToCache' , {
144147 layers : lambdas . layers ,
145148 handler : 'index.handler' ,
146- runtime : Lambda . Runtime . NODEJS_12_X ,
149+ // runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support. See https://github.com/aws/aws-cdk/pull/12861
150+ runtime : NodeJS14Runtime ,
147151 timeout : CloudFormation . Duration . minutes ( 1 ) ,
148152 memorySize : 1792 ,
149153 code : lambdas . lambdas . cacheCellGeolocationStepFunction ,
@@ -174,7 +178,8 @@ export class CellGeolocation extends CloudFormation.Resource {
174178 fromUnwiredLabs = new Lambda . Function ( this , 'fromUnwiredLabs' , {
175179 layers : lambdas . layers ,
176180 handler : 'index.handler' ,
177- runtime : Lambda . Runtime . NODEJS_12_X ,
181+ // runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support. See https://github.com/aws/aws-cdk/pull/12861
182+ runtime : NodeJS14Runtime ,
178183 timeout : CloudFormation . Duration . seconds ( 10 ) ,
179184 memorySize : 1792 ,
180185 code : lambdas . lambdas . geolocateCellFromUnwiredLabsStepFunction ,
@@ -412,7 +417,8 @@ export class CellGeolocation extends CloudFormation.Resource {
412417
413418 const fromSQS = new Lambda . Function ( this , 'fromSQS' , {
414419 handler : 'index.handler' ,
415- runtime : Lambda . Runtime . NODEJS_12_X ,
420+ // runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support. See https://github.com/aws/aws-cdk/pull/12861
421+ runtime : NodeJS14Runtime ,
416422 timeout : CloudFormation . Duration . seconds ( 10 ) ,
417423 memorySize : 1792 ,
418424 code : lambdas . lambdas . invokeStepFunctionFromSQS ,
0 commit comments