Python SDK

We will not use the AWS-CLI any further in this chapter, but instead switch to the Python SDK. We needed to setup the credentials for the AWS CLI in order for our SDKs scripts to be able to access our AWS account. To use the Python SDK, we need to install the Boto3 library, which comes bundled in the Anaconda distribution. If you use Anaconda as your Python environment, you should already have the boto3 package installed. If not, you can install it using pip with the following:

pip install boto3

Boto3 will use the credentials we configured for the AWS CLI. There’s no need for a specific setup. Boto3 is available for most AWS services. The full documentation is available at https://boto3.readthedocs.io/. Our minimal use of Boto3 ...

Get Effective Amazon Machine Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.