Skip to content

Commit 846b423

Browse files
committed
refactor: update iam resource to use resource instead of calculated string
1 parent 9a0af72 commit 846b423

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

terraform/service/data.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ data "aws_iam_policy_document" "lambda_logging" {
3939
"logs:PutLogEvents",
4040
]
4141

42-
resources = ["arn:aws:logs:${var.region}:${var.aws_account_id}:log-group:/aws/lambda/${var.lambda_name}:*"]
42+
resources = [
43+
"${aws_cloudwatch_log_group.loggroup.arn}:*"
44+
]
4345
}
4446
}
4547

0 commit comments

Comments
 (0)