Error when deleting Inference Endpoint in Sagemaker using CLI

0

I am trying to delete my inference endpoint using the AWS CLI because I can't do so via the Studio. However, when I try to list the inference components using

aws sagemaker list-inference-components

command, I am getting an error of 'aws: error: argument operation: Invalid choice'. There does not seem to be a list-inference-components command in the AWS CLI . I tried using boto3 and got into the same error. Can someone please help?

AWS
preguntada hace 4 meses293 visualizaciones
2 Respuestas
0
Respuesta aceptada

Hello.

The command exists.
Also, if you are running the command with options, check that the options are set correctly.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/list-inference-components.html

Please upgrade the AWS CLI version to the latest version and try again.
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

Or try setting the AWS CLI execution environment to CloudShell.
https://docs.aws.amazon.com/cloudshell/latest/userguide/welcome.html

profile picture
EXPERTO
respondido hace 4 meses
profile pictureAWS
EXPERTO
revisado hace 4 meses
0

It works after upgrading the AWS CLI - thanks!

AWS
respondido hace 4 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas