Skip to content

Commit d10e0ec

Browse files
committed
add comment
1 parent 605224b commit d10e0ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cdk/stacks/EpsAssistMeStack.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ export class EpsAssistMeStack extends Stack {
9393
stackName: props.stackName,
9494
collection: openSearchResources.collection
9595
})
96+
// this dependency ensures the OpenSearch access policy is created before the VectorIndex
97+
// and deleted after the VectorIndex is deleted to prevent deletion or deployment failures
9698
vectorIndex.node.addDependency(openSearchResources.deploymentPolicy)
99+
97100
// Create VectorKnowledgeBase construct with Bedrock execution role
98101
const vectorKB = new VectorKnowledgeBaseResources(this, "VectorKB", {
99102
stackName: props.stackName,

0 commit comments

Comments
 (0)