Skip to content

Commit bbb60ca

Browse files
Merge pull request #48 from NHSDigital/CCM-7938_MessagingInfraFix
CCM-7938 messaging infra fix
2 parents 0604a14 + b5f6de4 commit bbb60ca

2 files changed

Lines changed: 4 additions & 3 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 & 2 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

0 commit comments

Comments
 (0)