2 Answers
- Newest
- Most votes
- Most comments
0
Hi,
To re-use an existing SageMaker endpoit, you have to use the UpdateEndpoint API: see https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UpdateEndpoint.html
Deploys the new EndpointConfig specified in the request, switches to using newly created
endpoint, and then deletes resources provisioned for the endpoint using the previous
EndpointConfig (there is no availability loss).
When SageMaker receives the request, it sets the endpoint status to Updating. After
updating the endpoint, it sets the status to InService. To check the status of an endpoint,
use the DescribeEndpoint API.
Note
You must not delete an EndpointConfig in use by an endpoint that is live or while the
UpdateEndpoint or CreateEndpoint operations are being performed on the endpoint.
To update an endpoint, you must create a new EndpointConfig.
If you delete the EndpointConfig of an endpoint that is active or being created or
updated you may lose visibility into the instance type the endpoint is using. The endpoint
must be deleted in order to stop incurring charges.
For Python, the API is detailled here: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sagemaker/client/update_endpoint.html
Best,
DIdier
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Thanks, but are you sure about that? I don't want to update the endpoint (ie change it's config), all I want is to tell the Jupyter notebook (or my ML app for that matter) that there is an endpoint created by JumpStartModel.deploy() before and now go and use it. It doesn't seem right that I would have to update_endpoint() every time the app that wants to use it starts..?