You can use SageMaker APIs - https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DeleteEndpoint.html to delete the endpoint and https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html. to create an endpoint. This an be automated either using SageMaker Pipelines or a Lambda function.
Here are a few resources towards that:
I was able to create the endpoint using the "create_endpoint" method and following one of the links provided.
def create_endpoint(endpoint_name, config_name): """ Create SageMaker endpoint with input endpoint configuration. Args: endpoint_name (string): Name of endpoint to create. config_name (string): Name of endpoint configuration to create endpoint with. Returns: (None) """ try: sagemaker.create_endpoint( EndpointName=endpoint_name, EndpointConfigName=config_name ) except Exception as e: print(e) print('Unable to create endpoint.') raise(e) name = 'name-of-the-endpoint' config = 'name-of-the-endpoint-config' #this one has to exist on the Endpoint configuration list on sagemaker create_endpoint(name, config)
Edited by: hugoflores on Aug 17, 2021 9:36 AM
Tracking the lineage between Amazon SageMaker endpoint model and Model Monitor captured dataAccepted AnswerEXPERTasked 2 years ago
Cloudformation Deployment for Serverless Sagemaker Model Endpointasked 6 months ago
How to invoke the SageMaker model endpoint directly from PostMan without Lambda and API gateway setup
I want to deploy my model as a Serverless inferenceasked 3 months ago
SageMaker Multi Model endpoint creation fails while creating for model built on container sagemaker-scikit-learn:0.23-1-cpu-py3asked 6 months ago
Yolo5 model deployment into SageMaker endpointasked 3 months ago
Invoke the SageMaker model endpoint directly from PostMan without Lambda and API gateway setup
Failing to create multi-model endpointasked 2 years ago
Does SageMaker Multi-Model Endpoint support SageMaker Model Monitor?Accepted AnswerEXPERTasked 3 years ago
Create endpoint from PythonAccepted Answerasked a year ago