From 605ac570c26040aeb572f8d06c0f0965a0848400 Mon Sep 17 00:00:00 2001 From: Pavels Veretennikovs Date: Wed, 31 Jul 2019 12:59:14 +0300 Subject: [PATCH 1/4] feature: add built filename to outputs --- outputs.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/outputs.tf b/outputs.tf index a1ccf1d..3949025 100644 --- a/outputs.tf +++ b/outputs.tf @@ -27,3 +27,9 @@ output "role_name" { description = "The name of the IAM role created for the Lambda function" value = "${aws_iam_role.lambda.name}" } + +output "build_result_filename" { + description = "Full path to the source code package with requirements installed" + value = "${lookup(data.external.built.result, "filename")}" +} + From 4b33503f06968a50f8ee56cd222e4193d98704be Mon Sep 17 00:00:00 2001 From: Pavels Veretennikovs Date: Thu, 1 Aug 2019 21:45:14 +0300 Subject: [PATCH 2/4] full path --- outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outputs.tf b/outputs.tf index 3949025..b546097 100644 --- a/outputs.tf +++ b/outputs.tf @@ -30,6 +30,6 @@ output "role_name" { output "build_result_filename" { description = "Full path to the source code package with requirements installed" - value = "${lookup(data.external.built.result, "filename")}" + value = "${path.module}/${lookup(data.external.built.result, "filename")}" } From ae3bcaf66da947a9627186b0100778b876b60444 Mon Sep 17 00:00:00 2001 From: Pavels Veretennikovs Date: Thu, 1 Aug 2019 21:58:09 +0300 Subject: [PATCH 3/4] relpath? --- outputs.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/outputs.tf b/outputs.tf index b546097..79991e7 100644 --- a/outputs.tf +++ b/outputs.tf @@ -30,6 +30,5 @@ output "role_name" { output "build_result_filename" { description = "Full path to the source code package with requirements installed" - value = "${path.module}/${lookup(data.external.built.result, "filename")}" + value = "${local.module_relpath}/${lookup(data.external.built.result, "filename")}" } - From 17a8c58978891b7e2173c3705019be9ac473bb87 Mon Sep 17 00:00:00 2001 From: Pavels Veretennikovs Date: Thu, 1 Aug 2019 22:24:46 +0300 Subject: [PATCH 4/4] rollback --- outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outputs.tf b/outputs.tf index 79991e7..10e890c 100644 --- a/outputs.tf +++ b/outputs.tf @@ -30,5 +30,5 @@ output "role_name" { output "build_result_filename" { description = "Full path to the source code package with requirements installed" - value = "${local.module_relpath}/${lookup(data.external.built.result, "filename")}" + value = "${lookup(data.external.built.result, "filename")}" }