June 2020
Intermediate to advanced
410 pages
9h 52m
English
The boto library looks up the necessary credentials in the ~/.aws/credentials file. There are two different ways to ensure that the credentials file is configured properly.
It is possible to use the AWS CLI tool. Alternatively, this can be done with a text editor of your choice by creating a file with the following structure:
[default]aws_access_key_id = [YOUR_KEY_HERE]aws_secret_access_key = [YOUR_SECRET_ACCESS_KEY_HERE]
Now that you've created the file with the necessary credentials, boto will be able to work against your AWS environment. Since Ansible uses boto for every single communication with AWS systems, this means that Ansible will be appropriately configured, even without you have to change any Ansible-specific configuration. ...