File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ export const nagSuppressions = (stack: Stack) => {
9696 reason : "Bedrock Knowledge Base requires these permissions to access S3 documents and OpenSearch collection." ,
9797 appliesTo : [
9898 "Action::bedrock:Delete*" ,
99+ "Resource::<StorageDocsBucketepsamDocsF25F63F1.Arn>/*" ,
99100 "Resource::arn:aws:bedrock:eu-west-2:undefined:knowledge-base/*" ,
100101 "Resource::arn:aws:bedrock:eu-west-2:591291862413:knowledge-base/*" ,
101102 "Resource::arn:aws:aoss:eu-west-2:undefined:collection/*" ,
Original file line number Diff line number Diff line change 66 ManagedPolicy
77} from "aws-cdk-lib/aws-iam"
88import { Bucket } from "aws-cdk-lib/aws-s3"
9- import { NagSuppressions } from "cdk-nag"
109
1110// Amazon Titan embedding model for vector generation
1211const EMBEDDING_MODEL = "amazon.titan-embed-text-v2:0"
@@ -87,15 +86,6 @@ export class IamResources extends Construct {
8786 ]
8887 } )
8988
90- // Suppress CDK-nag warning for S3 wildcard resource
91- NagSuppressions . addResourceSuppressions ( bedrockExecutionManagedPolicy , [
92- {
93- id : "AwsSolutions-IAM5" ,
94- reason : "Bedrock Knowledge Base requires wildcard access to read all objects in the S3 bucket" ,
95- appliesTo : [ `Resource::${ props . kbDocsBucket . bucketArn } /*` ]
96- }
97- ] )
98-
9989 // Create Bedrock execution role with managed policy
10090 this . bedrockExecutionRole = new Role ( this , "EpsAssistMeBedrockExecutionRole" , {
10191 assumedBy : new ServicePrincipal ( "bedrock.amazonaws.com" ) ,
You can’t perform that action at this time.
0 commit comments