Skip to content

Commit aa3ca73

Browse files
author
Gareth Oakley
committed
fix(bedrock): Grant delete vectors permission to KB execution role
1 parent c9c16e6 commit aa3ca73

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/cdk-lib/bedrock/knowledge-bases/vector-knowledge-base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,7 @@ export class VectorKnowledgeBase extends VectorKnowledgeBaseBase {
890890
// Grant the KB role read and write access to the vector index
891891
vectorStore.vectorBucket.grantRead(this.role, [vectorStore.vectorIndexName]);
892892
vectorStore.vectorBucket.grantWrite(this.role, [vectorStore.vectorIndexName]);
893+
vectorStore.vectorBucket.grantDelete(this.role, [vectorStore.vectorIndexName]);
893894
return {
894895
vectorStore: vectorStore,
895896
vectorStoreType: VectorStoreType.S3_VECTORS,

0 commit comments

Comments
 (0)