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 fa81eae commit 30e0604Copy full SHA for 30e0604
data.tf
@@ -3,7 +3,7 @@ data "archive_file" "this" {
3
for_each = local.lambdas
4
5
type = "zip"
6
- source_file = local.null.lambda_binary_locations[each.key]
+ source_file = "${path.module}/lambdas/bin/${each.key}"
7
output_path = "${path.module}/archive/${each.key}.zip"
8
}
9
locals.tf
@@ -9,7 +9,6 @@ locals {
10
11
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}" }
+ lambda_binary_exists = { for key, _ in local.lambdas : key => fileexists("${path.module}/lambdas/bin/${key}") }
14
15
0 commit comments