From 738d8dbf0fbe6686b991b8ebaaf4b6b799d2db07 Mon Sep 17 00:00:00 2001 From: Sylvia McLaughlin <85905333+sylviamclaughlin@users.noreply.github.com> Date: Thu, 2 Nov 2023 07:54:10 -0700 Subject: [PATCH] Changing the log group since the stream was created but events were not written into the log stream since the wrong log group was referenced (#211) --- terragrunt/org_account/spend_notifier/iam.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terragrunt/org_account/spend_notifier/iam.tf b/terragrunt/org_account/spend_notifier/iam.tf index 50e9fbbe..d407a523 100644 --- a/terragrunt/org_account/spend_notifier/iam.tf +++ b/terragrunt/org_account/spend_notifier/iam.tf @@ -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:*" ] } @@ -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 -} \ No newline at end of file +}