Skip to content

Commit fb8d917

Browse files
CCM-11097: Event Validation
1 parent 5c65fb2 commit fb8d917

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

infrastructure/modules/lambda/cloudwatch_log_subscription_filter_firehose.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "aws_cloudwatch_log_subscription_filter" "firehose" {
22
count = var.send_to_firehose ? 1 : 0 # Keeping this optional for now as don't want to break all lambdas using this, can make this mandatory later
3-
name = replace(aws_cloudwatch_log_group.main.name, "/", "-")
3+
name = trim(replace(aws_cloudwatch_log_group.main.name, "/", "-"), "-")
44
log_group_name = aws_cloudwatch_log_group.main.name
55
filter_pattern = var.filter_pattern
66
destination_arn = var.log_destination_arn

0 commit comments

Comments
 (0)