Skip to content

Commit ac4d549

Browse files
Zvikanbryantbiggs
andauthored
fix: Update CloudWatch log group creation deny policy to use wildcard (#2267)
Co-authored-by: Bryant Biggs <[email protected]>
1 parent 7f90184 commit ac4d549

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.75.0
3+
rev: v1.76.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ resource "aws_iam_role" "this" {
279279
{
280280
Action = ["logs:CreateLogGroup"]
281281
Effect = "Deny"
282-
Resource = aws_cloudwatch_log_group.this[0].arn
282+
Resource = "*"
283283
},
284284
]
285285
})

0 commit comments

Comments
 (0)