Skip to content

Commit

Permalink
fix: do not create cw log group for fluent bit if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavkumarsph committed Jul 7, 2023
1 parent 886f9c7 commit 4a861e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/essentials/fluent_bit.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ locals {
resource "aws_cloudwatch_log_group" "aws_for_fluent_bit" {
#checkov:skip=CKV_AWS_158:Not using CMK to save cost
#checkov:skip=CKV_AWS_338: "Ensure CloudWatch log groups retains logs for at least 1 year"
count = var.fluent_bit_enabled ? 1 : 0

name = local.log_group_name
retention_in_days = var.fluent_bit_log_group_retention
}
Expand Down

0 comments on commit 4a861e5

Please sign in to comment.