Skip to content

Commit 9d13cd8

Browse files
author
Bob Strahan
committed
Differentiate KB name by vector store, to avoid conflict exception when updating stack to change vector stores
1 parent a463e0e commit 9d13cd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

options/bedrockkb/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ Resources:
771771
VectorKnowledgeBaseConfiguration:
772772
EmbeddingModelArn:
773773
Fn::Sub: arn:${AWS::Partition}:bedrock:${AWS::Region}::foundation-model/${pEmbedModel}
774-
Name: !Sub "${AWS::StackName}"
774+
Name: !Sub "${AWS::StackName}-OpenSearchServerless"
775775
RoleArn: !GetAtt KnowledgeBaseServiceRole.Arn
776776
StorageConfiguration:
777777
Type: OPENSEARCH_SERVERLESS
@@ -795,7 +795,7 @@ Resources:
795795
Properties:
796796
ServiceToken: !GetAtt S3VectorManagerFunction.Arn
797797
ResourceType: S3VectorsKnowledgeBase
798-
Name: !Sub "${AWS::StackName}"
798+
Name: !Sub "${AWS::StackName}-S3Vectors"
799799
Description: "Bedrock Knowledge Base with S3 Vectors"
800800
RoleArn: !GetAtt KnowledgeBaseServiceRole.Arn
801801
EmbeddingModelArn: !Sub "arn:${AWS::Partition}:bedrock:${AWS::Region}::foundation-model/${pEmbedModel}"

0 commit comments

Comments
 (0)