File tree Expand file tree Collapse file tree
infrastructure/modules/eventpub Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments