Skip to content

Commit 30e0604

Browse files
committed
Simplified code by removing redundant local.null.lambda_binary_locations
1 parent fa81eae commit 30e0604

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

data.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ data "archive_file" "this" {
33
for_each = local.lambdas
44

55
type = "zip"
6-
source_file = local.null.lambda_binary_locations[each.key]
6+
source_file = "${path.module}/lambdas/bin/${each.key}"
77
output_path = "${path.module}/archive/${each.key}.zip"
88
}
99

locals.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ locals {
99
}
1010

1111
null = {
12-
lambda_binary_exists = { for key, _ in local.lambdas : key => fileexists("${path.module}/lambdas/bin/${key}") }
13-
lambda_binary_locations = { for key, _ in local.lambdas : key => "${path.module}/lambdas/bin/${key}" }
12+
lambda_binary_exists = { for key, _ in local.lambdas : key => fileexists("${path.module}/lambdas/bin/${key}") }
1413
}
1514
}

0 commit comments

Comments
 (0)