Skip to content

Commit

Permalink
bugfix: get awslogs-group either from `aws_cloudwatch_log_group.conta…
Browse files Browse the repository at this point in the history
…iners` or use provided `var.cloudwatch_logs.name` (#153)
  • Loading branch information
harryherbig authored Jul 23, 2024
1 parent 059a7eb commit fad2003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fluentbit.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ locals {
logConfiguration = var.cloudwatch_logs.enabled ? {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.containers[0].name
awslogs-group = var.cloudwatch_logs.name == "" ? aws_cloudwatch_log_group.containers[0].name : var.cloudwatch_logs.name
awslogs-region = data.aws_region.current.name
awslogs-stream-prefix = "fluentbit"
mode = "non-blocking"
Expand Down
2 changes: 1 addition & 1 deletion otel.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ locals {
logConfiguration = var.cloudwatch_logs.enabled ? {
logDriver = "awslogs"
options = {
awslogs-group = aws_cloudwatch_log_group.containers[0].name
awslogs-group = var.cloudwatch_logs.name == "" ? aws_cloudwatch_log_group.containers[0].name : var.cloudwatch_logs.name
awslogs-region = data.aws_region.current.name
awslogs-stream-prefix = "otel"
mode = "non-blocking"
Expand Down

0 comments on commit fad2003

Please sign in to comment.