Skip to content

Commit 3921ae9

Browse files
committed
feat: support both zip and container image deployment
1 parent 0376526 commit 3921ae9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

outputs.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ output "log_group_arn" {
6161
value = aws_cloudwatch_log_group.lambda_logs.arn
6262
}
6363

64-
# Package outputs
64+
# Package outputs (Zip only)
6565
output "package_path" {
6666
description = "Path to the Lambda deployment package"
67-
value = data.archive_file.lambda_zip.output_path
67+
value = var.package_type == "Zip" ? 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 = data.archive_file.lambda_zip.output_size
72+
value = var.package_type == "Zip" ? data.archive_file.lambda_zip[0].output_size : null
7373
}
7474

7575
# Template outputs

0 commit comments

Comments
 (0)