diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 42c7a21bd..1aaca9616 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '18' - uses: actions/cache@v3 with: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 8e53ab459..e27590598 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '18' - uses: actions/cache@v3 with: diff --git a/source/image-handler/package.json b/source/image-handler/package.json index cbe521ccb..ede6926c2 100644 --- a/source/image-handler/package.json +++ b/source/image-handler/package.json @@ -8,11 +8,11 @@ "dependencies": { "color": "3.1.3", "color-name": "1.1.4", - "sharp": "0.31.1" + "sharp": "0.31.1", + "aws-sdk": "2.887.0" }, "devDependencies": { "jest": "^26.4.2", - "aws-sdk": "2.887.0", "sinon": "^10.0.0" }, "scripts": { diff --git a/source/image-handler/terraform/main.tf b/source/image-handler/terraform/main.tf index 33d63c577..48a5e5f90 100644 --- a/source/image-handler/terraform/main.tf +++ b/source/image-handler/terraform/main.tf @@ -17,7 +17,7 @@ module "lambda" { ignore_external_function_updates = true memory_size = 1024 publish = true - runtime = "nodejs14.x" + runtime = "nodejs18.x" handler = "index.handler" s3_bucket = data.aws_s3_bucket.ci.bucket s3_key = local.s3_key