Skip to content

Commit a01bb5e

Browse files
authored
Merge pull request #13 from ONS-Innovation/KEH-673
Fix terraform linting errors on wildcards
2 parents 71a482a + 846b423 commit a01bb5e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.checkov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ skip-check:
1515
- CKV_TF_1
1616

1717
# These ignores are TEMPORARY. They will be resolved in the future.
18-
- CKV_AWS_108
1918
- CKV_AWS_272

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:*:*:*"] #trivy:ignore:AVD-AWS-0057
42+
resources = [
43+
"${aws_cloudwatch_log_group.loggroup.arn}:*"
44+
]
4345
}
4446
}
4547

0 commit comments

Comments
 (0)