Last active
July 22, 2018 19:39
-
-
Save mvsusp/e855bb2a6dc9cb7cffda4ed6bbffe9b2 to your computer and use it in GitHub Desktop.
How to create an AWS SageMaker endpoint for predictions - creating the endpoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
MODEL_NAME=half-plus-three-v1 | |
ENDPOINT_CONFIG_NAME=half-plus-three-config-v1 | |
ENDPOINT_NAME=half-plus-three | |
PRODUCTION_VARIANTS="VariantName=Default,ModelName=${MODEL_NAME},"\ | |
"InitialInstanceCount=1,InstanceType=ml.c4.large" | |
aws sagemaker create-endpoint-config --endpoint-config-name ${ENDPOINT_CONFIG_NAME} \ | |
--production-variants ${PRODUCTION_VARIANTS} | |
aws sagemaker create-endpoint --endpoint-name ${ENDPOINT_NAME} \ | |
--endpoint-config-name ${ENDPOINT_CONFIG_NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment