Skip to content

Commit caffb27

Browse files
committed
Add hash to collectionName in OpenSearchResources class
1 parent f6cd1cb commit caffb27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cdk/resources/OpenSearchResources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class OpenSearchResources extends Construct {
1616
super(scope, id)
1717

1818
this.collection = new OpenSearchCollection(this, "OsCollection", {
19-
createHash: `eps-assist-vector-db-${createHash("md5").update(this.node.addr).digest("hex").substring(0, 8)}`,
19+
collectionName: `eps-assist-vector-db-${createHash("md5").update(this.node.addr).digest("hex").substring(0, 8)}`,
2020
principals: [
2121
props.bedrockExecutionRole.roleArn,
2222
props.createIndexFunctionRole.roleArn,

0 commit comments

Comments
 (0)