Skip to content

Commit 1b27c8e

Browse files
chore: undo commenting code out
1 parent 65f275e commit 1b27c8e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/cdk/stacks/EpsAssistMeStack.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,15 @@ export class EpsAssistMeStack extends Stack {
126126
})
127127

128128
// Create vector index after Functions are created
129-
// const vectorIndex = new VectorIndex(this, "VectorIndex", {
130-
new VectorIndex(this, "VectorIndex", {
129+
const vectorIndex = new VectorIndex(this, "VectorIndex", {
131130
indexName: VECTOR_INDEX_NAME,
132131
collection: openSearchResources.collection.collection,
133132
createIndexFunction: functions.functions.createIndex,
134133
endpoint
135134
})
136135

137136
// Ensure knowledge base waits for vector index
138-
// vectorKB.knowledgeBase.node.addDependency(vectorIndex.vectorIndex)
137+
vectorKB.knowledgeBase.node.addDependency(vectorIndex.vectorIndex)
139138

140139
// Add S3 notification to trigger sync Lambda function
141140
new S3LambdaNotification(this, "S3LambdaNotification", {

0 commit comments

Comments
 (0)