Skip to content

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 aping1 and jta 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.

3 participants