Skip to content

Instantly share code, notes, and snippets.

@juliensimon
Created July 26, 2018 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliensimon/75b72a45ce5a219c34cbcb7e46ddbd79 to your computer and use it in GitHub Desktop.
Save juliensimon/75b72a45ce5a219c34cbcb7e46ddbd79 to your computer and use it in GitHub Desktop.
smdeploy-2.py
timestamp = time.strftime('-%Y-%m-%d-%H-%M-%S', time.gmtime())
endpoint_name = job_name_prefix + '-ep-' + timestamp
print('Endpoint name: {}'.format(endpoint_name))
endpoint_params = {
'EndpointName': endpoint_name,
'EndpointConfigName': endpoint_config_name,
}
endpoint_response = sagemaker.create_endpoint(**endpoint_params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment