diff --git a/examples/rest-api/serverless.yml b/examples/rest-api/serverless.yml index c926c61f..c663ef04 100644 --- a/examples/rest-api/serverless.yml +++ b/examples/rest-api/serverless.yml @@ -12,7 +12,7 @@ custom: provider: name: aws - runtime: nodejs10.x + runtime: nodejs12.x logs: restApi: format: '$context.requestTimeEpoch $context.requestId $context.httpMethod $context.resourcePath $context.status $context.responseLatency' diff --git a/src/index.ts b/src/index.ts index 9944a139..26228a86 100644 --- a/src/index.ts +++ b/src/index.ts @@ -291,7 +291,7 @@ class ServerlessEsLogsPlugin { include: [`${this.logProcesserDir}/**`], individually: true, }, - runtime: 'nodejs10.x', + runtime: 'nodejs12.x', timeout: 60, tracing: false, }; diff --git a/test/support/ServerlessBuilder.ts b/test/support/ServerlessBuilder.ts index f0c4a0e3..95eabdf5 100644 --- a/test/support/ServerlessBuilder.ts +++ b/test/support/ServerlessBuilder.ts @@ -52,7 +52,7 @@ export class ServerlessBuilder { }, name: 'aws', region: 'us-east-1', - runtime: 'nodejs10.x', + runtime: 'nodejs12.x', stage: 'dev', }, },