/ansible-role-aws

General tasks in AWS

Primary LanguageShellMIT LicenseMIT

Ansible Role AWS

An Ansible role that installs AWSCli and AWS CloudWatch Logs

Build Status Circle CI

Ansible Role that installs and configure AWS CLI on Debian/Ubuntu.

General tasks in AWS

  • This role installs the aws-cli
  • You can use aws-cli to sync s3
  • You can use aws-cli to send logs to cloudwatch

Requirements

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

Installation

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 }

Role Variables

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

Dependencies

None.

Testing

Using Vagrant:

tests/vagrant.sh

Using Docker:

tests/docker.sh

License

MIT / BSD

Author Information

Mauricio Sánchez from Aplyca SAS (http://www.aplyca.com)