Skip to content

Commit

Permalink
fix: FluenBit add-on CW Log group fix (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
vara-bonthu authored Aug 11, 2023
1 parent bd1df9c commit 1f4b8c4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ data "aws_iam_policy_document" "aws_for_fluentbit" {
sid = "CreateCWLogs"
effect = "Allow"
resources = [
"arn:${local.partition}:logs:${local.region}:${local.account_id}:log-group:${try(var.aws_for_fluentbit_cw_log_group.name, "*")}",
"arn:${local.partition}:logs:${local.region}:${local.account_id}:log-group:${try(var.aws_for_fluentbit_cw_log_group.name, "*")}:*",
]

actions = [
Expand Down Expand Up @@ -675,6 +675,18 @@ module "aws_for_fluentbit" {
name = "cloudWatch.region"
value = local.region
},
{
name = "cloudWatchLogs.logGroupName"
value = local.aws_for_fluentbit_cw_log_group_name
},
{
name = "cloudWatchLogs.logGroupTemplate"
value = ""
},
{
name = "cloudWatchLogs.autoCreateGroup"
value = false
},
{
name = "cloudWatchLogs.region"
value = local.region
Expand Down

0 comments on commit 1f4b8c4

Please sign in to comment.