Skip to content

Commit

Permalink
Fluentbit: Allow fluent-bit to create log groups (#130)
Browse files Browse the repository at this point in the history
* Fluentbit: Allow fluent-bit to create log groups

* Update fluentbit policy to add retention period for logs

* Removed conditional log group creating check
  • Loading branch information
ianuragsingh authored Sep 27, 2024
1 parent b5dab52 commit 91bd782
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/essentials/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ data "aws_iam_policy_document" "fluent_bit" {
resources = ["arn:aws:logs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:log-group:*"]

actions = [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:DescribeLogGroups",
"logs:DescribeLogStreams",
"logs:PutRetentionPolicy",
]
}
}

0 comments on commit 91bd782

Please sign in to comment.