CloudWatch Alarms Manager

pypi travis doc pyup

Easy way to create default CloudWatch Alarms.

CWAM is creating default alarms associated with default metrics for different kind of AWS resources.

Installation

Install using pip:

$ pip install cwam

Requirements

  • Python 2.6, 2.7, 3.3, 3.4, or 3.5
  • An AWS account

CWAM

Resources supported

  • ELB
  • ALB
  • RDS
  • Kinesis
  • ElasticCache

Human interaction

At any time, a human can modify an alarm value created by CWAM. To make sure CWAM is not overriding that value again, the alarm description field needs to be updated with a string different from Created by Script.

CLI

CLI Authentication

Via environment variables:

$ export AWS_ACCESS_KEY_ID="aws_access_key_id"
$ export AWS_SECRET_ACCESS_KEY="aws_access_secret_key"
$ export AWS_SESSION_TOKEN="aws_session_token"
$ export AWS_DEFAULT_REGION="us-east-1"
$ cwam --conf ~/.cwam/conf.yml elb create -t /path/to/template.yml

Via (–conf/-c) option:

Edit ~/.cwam/conf.yml

aws:
  aws_access_key_id: aws_access_key_id
  aws_access_secret_key: aws_access_secret_key
  aws_session_token: aws_session_token
  aws_default_region: aws_default_region
$ cwam --conf ~/.cwam/conf.yml elb create -t /path/to/template.yml

Via CLI options:

$ cwam ----aws-access-key-id aws_access_key_id \
--aws-access-secret-key aws_access_secret_key \
--aws-session-token aws_session_token \
--aws_default_region us-east-1 elb create -t /path/to/template.yml

Subcommands

History

View the changelog

License