Automating with Amazon Web Services
In many organizations, cloud providers are used widely, while in others, they are just being introduced. However, in one way or another, you will probably have to deal with a cloud provider while doing your job. AWS is the biggest and oldest, and is perhaps something you will have to work with.
Installation
To be able to use Ansible to automate your AWS estate, you’ll need to install the boto3
library. To do so, run the following command:
$ pip install boto3
As for collections, at the moment, there are two collections to interact with AWS services: community.aws
and amazon.aws
. In many cases, you will need both of them, since many features of the former have not yet been implemented in the latter:
$ ansible-galaxy collection install community.aws amazon.aws
Now that you have all the necessary software installed, you can set up authentication.
Authentication
The boto
library looks up the necessary credentials in the ~...