Skip to content

pahmadi8740/ansible-role-cloudwatch-agent

 
 

Repository files navigation

ansible-role-cloudwatch-agent

GitHub Build Status Total alerts Language grade: Python

This is an Ansible role that installs and enables the Amazon CloudWatch Agent systemd service.

Note that for an EC2 instance to successfully run the CloudWatch Agent, it must be started with an instance role that includes the "CloudWatchAgentServerPolicy" policy. See here for more details.

See here for details on configuring the Amazon CloudWatch Agent.

Note that this Ansible role makes use of the json_patch Ansible module, which is proposed for inclusion into the main Ansible project. (For more information about what JSON Patch is, see here.) A copy of the relevant piece of Python code from that repository is included in the library directory, so there is no extra action required by the user.

Requirements

None.

Role Variables

None.

Dependencies

None.

Example Playbook

Here's how to use it in a playbook:

- hosts: ec2
  become: yes
  become_method: sudo
  roles:
    - cloudwatch-agent

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

This project is in the worldwide public domain.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

Author Information

First Last - jeremy.frasier@trio.dhs.gov

About

An Ansible role for installing Amazon CloudWatch Agent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 78.0%
  • Python 22.0%