File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,9 @@ export class VectorIndex extends Construct {
6464 }
6565 } )
6666
67- this . cfnIndex = cfnIndex
67+ cfnIndex . node . addDependency ( props . collection . dataAccessPolicy )
6868
69- this . cfnIndex . applyRemovalPolicy ( RemovalPolicy . DESTROY )
69+ cfnIndex . applyRemovalPolicy ( RemovalPolicy . DESTROY )
70+ this . cfnIndex = cfnIndex
7071 }
7172}
Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ export class EpsAssistMeStack extends Stack {
106106 } )
107107
108108 vectorKB . knowledgeBase . node . addDependency ( vectorIndex . cfnIndex )
109+ vectorKB . knowledgeBase . node . addDependency ( openSearchResources . collection )
110+ vectorKB . knowledgeBase . node . addDependency ( openSearchResources . collection . dataAccessPolicy )
109111
110112 // Create runtime policies with resource dependencies
111113 const runtimePolicies = new RuntimePolicies ( this , "RuntimePolicies" , {
You can’t perform that action at this time.
0 commit comments