Skip to content

Commit f54e6ca

Browse files
committed
Externalize MODEL_NAME since OS endpoint is slightly different
1 parent 61ca84b commit f54e6ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/cloudformation/geocore-semantic-search-with-opensearch.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ Resources:
228228
OS_ENDPOINT: !Ref OSEndpoint
229229
OS_SECRET_ID: !Ref OSSecretID
230230
SAGEMAKER_ENDPOINT: !Ref SagemakerEndpoint
231+
MODEL_NAME: !If
232+
- IsProd
233+
- minilm-knn
234+
- minilm-pretrain-knn
231235
PackageType: Zip
232236
Role: !GetAtt InvokeSagemakerLambdaExecutionRole.Arn
233237
Events:

0 commit comments

Comments
 (0)