Skip to main content

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

Templates samples

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

Usage: cwam [OPTIONS] COMMAND [ARGS]...

Options:
  -d, --debug                     Debug mode.
  -p, --pretty                    Prettify JSON output.
  -k, --aws-access-key-id TEXT    AWS Access Key ID.
  -s, --aws-access-secret-key TEXT
                                  AWS Secret Access Key.
  -t, --aws-session-token TEXT    AWS Secret Access Key.
  -r, --aws_default_region TEXT   AWS Region.
  --version                       Show the version and exit.
  -h, --help                      Show this message and exit.

Commands:
  alb
  elasticache
  elb
  kinesis
  rds
Documentation
History

View the changelog

Authors
License
Copyright (c) 2018 Instacart <quentin@instacart.com>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

History

1.0.0 (2018-05-17)

  • First release on PyPI.

Metadata

Release files for cwam 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cwam 2.0
File Size Uploaded
cwam-2.0.tar.gz 24.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cwam 2.0
File Interpreter ABI Platform
cwam-2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 45.6 kB

Release files / cwam-2.0.tar.gz

Download URL cwam-2.0.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d9cd6909b44670e6d11d5ab3ef44609d815f43b85d2ce42c44f88d5c7f73fd64
BLAKE2b-256 checksum
How to use checksums
00b15738a6fa5e33cb2de1e837d28fb149fdaac0b7b4c10dd149f8bc815b229a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

Release files / cwam-2.0-py2.py3-none-any.whl

Download URL cwam-2.0-py2.py3-none-any.whl
Size 20.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
573812ee5770a96461107e5751e547b3d430e6d01cb0c5e79b963a8d69f79b59
BLAKE2b-256 checksum
How to use checksums
300ae60be7b0496446c381e265d7a24920b8eacc26dd2fb8ff6c70bc0a0995a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

Release history Release notifications | RSS feed

This release

2.0 This release

2 release files

1.0.0

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page