Skip to content

Commit

Permalink
bugfix condition for cloudwatch logs group creation
Browse files Browse the repository at this point in the history
  • Loading branch information
harryherbig committed Jul 23, 2024
1 parent a3abb00 commit 3789bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudwatch_logs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "aws_cloudwatch_log_group" "containers" {
count = var.cloudwatch_logs.enabled && var.cloudwatch_logs.name != "" ? 1 : 0
count = var.cloudwatch_logs.enabled && var.cloudwatch_logs.name == "" ? 1 : 0

name = var.cloudwatch_logs.name == "" ? "/aws/ecs/${var.service_name}" : var.cloudwatch_logs.name
retention_in_days = var.cloudwatch_logs.retention_in_days
Expand Down

0 comments on commit 3789bb9

Please sign in to comment.