Skip to content

feat: add log_group_name output #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2023
Merged

feat: add log_group_name output #69

merged 1 commit into from
Jul 25, 2023

Conversation

bendrucker
Copy link
Contributor

What does this PR do?

Exposes the CloudWatch log group name as an output.

Motivation

Allows callers of this module to wire up this log group with a filter to a Kinesis Firehose delivery stream, e.g.,:

https://github.com/observeinc/terraform-aws-kinesis-firehose/tree/main/modules/cloudwatch_logs_subscription

Currently, because the Lambda implicitly depends on this (even with #68), callers have to hardcode this /aws/lambda/* pattern. We should encapsulate the hack here.

Testing

terraform validate ensures this reference is valid and is sufficient proof that this works.

@bendrucker bendrucker requested review from jta and aping1 as code owners July 17, 2023 16:27
@bendrucker bendrucker force-pushed the output-cw-log-group branch from 2762e1c to 0f616ed Compare July 25, 2023 03:23
@bendrucker bendrucker merged commit 7192167 into main Jul 25, 2023
@bendrucker bendrucker deleted the output-cw-log-group branch July 25, 2023 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants