File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ skip-check:
2121 # SPP use the same pattern so it's not a concern for us
2222 - CKV_AWS_382
2323
24- # These ignores are TEMPORARY. They will be resolved in the future.
25- - CKV_AWS_108
24+ # Ignore adding code-signing to Lambda.
25+ # It is not needed here since our Lambda functions use container
26+ # images over uploading .zip files for layers.
2627 - CKV_AWS_272
Original file line number Diff line number Diff 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
@@ -70,7 +72,7 @@ data "aws_iam_policy_document" "lambda_secret_manager_policy" {
7072 ]
7173
7274 resources = [
73- " *"
75+ " arn:aws:secretsmanager:*:*:secret: ${ var . aws_secret_name } *"
7476 ]
7577 }
7678}
You can’t perform that action at this time.
0 commit comments