Skip to content

Instantly share code, notes, and snippets.

@mvsusp
Last active July 22, 2018 19:39
Show Gist options
  • Save mvsusp/e855bb2a6dc9cb7cffda4ed6bbffe9b2 to your computer and use it in GitHub Desktop.
Save mvsusp/e855bb2a6dc9cb7cffda4ed6bbffe9b2 to your computer and use it in GitHub Desktop.
How to create an AWS SageMaker endpoint for predictions - creating the endpoint
#!/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