Skip to content

Commit 3cc6fc0

Browse files
committed
fix: use null_resource to create Lambda ZIP file before Lambda function creation
1 parent b1970df commit 3cc6fc0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

modules/scenarios/message-size-breach/data_sources.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Data source for Lambda function zip file (inline code)
1+
# Create Lambda function zip file using archive_file data source
22
data "archive_file" "lambda_zip" {
33
type = "zip"
44
output_path = "${path.module}/lambda_function.zip"

modules/scenarios/message-size-breach/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ resource "aws_lambda_function" "image_processor" {
5353
memory_size = 1024
5454

5555
depends_on = [
56-
data.archive_file.lambda_zip,
5756
aws_iam_role.lambda_role
5857
]
5958

0 commit comments

Comments
 (0)