Skip to content

Commit b5f6de4

Browse files
CCM-7938 Dependency fix
1 parent bc4a3f5 commit b5f6de4

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

infrastructure/modules/eventpub/data_archive_file_lambda.tf renamed to infrastructure/modules/eventpub/archive_file_lambda.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
data "archive_file" "lambda" {
1+
resource "archive_file" "lambda" {
22
type = "zip"
33
source_dir = "${path.module}/lambda/eventpub/src"
44
output_path = "${path.module}/lambda/eventpub.zip"
@@ -10,3 +10,4 @@ data "archive_file" "lambda" {
1010
"**/package-lock.json",
1111
]
1212
}
13+

infrastructure/modules/eventpub/lambda_function.tf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ resource "aws_lambda_function" "main" {
99
memory_size = 128
1010
timeout = 20
1111

12-
filename = data.archive_file.lambda.output_path
13-
source_code_hash = data.archive_file.lambda.output_base64sha256
12+
filename = archive_file.lambda.output_path
13+
source_code_hash = archive_file.lambda.output_base64sha256
1414

1515
logging_config {
1616
application_log_level = var.log_level
@@ -27,6 +27,4 @@ resource "aws_lambda_function" "main" {
2727
THROTTLE_DELAY_MS = "0"
2828
}
2929
}
30-
31-
depends_on = [ data.archive_file.lambda ] # This should not be needed but it is
3230
}

0 commit comments

Comments
 (0)