From 7e8714b572bbf24c8eaef88b0e37fb9de7cb839b Mon Sep 17 00:00:00 2001 From: poojakasar Date: Tue, 21 Nov 2023 17:11:27 +0530 Subject: [PATCH] fix- output of lambda-function-name --- _example/complete-function/outputs.tf | 9 +++++++++ outputs.tf | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/_example/complete-function/outputs.tf b/_example/complete-function/outputs.tf index 70b5b31..83cada9 100644 --- a/_example/complete-function/outputs.tf +++ b/_example/complete-function/outputs.tf @@ -1,3 +1,12 @@ +# output "name" { +# value = aws_lambda_function.default.function_name +# description = "The name can identifying your Lambda Function." +# } +output "lambda_function_name" { + description = "The name of the Lambda Function" + value = module.lambda.name +} + output "arn" { value = module.lambda[*].arn description = "The ID of the Hostzone." diff --git a/outputs.tf b/outputs.tf index 21898ad..560f67c 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,8 +1,8 @@ # Module : Lambda # Description : Terraform Lambda function module outputs. output "name" { - value = module.labels.name - description = "The name can identifying your Lambda Function." + description = "The name of the Lambda Function" + value = join("", aws_lambda_function.default[*].function_name) } output "arn" {