Skip to content

Commit 4fa086d

Browse files
committed
switch back to hashing layer zip
1 parent 7427cc5 commit 4fa086d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

infrastructure/terraform/modules/backend-api/lambda_layer_pdfjs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ resource "aws_lambda_layer_version" "lambda_layer_pdfjs" {
22
layer_name = "${local.csi}-nodejs20-pdfjs-dist"
33
description = "pdfjs-dist dependencies for Node.js v20"
44
filename = local.pdfjs_layer_zip
5-
source_code_hash = filebase64sha256(local.pdfjs_layer_lockfile)
5+
source_code_hash = filebase64sha256(local.pdfjs_layer_zip)
66
compatible_runtimes = ["nodejs20.x"]
77
}

infrastructure/terraform/modules/backend-api/locals.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ locals {
55

66
lambdas_source_code_dir = abspath("${path.module}/${local.lambdas_dir}")
77
pdfjs_layer_zip = abspath("${local.lambdas_source_code_dir}/layers/pdfjs/dist/layer/pdfjs-layer.zip")
8-
pdfjs_layer_lockfile = abspath("${local.lambdas_source_code_dir}/layers/pdfjs/package-lock.json")
98

109
client_ssm_path_prefix = "/${var.csi}/clients"
1110
client_ssm_path_pattern = "arn:aws:ssm:${var.region}:${var.aws_account_id}:parameter${local.client_ssm_path_prefix}/*"

0 commit comments

Comments
 (0)