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 ebc0bb8 commit dfeaf25Copy full SHA for dfeaf25
packages/cdk/resources/OpenSearchResources.ts
@@ -4,8 +4,6 @@ import {
4
VectorCollection,
5
VectorCollectionStandbyReplicas
6
} from "@cdklabs/generative-ai-cdk-constructs/lib/cdk-lib/opensearchserverless"
7
-import {RemovalPolicy} from "aws-cdk-lib"
8
-import {CfnCollection} from "aws-cdk-lib/aws-opensearchserverless"
9
10
export interface OpenSearchResourcesProps {
11
readonly stackName: string
@@ -29,10 +27,5 @@ export class OpenSearchResources extends Construct {
29
27
// Grant access to the Bedrock execution role
30
28
this.collection.grantDataAccess(props.bedrockExecutionRole)
31
32
- const cfnCollection = this.collection.node.defaultChild as CfnCollection
33
- if (cfnCollection) {
34
- cfnCollection.applyRemovalPolicy(RemovalPolicy.DESTROY)
35
- }
36
-
37
}
38
0 commit comments