Skip to content

Commit e096967

Browse files
fix: static values removed
1 parent 4f6110f commit e096967

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {Construct} from "constructs"
22
import {Role} from "aws-cdk-lib/aws-iam"
3-
import {Tags} from "aws-cdk-lib"
43
import {
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

1714
export 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
}

packages/cdk/stacks/EpsAssistMeStack.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ export class EpsAssistMeStack extends Stack {
8080
const openSearchResources = new OpenSearchResources(this, "OpenSearchResources", {
8181
stackName: props.stackName,
8282
bedrockExecutionRole: bedrockExecutionRole.role,
83-
region,
84-
version: props.version,
85-
commitId: props.commitId
83+
region
8684
})
8785

8886
const vectorIndex = new VectorIndex(this, "VectorIndex", {

0 commit comments

Comments
 (0)