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 a Python package using the --user
option, the package will be installed in the directory .local/bin
, so make sure that you have that in your path
.
Just to verify that the installation worked properly, type the following command:
aws --version
You should see...