Skip to content

Commit f80accd

Browse files
mgomezzulMateo Gómez-Zuluaga
authored andcommittedOct 13, 2021
fix: aws_cloudwatch_log_group name to match the custom one provide by variable log_group_name (#384)
Co-authored-by: Mateo Gómez-Zuluaga <[email protected]>
1 parent d9592ff commit f80accd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎logging.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ locals {
1616

1717
resource "aws_cloudwatch_log_group" "environment" {
1818
count = var.enable_cloudwatch_logging ? 1 : 0
19-
name = var.environment
19+
name = var.log_group_name != null ? var.log_group_name : var.environment
2020
retention_in_days = var.cloudwatch_logging_retention_in_days
2121
tags = local.tags
2222
kms_key_id = local.kms_key

0 commit comments

Comments
 (0)