What is a is the curl command to make a POST request to sage-maker and receive a ML inference?
If you want to simply send a POST request and check, you can use the postman and in the Authorization tab select the AWS Signature and add the Access and Secret key from the aws account.
But as mentioned it is recommended to use the Sage maker run time client for API call invocations.
This is how I do it (on MacOS):
$ (echo -n '{ INSERT JSON HERE }') | curl -H "Content-Type: application/json" -d @- $ENDPOINT_URL
Rather than using curl, it's recommended that you use the SageMaker Runtime client to send data and get back inferences from a SageMaker Endpoint:
http://docs.aws.amazon.com/sagemaker/latest/dg/API_runtime_InvokeEndpoint.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With