We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0376526 commit 3921ae9Copy full SHA for 3921ae9
outputs.tf
@@ -61,15 +61,15 @@ output "log_group_arn" {
61
value = aws_cloudwatch_log_group.lambda_logs.arn
62
}
63
64
-# Package outputs
+# Package outputs (Zip only)
65
output "package_path" {
66
description = "Path to the Lambda deployment package"
67
- value = data.archive_file.lambda_zip.output_path
+ value = var.package_type == "Zip" ? data.archive_file.lambda_zip[0].output_path : null
68
69
70
output "package_size" {
71
description = "Size of the Lambda deployment package"
72
- value = data.archive_file.lambda_zip.output_size
+ value = var.package_type == "Zip" ? data.archive_file.lambda_zip[0].output_size : null
73
74
75
# Template outputs
0 commit comments