From 3287a796bc88bec890dda1fc91f43d925c7cf43b Mon Sep 17 00:00:00 2001 From: Kilian Date: Wed, 20 Mar 2024 12:14:04 +0100 Subject: [PATCH] enha: added log group ARN to outputs (#1) --- README.md | 1 + outputs.tf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index f6ff6d6..e72e693 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ This module provides a Lambda function which logs to CloudWatch. If no image URI | arn | The ARN of the Lambda function. | | invoke_arn | The invoke ARN of the Lambda function. | | log_group_name | The name of the CloudWatch log group created for the Lambda function to log to. | +| log_group_arn | The ARN of the CloudWatch log group created for the Lambda function to log to. | ## Example diff --git a/outputs.tf b/outputs.tf index 322e722..b6e99af 100644 --- a/outputs.tf +++ b/outputs.tf @@ -12,3 +12,8 @@ output "log_group_name" { description = "The name of the CloudWatch log group created for the Lambda function to log to." value = try(aws_cloudwatch_log_group.main[0].name, null) } + +output "log_group_arn" { + description = "The ARN of the CloudWatch log group created for the Lambda function to log to." + value = try(aws_cloudwatch_log_group.main[0].arn, null) +}