We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0604a14 + b5f6de4 commit bbb60caCopy full SHA for bbb60ca
2 files changed
…les/eventpub/data_archive_file_lambda.tf …/modules/eventpub/archive_file_lambda.tfinfrastructure/modules/eventpub/data_archive_file_lambda.tf renamed to infrastructure/modules/eventpub/archive_file_lambda.tf
@@ -1,4 +1,4 @@
1
-data "archive_file" "lambda" {
+resource "archive_file" "lambda" {
2
type = "zip"
3
source_dir = "${path.module}/lambda/eventpub/src"
4
output_path = "${path.module}/lambda/eventpub.zip"
@@ -10,3 +10,4 @@ data "archive_file" "lambda" {
10
"**/package-lock.json",
11
]
12
}
13
+
infrastructure/modules/eventpub/lambda_function.tf
@@ -9,8 +9,8 @@ resource "aws_lambda_function" "main" {
9
memory_size = 128
timeout = 20
- filename = data.archive_file.lambda.output_path
- source_code_hash = data.archive_file.lambda.output_base64sha256
+ filename = archive_file.lambda.output_path
+ source_code_hash = archive_file.lambda.output_base64sha256
14
15
logging_config {
16
application_log_level = var.log_level
0 commit comments