Skip to content

Commit af4a1ff

Browse files
committed
update checkov exceptions
1 parent bf9d56f commit af4a1ff

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

aws_sra_examples/solutions/genai/bedrock_guardrails/templates/sra-bedrock-guardrails-main.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,13 @@ Parameters:
277277

278278
Resources:
279279
rBedrockGuardrailsLambdaRole:
280+
Metadata:
281+
checkov:
282+
skip:
283+
- id: CKV_AWS_107
284+
comment: "No credentials are exposed to the Lambda function."
285+
- id: CKV_AWS_111
286+
comment: "IAM write actions require wildcard in resource."
280287
Type: AWS::IAM::Role
281288
Properties:
282289
RoleName: !Ref pBedrockGuardrailLambdaRoleName
@@ -471,4 +478,4 @@ Resources:
471478
Outputs:
472479
BedrockGuardrailsLambdaFunctionArn:
473480
Description: ARN of the Lambda function
474-
Value: !GetAtt rBedrockGuardrailsLambdaFunction.Arn
481+
Value: !GetAtt rBedrockGuardrailsLambdaFunction.Arn

aws_sra_examples/solutions/genai/bedrock_org/templates/sra-bedrock-org-main.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,13 @@ Metadata:
464464

465465
Resources:
466466
rBedrockOrgLambdaRole:
467+
Metadata:
468+
checkov:
469+
skip:
470+
- id: CKV_AWS_107
471+
comment: "No credentials are exposed to the Lambda function."
472+
- id: CKV_AWS_111
473+
comment: "IAM write actions require wildcard in resource."
467474
Type: AWS::IAM::Role
468475
Properties:
469476
RoleName: !Ref pBedrockOrgLambdaRoleName
@@ -768,4 +775,4 @@ Resources:
768775
Outputs:
769776
BedrockOrgLambdaFunctionArn:
770777
Description: ARN of the Lambda function
771-
Value: !GetAtt rBedrockOrgLambdaFunction.Arn
778+
Value: !GetAtt rBedrockOrgLambdaFunction.Arn

0 commit comments

Comments
 (0)