We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605224b commit d10e0ecCopy full SHA for d10e0ec
packages/cdk/stacks/EpsAssistMeStack.ts
@@ -93,7 +93,10 @@ export class EpsAssistMeStack extends Stack {
93
stackName: props.stackName,
94
collection: openSearchResources.collection
95
})
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
98
vectorIndex.node.addDependency(openSearchResources.deploymentPolicy)
99
+
100
// Create VectorKnowledgeBase construct with Bedrock execution role
101
const vectorKB = new VectorKnowledgeBaseResources(this, "VectorKB", {
102
0 commit comments