Skip to content

Commit

Permalink
chore: bump nodejs lambda runtimes to 18.x
Browse files Browse the repository at this point in the history
  • Loading branch information
alharris-at committed Aug 28, 2023
1 parent f68b257 commit 0188db7
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}
},
"Role": { "Fn::GetAtt" : ["LambdaExecutionRole", "Arn"] },
"Runtime": "nodejs14.x",
"Runtime": "nodejs18.x",
"Timeout": 25
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ $utils.error($ctx.result.body)
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 60,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1609,7 +1609,7 @@ $utils.error($ctx.result.body)
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 60,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ exports.handler = async function({ RequestType, ResourceProperties, StackId }) {
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 15,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1492,7 +1492,7 @@ exports.handler = async function({ RequestType, ResourceProperties, StackId }) {
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 15,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1566,7 +1566,7 @@ exports.handler = async function({ RequestType, ResourceProperties, StackId }) {
"Arn",
],
},
"Runtime": "nodejs14.x",
"Runtime": "nodejs18.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1711,7 +1711,7 @@ exports.handler = async function({ RequestType, ResourceProperties, StackId }) {
"Arn",
],
},
"Runtime": "nodejs14.x",
"Runtime": "nodejs18.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1860,7 +1860,7 @@ exports.handler = async function({ RequestType, ResourceProperties, StackId }) {
"Arn",
],
},
"Runtime": "nodejs14.x",
"Runtime": "nodejs18.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -2236,7 +2236,7 @@ exports.handler = async function({ 'CodePipeline.job': { id: jobId } }) {
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 15,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type GitHubSourceActionInfo = {
tokenSecretArn: string;
};

const lambdaRuntimeNodeVersion = lambda.Runtime.NODEJS_16_X;
const lambdaRuntimeNodeVersion = lambda.Runtime.NODEJS_18_X;

const lambdasDir = path.resolve(__dirname, '../../../resources/awscloudformation/lambdas');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const createMappingLambda = (host: TransformHostProvider, stackManager: S
`functions/${funcLogicalId}.zip`, // function key
'index.handler', // function handler
path.join(__dirname, 'assets', 'mapping-lambda.zip'),
lambda.Runtime.NODEJS_14_X,
lambda.Runtime.NODEJS_18_X,
undefined, // layers
role, // execution role,
undefined, // env vars
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ $utils.error($ctx.result.body)
"Arn",
],
},
"Runtime": "nodejs16.x",
"Runtime": "nodejs18.x",
"Timeout": 60,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function createPredictionsLambda(context: TransformerContextProvider, stack: cdk
`functions/${functionId}.zip`,
PredictionsResourceIDs.lambdaHandlerName,
path.join(__dirname, '..', 'lib', 'predictionsLambdaFunction.zip'),
lambda.Runtime.NODEJS_16_X,
lambda.Runtime.NODEJS_18_X,
[],
role,
{},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class PredictionsResourceIDs {

static lambdaHandlerName = 'predictionsLambda.handler';

static lambdaRuntime = 'nodejs14.x';
static lambdaRuntime = 'nodejs18.x';

static lambdaTimeout = 60;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class JsonMockStack extends cdk.Stack {
const jsonLambda = new lambda.Function(this, 'jsonServerFunction', {
code: new lambda.AssetCode('src-server'),
handler: 'index.handler',
runtime: lambda.Runtime.NODEJS_14_X,
runtime: lambda.Runtime.NODEJS_18_X,
});

const api = new apigateway.LambdaRestApi(this, 'jsonMockApi', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class LambdaHelper {
Code: {
ZipFile: zipContents,
},
Runtime: 'nodejs14.x',
Runtime: 'nodejs18.x',
Handler: `${filePrefix}.handler`,
Role: roleArn,
})
Expand Down

0 comments on commit 0188db7

Please sign in to comment.