Skip to content

Instantly share code, notes, and snippets.

@gleeb
Created August 8, 2022 11:56
Show Gist options
  • Save gleeb/0a8d46d708fa964bfd34ad275ddd61bb to your computer and use it in GitHub Desktop.
Save gleeb/0a8d46d708fa964bfd34ad275ddd61bb to your computer and use it in GitHub Desktop.
sagemaker create a real time endpoint
import boto3
sm_client = boto3.client('sagemaker', region_name='us-east-1')
endpoint_name = 'titanic-survival-endpoint'
endpoint_config_name = 'titanic-survival-endpoint-config'
print("EndpointName={}".format(endpoint_name))
create_endpoint_response = sm_client.create_endpoint(
EndpointName=endpoint_name,
EndpointConfigName=endpoint_config_name)
print(create_endpoint_response['EndpointArn'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment