From 584467d17262f85a96d982fd885032d991558c1a Mon Sep 17 00:00:00 2001 From: Moritz Zimmer Date: Thu, 7 Oct 2021 14:46:23 +0200 Subject: [PATCH] fix: function name output from resource --- examples/with-cloudwatch-logs-subscription/README.md | 2 +- main.tf | 2 +- outputs.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/with-cloudwatch-logs-subscription/README.md b/examples/with-cloudwatch-logs-subscription/README.md index ed3f662..da19094 100644 --- a/examples/with-cloudwatch-logs-subscription/README.md +++ b/examples/with-cloudwatch-logs-subscription/README.md @@ -1,4 +1,4 @@ -# Example with CloduWatch logs configuration +# Example with CloudWatch logs configuration Creates an AWS Lambda function with CloudWatch logs subscription filters and configured retention time. diff --git a/main.tf b/main.tf index 6e9ea9b..3522185 100644 --- a/main.tf +++ b/main.tf @@ -72,7 +72,7 @@ resource "aws_lambda_function" "lambda" { // Copy of the original Lambda resource plus lifecycle configuration ignoring // external changes executed by CodeDeploy, aws CLI and others. -// We need this copy workaround lifecycle configuration must be static, +// We need this copy workaround, since lifecycle configuration must be static, // see https://github.com/hashicorp/terraform/issues/24188. resource "aws_lambda_function" "lambda_external_lifecycle" { count = var.ignore_external_function_updates ? 1 : 0 diff --git a/outputs.tf b/outputs.tf index 4e51e4b..0fc7464 100644 --- a/outputs.tf +++ b/outputs.tf @@ -15,7 +15,7 @@ output "cloudwatch_log_group_arn" { output "function_name" { description = "The unique name of your Lambda Function." - value = var.function_name + value = var.ignore_external_function_updates ? aws_lambda_function.lambda_external_lifecycle[0].function_name : aws_lambda_function.lambda[0].function_name } output "invoke_arn" {