- Newest
- Most votes
- Most comments
I'm facing a bug made me can not delete inference endpoint and I'm still be charged. the error says "Cannot delete endpoint with inference component associated. Please delete inference component and try it again.". I can not find any help. Really tired.
See: https://docs.aws.amazon.com/sagemaker/latest/dg/realtime-endpoints-delete-resources.html and https://repost.aws/questions/QUEiuS2we2TEKe9GUUYm67kQ. A likely situation is that you have a real time endpoint running, and you need to delete it.
If you are using the AWS CLI, you can list your endpoints, and then delete them, as follows. You will also need to set the region (e.g. REGION="us-east-1"
):
REGION="..." aws sagemaker --region $REGION list-endpoints --output text aws sagemaker --region $REGION delete-endpoint --endpoint-name <endpoint-name>
This is painful. I resorted to delete by CLI Open up CloudShell
3 useful commands to list resources
aws sagemaker list-user-profiles
aws sagemaerk list-apps
aws sagemaker list-domains
Delete in sequence: space, app, user and domain
$ aws sagemaker describe-domain --domain-id d-your-domain-id
$ aws sagemaker delete-app --domain-id d-yourdomain-id --app-type JupyterLab --app-name default --space-name jupyter-private
aws sagemaker delete-user-profile --user-profile-name your-user-name
aws sagemaker delete-domain --domain-id d-xxxxxxx
All of the resource listing commands return empty results for me:
[cloudshell-user@ip-DD-DDD-DD-DD ~]$ aws sagemaker list-user-profiles { "UserProfiles": [] } [cloudshell-user@ip-DD-DDD-DD-DD ~]$ aws sagemaker list-apps { "Apps": [] } [cloudshell-user@ip-DD-DDD-DD-DD ~]$ aws sagemaker list-domains { "Domains": [] }
But the endpoint still shows as "Deleting" in Inference > Endpoints.
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
I have an endpoint that is perpetually shown in the UI having status "Deleting". It does not show in the output of the list-endpoints command from the AWS CLI. Attempting to delete the endpoint anyway using the AWS CLI gives an error message.
aws sagemaker delete-endpoint --endpoint-name automl-dm-ep-22-11-47-10 An error occurred (ValidationException) when calling the DeleteEndpoint operation: Could not find endpoint "automl-dm-ep-22-11-47-10".