An Ansible role that installs AWSCli and AWS CloudWatch Logs
Ansible Role that installs and configure AWS CLI on Debian/Ubuntu.
- This role installs the aws-cli
- You can use aws-cli to sync s3
- You can use aws-cli to send logs to cloudwatch
Use hash behavior for variables in ansible.cfg See example: https://github.com/Aplyca/ansible-role-aws/blob/master/tests/ansible.cfg See official docs: http://docs.ansible.com/intro_configuration.html#hash-behaviour
Using ansible galaxy:
ansible-galaxy install aplyca.AWS
You can add this role as a dependency for other roles, add the role to the meta/main.yml file of your own role:
dependencies:
- { role: aplyca.AWS }
See default variables: https://github.com/Aplyca/ansible-role-aws/blob/master/defaults/main.yml
** Add user for AWS S3 Profile **
aws:
profiles:
user:
aws_access_key_id: "THISISTHEUSERACCESSKEY"
aws_secret_access_key: "THISISTHEUSERSECRETACCESSKEY"
region: us-east-1
ouput: json
None.
Using Vagrant:
tests/vagrant.sh
Using Docker:
tests/docker.sh
MIT / BSD
Mauricio Sánchez from Aplyca SAS (http://www.aplyca.com)