Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 4a44dbb

Browse files
committed
uses filebase64sha256 to generate source_code_hash
1 parent 2b0361a commit 4a44dbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terraform/lambda.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resource "aws_lambda_function" "store-and-ack" {
1313

1414
// Finishes in under 2seconds usually
1515
timeout = 5
16-
source_code_hash = "${base64sha256(file(data.archive_file.email-receipt-lambda.output_path))}"
16+
source_code_hash = "${filebase64sha256(data.archive_file.email-receipt-lambda.output_path)}"
1717
}
1818

1919
data "archive_file" "unsubscribe-lambda" {
@@ -28,5 +28,5 @@ resource "aws_lambda_function" "unsubscribe" {
2828
role = "${aws_iam_role.unsubscribe-lambda.arn}"
2929
handler = "index.handler"
3030
runtime = "nodejs8.10"
31-
source_code_hash = "${base64sha256(file(data.archive_file.unsubscribe-lambda.output_path))}"
31+
source_code_hash = "${filebase64sha256(data.archive_file.unsubscribe-lambda.output_path)}"
3232
}

0 commit comments

Comments
 (0)