Skip to content

Commit

Permalink
chore: update lambda runtimes to node 16 (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
jericht authored Jun 17, 2022
1 parent 4659b20 commit 8d74c9a
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/core/lib/exporting-log-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class ExportingLogGroup extends Construct {
handler: 'index.handler',
lambdaPurpose: 'LogGroupExporter',
logRetention: RetentionDays.ONE_DAY,
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
uuid: this.LOG_EXPORTER_UUID,
});

Expand Down
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/core/lib/health-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export class HealthMonitor extends HealthMonitorBase {

this.unhealthyFleetActionLambda = new SingletonFunction(this, 'UnhealthyFleetAction', {
code: Code.fromAsset(path.join(__dirname, '..', '..', 'lambdas', 'nodejs', 'unhealthyFleetAction')),
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'index.handler',
lambdaPurpose: 'unhealthyFleetTermination',
timeout: Duration.seconds(300),
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/core/lib/imported-acm-certificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class ImportedAcmCertificate extends Construct implements ICertificate {
},
layers: [ openSslLayer ],
retryAttempts: 0,
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
timeout: Duration.minutes(5),
});

Expand Down
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/core/lib/mongodb-post-install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class MongoDbPostInstallSetup extends Construct {
environment: {
DEBUG: 'false',
},
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'mongodb.configureMongo',
layers: [ openSslLayer ],
timeout: Duration.minutes(2),
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/core/lib/pad-efs-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class PadEfsStorage extends Construct {

const lambdaProps: any = {
code: Code.fromAsset(path.join(__dirname, '..', '..', 'lambdas', 'nodejs')),
runtime: Runtime.NODEJS_14_X,
runtime: Runtime.NODEJS_16_X,
logRetention: RetentionDays.ONE_WEEK,
// Required for access point...
vpc: props.vpc,
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/core/lib/staticip-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export class StaticPrivateIpServer extends Construct implements IConnectable, IG
eventHandler = new LambdaFunction(stack, functionUniqueId, {
code: handlerCode,
handler: 'index.handler',
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
description: `Created by RFDK StaticPrivateIpServer to process instance launch lifecycle events in stack '${stack.stackName}'. This lambda attaches an ENI to newly launched instances.`,
logRetention: RetentionDays.THREE_DAYS,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/core/lib/x509-certificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ abstract class X509CertificateBase extends Construct {
DATABASE: this.database.tableName,
DEBUG: 'false',
},
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
layers: [ openSslLayer ],
handler: props.lambdaHandler,
timeout: Duration.seconds(90),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('MongoDbPostInstall', () => {
DEBUG: 'false',
},
},
Runtime: 'nodejs12.x',
Runtime: 'nodejs16.x',
VpcConfig: {
SecurityGroupIds: [
{
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-rfdk/lib/core/test/pad-efs-storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('Test PadEfsStorage', () => {
},
],
Handler: 'pad-efs-storage.getDiskUsage',
Runtime: 'nodejs14.x',
Runtime: 'nodejs16.x',
Timeout: 300,
VpcConfig: {
SecurityGroupIds: [ stack.resolve(sg.securityGroupId) ],
Expand All @@ -104,7 +104,7 @@ describe('Test PadEfsStorage', () => {
},
],
Handler: 'pad-efs-storage.padFilesystem',
Runtime: 'nodejs14.x',
Runtime: 'nodejs16.x',
Timeout: 900,
VpcConfig: {
SecurityGroupIds: [ stack.resolve(sg.securityGroupId) ],
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/core/test/staticip-server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe('Test StaticIpServer', () => {

cdkExpect(stack).to(haveResourceLike('AWS::Lambda::Function', {
Handler: 'index.handler',
Runtime: 'nodejs12.x',
Runtime: 'nodejs16.x',
Description: 'Created by RFDK StaticPrivateIpServer to process instance launch lifecycle events in stack \'StackName\'. This lambda attaches an ENI to newly launched instances.',
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export class ConfigureSpotEventPlugin extends Construct {
DEBUG: 'false',
LAMBDA_TIMEOUT_MINS: timeoutMins.toString(),
},
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'configure-spot-event-plugin.configureSEP',
timeout: Duration.minutes(timeoutMins),
logRetention: RetentionDays.ONE_WEEK,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ AWS Thinkbox EULA.
uuid: '08553416-1fc9-4be9-a818-609a31ae1b5b',
description: 'Used by the ThinkboxDockerImages construct to look up the ECR repositories where AWS Thinkbox publishes Deadline container images.',
code: lambdaCode,
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'ecr-provider.handler',
timeout: Duration.seconds(30),
logRetention: RetentionDays.ONE_WEEK,
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/deadline/lib/version-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class VersionQuery extends VersionQueryBase {
uuid: '2e19e243-16ee-4d1a-a3c9-18d35eddd446',
description: 'Used by the Version construct to get installer locations for a specific Deadline version.',
code: lambdaCode,
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'version-provider.handler',
timeout: Duration.seconds(30),
logRetention: RetentionDays.ONE_WEEK,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class WaitForStableService extends Construct {
environment: {
DEBUG: 'false',
},
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'wait-for-stable-service.wait',
timeout: Duration.minutes(15),
logRetention: RetentionDays.ONE_WEEK,
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/deadline/test/version-query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test('VersionQuery constructor full version', () => {
'Arn',
],
},
Runtime: 'nodejs12.x',
Runtime: 'nodejs16.x',
}));
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('WaitForStableService', () => {
DEBUG: 'false',
},
},
Runtime: 'nodejs12.x',
Runtime: 'nodejs16.x',
Timeout: 900,
}));
});
Expand Down

0 comments on commit 8d74c9a

Please sign in to comment.