I am looking for the simplest solution for updating a Sagemaker Endpoint. The only thing I want to change is the docker image (to update the code).
I am building the new Docker image on my computer, and then I upload it on ECR (I plan to do this in a CI/CD in the near future).
From my understanding, it seems that the simplest way is to create a new EndpointConfig
, then call the UpdateEndpoint
API to switch the endpoint to the new config, then delete the old EndpointConfig
. Does anyone know a simpler way? Or can anyone confirm that this is the simplest approach to doing this?
My solution is to use
boto3 sagemaker client
which has the update_enpoint method.Here is a pseudo code in python
docker image