Skip to content

Commit ae8734f

Browse files
author
Kilian
committed
enha: limited CloudWatch permission scope
1 parent 4e662ae commit ae8734f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ data "aws_iam_policy_document" "log" {
7777
"logs:PutLogEvents"
7878
]
7979

80-
resources = ["*"]
80+
resources = [aws_cloudwatch_log_group.main[0].arn, "${aws_cloudwatch_log_group.main[0].arn}/*"]
8181
}
8282
}
8383

0 commit comments

Comments
 (0)