Skip to content

Updating aws_cloudwatch_log_group name to match the custom one provid… #384

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
Oct 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion logging.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ locals {

resource "aws_cloudwatch_log_group" "environment" {
count = var.enable_cloudwatch_logging ? 1 : 0
name = var.environment
name = var.log_group_name != null ? var.log_group_name : var.environment
retention_in_days = var.cloudwatch_logging_retention_in_days
tags = local.tags
kms_key_id = local.kms_key
Expand Down