I'm trying to use this very simple command:
import boto3
client = boto3.client('sagemaker-runtime')
listed in the documentation
but i'm getting this error:
UnknownServiceError: Unknown service: 'sagemaker-runtime'. Valid service names are: acm, etc..
My goal is to be able to invoke the endpoint that I've created in Amazon SageMaker.
I'm doing this from a Jupyter notebook in Sagemaker, so I feel like this should work no problem. How do I get it to run here, and outside of the Sagemaker environment?
Amazon SageMaker is a very new service (December 2017).
You will need to update your boto library to use it:
sudo pip install boto --upgrade
sudo pip install boto3 --upgrade
sudo pip install awscli --upgrade
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