Skip to content

Commit

Permalink
fix: function name output from resource
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzzimmer committed Oct 8, 2021
1 parent 974dbde commit 584467d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/with-cloudwatch-logs-subscription/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 584467d

Please sign in to comment.