Setting up the Amazon Web Services CLI

We also need to install the AWS command-line interface, which will save us a lot of time when deploying serverless functions and also when creating S3 buckets.

The installation is quite simple, as it can be installed via pip, and the AWS CLI has support for Python 2 and Python 3 and runs on different operating systems, such as Linux, macOS, and Windows.

Open a terminal and type the command:

pip install awscli --upgrade --user

The upgrade option will tell pip to update all the requirements that are already installed, and the --user option means that pip will install the AWS CLI in our local directory, so it won't touch any library that is installed globally on our system. On Linux systems, when installing ...

Get Python Programming Blueprints 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.