From 67537f6b2e373db3acc200245f1ffe35d9cabdea Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Thu, 15 Jul 2021 15:59:54 +0200 Subject: [PATCH] No need to set etag as the filename is a hash of the content that only changes when the actual content changes, while the computed etag was a MD5 hash of the locally built zip archive which always changed --- main.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/main.tf b/main.tf index bcaef9c4..431790e2 100644 --- a/main.tf +++ b/main.tf @@ -116,7 +116,6 @@ resource "aws_s3_bucket_object" "lambda_package" { acl = var.s3_acl key = data.external.archive_prepare[0].result.filename source = data.external.archive_prepare[0].result.filename - etag = fileexists(data.external.archive_prepare[0].result.filename) ? filemd5(data.external.archive_prepare[0].result.filename) : null storage_class = var.s3_object_storage_class server_side_encryption = var.s3_server_side_encryption