From ec74cc8343cbf512eed83c872c477c28e7883bf9 Mon Sep 17 00:00:00 2001 From: "steve.forth" Date: Fri, 26 Jul 2024 16:35:08 +0100 Subject: [PATCH] update to nodejs20.x runtime --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 4 ++-- README.md | 2 +- infra/terraform/modules/_lambda/main.tf | 2 +- template.yaml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec7ddd7..b2e808f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [20.x] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c064d1..5bdc4ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,10 +15,10 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Use Node.js 14 + - name: Use Node.js 20 uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '20' - name: Run tests run: npm run-script test-ci diff --git a/README.md b/README.md index 7577be0..3ae470e 100755 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ Detailed instructions on testing your function can be found [in the Wiki](https: ## Build Requirements * [npm](https://www.npmjs.com/) ^7.20.0 -* [node](https://nodejs.org/en/) ^16.0 +* [node](https://nodejs.org/en/) ^20.0 * [openssl](https://www.openssl.org) ## Building Generic Packages diff --git a/infra/terraform/modules/_lambda/main.tf b/infra/terraform/modules/_lambda/main.tf index a609e85..965e4bc 100644 --- a/infra/terraform/modules/_lambda/main.tf +++ b/infra/terraform/modules/_lambda/main.tf @@ -20,7 +20,7 @@ resource "aws_lambda_function" "main" { role = aws_iam_role.lambda.arn handler = "index.handler" source_code_hash = base64sha256(var.package_url) - runtime = "nodejs16.x" + runtime = "nodejs20.x" timeout = var.timeout publish = var.lambda_at_edge tags = var.tags diff --git a/template.yaml b/template.yaml index 543b232..4b81e37 100644 --- a/template.yaml +++ b/template.yaml @@ -8,7 +8,7 @@ Resources: Properties: CodeUri: distributions/{distribution_name}/{distribution_name}.zip Role: !GetAtt LambdaEdgeFunctionRole.Arn - Runtime: nodejs16.x + Runtime: nodejs20.x Handler: index.handler Timeout: 5 AutoPublishAlias: LIVE