cloudwatch

Manage the AWS CloudWatch Log Agent
Daniel Dreier

Daniel Dreier

danieldreier

6,594 downloads

6,512 latest version

4.3 quality score

Version information

  • 0.1.1 (latest)
  • 0.1.0
released Jul 3rd 2019
This version is compatible with:
  • Debian
    ,
    RedHat

Start using this module

Documentation

danieldreier/cloudwatch — version 0.1.1 Jul 3rd 2019

puppet-cloudwatch puppet module

Overview

This module installs the AWS CloudWatch log agent and provides a cloudwatch::log defined type for shipping logs into CloudWatch.

Setup

What cloudwatch affects

This will:

  • install Amazon's log tailing agent and set up a service
  • send any logs you've configured it to log into CloudWatch

Setup Requirements

This will only work if you have IAM permissions configured to allow CloudWatch logs to be sent in from a given node. Consult the AWS docs for how to do that.

Beginning with cloudwatch

puppet module install danieldreier-cloudwatch
puppet apply -e 'include ::cloudwatch'
puppet apply -e "cloudwatch::log {'/var/log/messages': }"

Usage

Install the agent by including the ::cloudwatch class, then specify which logs to include with cloudwatch::log resources, like the example above.