- Newest
- Most votes
- Most comments
Hello
You are currently experiencing an issue where endpoints created using SageMaker Jump Start are not deleted.
The Inference component that is connected to the endpoint remains, and it occurs this issue.
You can resolve this issue in the following order through AWS CLI:
- (if necessary) AWS CLI Update
[+] Install or update the latest version of AWS CLI
- List and Delete the Endpoint Configurations
aws sagemaker list-endpoint-configs
aws sagemaker delete-endpoint-config --endpoint-config-name <config_name>
- List the Endpoints
aws sagemaker list-endpoints
- List the inference components
aws sagemaker list-inference-components
If you want to filter only the endpoint-associated inference component, you can use the option like below:
aws sagemaker list-inference-components --endpoint-name <endpoint_name>
- Delete the inference component
aws sagemaker delete-inference-component <component_name>
It will take a minute or two to completely delete it.
You can check whether it is deleted with the command in step4 (list the inference component).
- Delete the endpoint
aws sagemaker delete-endpoint --endpoint-name <endpoint_name>
Plus, you can also use boto3
to follow these steps.
If I have missed anything or answered wrong, please feel free to ask me again. Also you have any questions, comment please!
Hello ! I'm trying to delete an inference component. But everytime I'm trying to delete the inference component after 2-3 minutes, when I check again I receive failure.
{ "InferenceComponents": [ { "CreationTime": "2024-02-03T19:15:04.464000+02:00", "InferenceComponentArn": "arn:aws:sagemaker:eu-central-1:904977793552:inference-component/dev-epostbox-v1-summarization-inference-0", "InferenceComponentName": "dev-epostbox-v1-summarization-inference-0", "EndpointArn": "arn:aws:sagemaker:eu-central-1:904977793552:endpoint/dev-epostbox-v1-summarization-model", "EndpointName": "dev-epostbox-v1-summarization-model", "VariantName": "AllTraffic", "InferenceComponentStatus": "Failed", "LastModifiedTime": "2024-02-04T08:46:45.171000+02:00" } ] }
How should I proceed? Thanks, Alex
I have the same issue, any update on how to fix it?
Relevant content
- asked 8 months ago
- Accepted Answerasked 9 months ago
- Accepted Answerasked 3 years ago
- asked 5 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
Thank you very much. You saved my day.
Point 5 is missing the --inference-component-name flag. Should be aws sagemaker delete-inference-component --inference-component-name <component_name>