Skip to content

Commit 8198b37

Browse files
committed
fix: fix prebuild outputs
1 parent 34a7507 commit 8198b37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ output "log_group_arn" {
6464
# Package outputs (Zip only)
6565
output "package_path" {
6666
description = "Path to the Lambda deployment package"
67-
value = var.package_type == "Zip" ? data.archive_file.lambda_zip[0].output_path : null
67+
value = var.package_type == "Zip" ? (local.use_prebuilt_zip ? var.filename : data.archive_file.lambda_zip[0].output_path) : null
6868
}
6969

7070
output "package_size" {
7171
description = "Size of the Lambda deployment package"
72-
value = var.package_type == "Zip" ? data.archive_file.lambda_zip[0].output_size : null
72+
value = var.package_type == "Zip" ? (local.use_prebuilt_zip ? null : data.archive_file.lambda_zip[0].output_size) : null
7373
}
7474

7575
# Template outputs

0 commit comments

Comments
 (0)