From 719216702da9216906b66da0f0cb2b31c3e950cf Mon Sep 17 00:00:00 2001 From: Ben Drucker Date: Tue, 25 Jul 2023 15:44:54 -0700 Subject: [PATCH] feat: add `log_group_name` output (#69) --- README.md | 1 + outputs.tf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 53453fa..3b137d7 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ No modules. | Name | Description | |------|-------------| | [lambda\_function](#output\_lambda\_function) | Observe Lambda function | +| [log\_group\_name](#output\_log\_group\_name) | The name of the CloudWatch log group where logs for the Lambda will be written. | ## License diff --git a/outputs.tf b/outputs.tf index 42f56cf..91437ed 100644 --- a/outputs.tf +++ b/outputs.tf @@ -2,3 +2,8 @@ output "lambda_function" { description = "Observe Lambda function" value = aws_lambda_function.this } + +output "log_group_name" { + description = "The name of the CloudWatch log group where logs for the Lambda will be written." + value = aws_cloudwatch_log_group.group.name +}