Skip to content

Commit 7408809

Browse files
committed
fix: has calculation for source=null
1 parent 8198b37 commit 7408809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ resource "aws_lambda_function" "this" {
127127

128128
# Zip package configuration
129129
filename = var.package_type == "Zip" ? (local.use_prebuilt_zip ? var.filename : data.archive_file.lambda_zip[0].output_path) : null
130-
source_code_hash = var.package_type == "Zip" ? (local.use_prebuilt_zip ? filebase64sha256(var.filename) : data.archive_file.lambda_zip[0].output_base64sha256) : null
130+
source_code_hash = var.package_type == "Zip" ? (local.use_prebuilt_zip ? null : data.archive_file.lambda_zip[0].output_base64sha256) : null
131131
handler = var.package_type == "Zip" ? var.handler : null
132132
runtime = var.package_type == "Zip" ? var.runtime : null
133133

0 commit comments

Comments
 (0)