File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11import { Construct } from "constructs"
22import { OpenSearchCollection } from "../constructs/OpenSearchCollection"
33import * as iam from "aws-cdk-lib/aws-iam"
4+ import { createHash } from "crypto"
45
56export interface OpenSearchResourcesProps {
67 bedrockExecutionRole : iam . Role
@@ -15,7 +16,7 @@ export class OpenSearchResources extends Construct {
1516 super ( scope , id )
1617
1718 this . collection = new OpenSearchCollection ( this , "OsCollection" , {
18- collectionName : `eps-vec- ${ this . node . addr } ` , // eps-assist-vector-db
19+ createHash : `eps-assist-vector-db- ${ createHash ( "md5" ) . update ( this . node . addr ) . digest ( "hex" ) . substring ( 0 , 8 ) } ` ,
1920 principals : [
2021 props . bedrockExecutionRole . roleArn ,
2122 props . createIndexFunctionRole . roleArn ,
You can’t perform that action at this time.
0 commit comments