11import { Construct } from "constructs"
22import { Role } from "aws-cdk-lib/aws-iam"
3- import { Tags } from "aws-cdk-lib"
43import {
54 VectorCollection ,
65 VectorCollectionStandbyReplicas
@@ -10,8 +9,6 @@ export interface OpenSearchResourcesProps {
109 readonly stackName : string
1110 readonly bedrockExecutionRole : Role
1211 readonly region : string
13- readonly version : string
14- readonly commitId : string
1512}
1613
1714export class OpenSearchResources extends Construct {
@@ -24,14 +21,11 @@ export class OpenSearchResources extends Construct {
2421 this . collection = new VectorCollection ( this , "Collection" , {
2522 collectionName : `${ props . stackName } -vector-db` ,
2623 description : "EPS Assist Vector Store" ,
27- standbyReplicas : VectorCollectionStandbyReplicas . DISABLED // For cost optimization
24+ standbyReplicas : VectorCollectionStandbyReplicas . DISABLED
2825 } )
2926
3027 // Grant access to the Bedrock execution role
3128 this . collection . grantDataAccess ( props . bedrockExecutionRole )
3229
33- // Set static values for commit and version tags to prevent recreation
34- Tags . of ( this . collection ) . add ( "commit" , props . commitId )
35- Tags . of ( this . collection ) . add ( "version" , props . version )
3630 }
3731}
0 commit comments