From e0aaf19d5133b92276d74de56bd08dfee4c29cf9 Mon Sep 17 00:00:00 2001 From: Renato Valenzuela Date: Tue, 4 Nov 2025 04:21:14 +0000 Subject: [PATCH] test: update integ tests to nodejs22.x --- .../api_with_authorizer_override_api_auth.yaml | 8 ++++---- .../combination/connector_appsync_to_eventbus.yaml | 2 +- .../combination/intrinsics_serverless_function.yaml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/integration/resources/templates/combination/api_with_authorizer_override_api_auth.yaml b/integration/resources/templates/combination/api_with_authorizer_override_api_auth.yaml index a5641b734..ccb70abbe 100644 --- a/integration/resources/templates/combination/api_with_authorizer_override_api_auth.yaml +++ b/integration/resources/templates/combination/api_with_authorizer_override_api_auth.yaml @@ -51,14 +51,14 @@ Resources: Type: AWS::Serverless::Function Properties: InlineCode: | - exports.handler = async (event, context, callback) => { + exports.handler = async (event, context) => { return { statusCode: 200, body: 'Success' } } Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs22.x Events: LambdaRequest: Type: Api @@ -94,9 +94,9 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: index.handler - Runtime: nodejs16.x + Runtime: nodejs22.x InlineCode: | - exports.handler = async (event, context, callback) => { + exports.handler = async (event, context) => { const auth = event.queryStringParameters.authorization const policyDocument = { Version: '2012-10-17', diff --git a/integration/resources/templates/combination/connector_appsync_to_eventbus.yaml b/integration/resources/templates/combination/connector_appsync_to_eventbus.yaml index bc3ca12f0..34ccef5ee 100644 --- a/integration/resources/templates/combination/connector_appsync_to_eventbus.yaml +++ b/integration/resources/templates/combination/connector_appsync_to_eventbus.yaml @@ -117,7 +117,7 @@ Resources: API_KEY: !GetAtt ApiKey.ApiKey GRAPHQL_URL: !GetAtt AppSyncApi.GraphQLUrl EventBusName: !Ref EventBus - Runtime: nodejs16.x + Runtime: nodejs22.x Handler: index.handler InlineCode: | const https = require("https"); diff --git a/integration/resources/templates/combination/intrinsics_serverless_function.yaml b/integration/resources/templates/combination/intrinsics_serverless_function.yaml index f7bfd8ca6..4172d4302 100644 --- a/integration/resources/templates/combination/intrinsics_serverless_function.yaml +++ b/integration/resources/templates/combination/intrinsics_serverless_function.yaml @@ -44,7 +44,7 @@ Resources: Fn::Sub: ['${filename}.handler', filename: index] Runtime: - Fn::Join: ['', [nodejs, 16.x]] + Fn::Join: ['', [nodejs, 22.x]] Role: Fn::GetAtt: [MyNewRole, Arn]