Skip to content

Commit

Permalink
Changing the log group since the stream was created but events were n…
Browse files Browse the repository at this point in the history
…ot written into the log stream since the wrong log group was referenced (#211)
  • Loading branch information
sylviamclaughlin authored Nov 2, 2023
1 parent 63ac06b commit 738d8db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terragrunt/org_account/spend_notifier/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ data "aws_iam_policy_document" "spend_notifier" {
"logs:PutLogEvents"
]
resources = [
"arn:aws:logs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:log-group:/aws/lambda/daily-spend-monitor:*"
"arn:aws:logs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:log-group:/aws/lambda/spend_notifier:*"
]

}
Expand Down Expand Up @@ -73,4 +73,4 @@ data "aws_iam_policy" "lambda_insights" {
resource "aws_iam_role_policy_attachment" "lambda_insights" {
role = aws_iam_role.spend_notifier.name
policy_arn = data.aws_iam_policy.lambda_insights.arn
}
}

0 comments on commit 738d8db

Please sign in to comment.