Skip to content

Commit 3741550

Browse files
Merge pull request #49 from NHSDigital/CCM-8566_ArchiveCreationFix
CCM-8566 Archive Fixes
2 parents bbb60ca + 171254c commit 3741550

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

infrastructure/modules/eventpub/archive_file_lambda.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
resource "archive_file" "lambda" {
22
type = "zip"
33
source_dir = "${path.module}/lambda/eventpub/src"
4-
output_path = "${path.module}/lambda/eventpub.zip"
4+
5+
# Timestamp in path to resolve https://github.com/hashicorp/terraform-provider-archive/issues/39
6+
output_path = "${path.module}/lambda/eventpub_${timestamp()}.zip"
57
excludes = [
68
# NodeJS Exclusions
79
"**/__tests__",
@@ -10,4 +12,3 @@ resource "archive_file" "lambda" {
1012
"**/package-lock.json",
1113
]
1214
}
13-

infrastructure/modules/lambda/aws_lambda_function_event_invoke_config.tf renamed to infrastructure/modules/lambda/lambda_function_event_invoke_config.tf

File renamed without changes.

0 commit comments

Comments
 (0)