Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AWS Lambda runtime to nodejs18.x #12311

Closed
wants to merge 10 commits into from
2 changes: 1 addition & 1 deletion lib/plugins/aws/customResources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async function addCustomResourceToService(awsProvider, resourceName, iamRoleStat
FunctionName: absoluteFunctionName,
Handler,
MemorySize: 1024,
Runtime: 'nodejs16.x',
Runtime: 'nodejs18.x',
Timeout: 180,
},
DependsOn: [],
Expand Down
6 changes: 3 additions & 3 deletions test/unit/lib/plugins/aws/customResources/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('#addCustomResourceToService()', () => {
Role: {
'Fn::GetAtt': ['IamRoleCustomResourcesLambdaExecution', 'Arn'],
},
Runtime: 'nodejs16.x',
Runtime: 'nodejs18.x',
Timeout: 180,
},
DependsOn: ['IamRoleCustomResourcesLambdaExecution'],
Expand All @@ -128,7 +128,7 @@ describe('#addCustomResourceToService()', () => {
Role: {
'Fn::GetAtt': ['IamRoleCustomResourcesLambdaExecution', 'Arn'],
},
Runtime: 'nodejs16.x',
Runtime: 'nodejs18.x',
Timeout: 180,
},
DependsOn: ['IamRoleCustomResourcesLambdaExecution'],
Expand All @@ -147,7 +147,7 @@ describe('#addCustomResourceToService()', () => {
Role: {
'Fn::GetAtt': ['IamRoleCustomResourcesLambdaExecution', 'Arn'],
},
Runtime: 'nodejs16.x',
Runtime: 'nodejs18.x',
Timeout: 180,
},
DependsOn: ['IamRoleCustomResourcesLambdaExecution'],
Expand Down