Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jantman/awslimitchecker

A script and python package to check your AWS service limits and usage via boto3.
https://github.com/jantman/awslimitchecker

aws python

Last synced: 24 days ago
JSON representation

A script and python package to check your AWS service limits and usage via boto3.

Awesome Lists containing this project

README

        

awslimitchecker
===============

.. image:: https://img.shields.io/pypi/v/awslimitchecker.svg
:target: https://pypi.python.org/pypi/awslimitchecker
:alt: PyPi package version

.. image:: http://jantman-personal-public.s3-website-us-east-1.amazonaws.com/pypi-stats/awslimitchecker/per-month.svg
:target: http://jantman-personal-public.s3-website-us-east-1.amazonaws.com/pypi-stats/awslimitchecker/index.html
:alt: PyPi downloads

.. image:: https://img.shields.io/github/forks/jantman/awslimitchecker.svg
:alt: GitHub Forks
:target: https://github.com/jantman/awslimitchecker/network

.. image:: https://img.shields.io/github/issues/jantman/awslimitchecker.svg
:alt: GitHub Open Issues
:target: https://github.com/jantman/awslimitchecker/issues

.. image:: http://www.repostatus.org/badges/1.1.0/active.svg
:alt: Project Status: Active - The project has reached a stable, usable state and is being actively developed.
:target: http://www.repostatus.org/#active

.. image:: http://badges.gitter.im/jantman/awslimitchecker.png
:alt: gitter.im chat
:target: https://gitter.im/awslimitchecker/Lobby

.. image:: https://img.shields.io/conda/v/conda-forge/awslimitchecker
:alt: Conda
:target: https://anaconda.org/conda-forge/awslimitchecker

Master:

.. image:: https://api.travis-ci.com/jantman/awslimitchecker.svg?branch=master
:target: http://travis-ci.com/jantman/awslimitchecker
:alt: travis-ci for master branch

.. image:: https://codecov.io/github/jantman/awslimitchecker/coverage.svg?branch=master
:target: https://codecov.io/github/jantman/awslimitchecker?branch=master
:alt: coverage report for master branch

.. image:: https://readthedocs.org/projects/awslimitchecker/badge/?version=latest
:target: https://readthedocs.org/projects/awslimitchecker/?badge=latest
:alt: sphinx documentation for latest release

Develop:

.. image:: https://api.travis-ci.com/jantman/awslimitchecker.svg?branch=develop
:target: http://travis-ci.com/jantman/awslimitchecker
:alt: travis-ci for develop branch

.. image:: https://codecov.io/github/jantman/awslimitchecker/coverage.svg?branch=develop
:target: https://codecov.io/github/jantman/awslimitchecker?branch=develop
:alt: coverage report for develop branch

.. image:: https://readthedocs.org/projects/awslimitchecker/badge/?version=develop
:target: https://readthedocs.org/projects/awslimitchecker/?badge=develop
:alt: sphinx documentation for develop branch

A script and python module to check your AWS service limits and usage, and warn when usage approaches limits.

Users building out scalable services in Amazon AWS often run into AWS' `service limits `_ -
often at the least convenient time (i.e. mid-deploy or when autoscaling fails). Amazon's `Trusted Advisor `_
can help this, but even the version that comes with Business and Enterprise support only monitors a small subset of AWS limits
and only alerts *weekly*. The new Service Quotas service can also help with this, but relies on CloudWatch alarms per-limit to notify
you when you approach your limits; this cannot easily scale to the hundreds of current service limits. awslimitchecker provides a command line
script and reusable Python package that queries your current usage of AWS resources and compares it to limits (hard-coded AWS defaults that you
can override, API-based limits where available, Service Quotas data where available, or data from Trusted Advisor where available), notifying
you when you are approaching or at your limits.

Full project documentation for the latest release is available at `http://awslimitchecker.readthedocs.io/en/latest/ `_.

Status
------

awslimitchecker is mature software, with approximately 13,000 downloads per month and in daily use at numerous organizations.

Development status is being tracked on a board at waffle.io: https://waffle.io/jantman/awslimitchecker

What It Does
------------

- Check current AWS resource usage against AWS Service Limits
- Show and inspect current usage
- Override default Service Limits (for accounts with increased limits)
- Compare current usage to limits; return information about limits that
exceed thresholds, and (CLI wrapper) exit non-0 if thresholds are exceeded
- Define custom thresholds per-limit
- where possible, pull current limits from Trusted Advisor API
- where possible, pull current limits from each service's API (for services that provide this information)
- where possible, pull current limits from the Service Quotas service
- Supports explicitly setting the AWS region
- Supports using `STS `_ to assume roles in other accounts, including using ``external_id``.
- Optionally refresh Trusted Advisor "Service Limits" check before polling
Trusted Advisor data, and optionally wait for the refresh to complete (up to
an optional maximum time limit). See
`Getting Started - Trusted Advisor `_
for more information.
- Optionally send current usage and limit metrics to a metrics store, such as Datadog.
- Optionally send warning/critical alerts to notification providers, such as PagerDuty.

Requirements
------------

**Either Docker in order to run via the** `docker image `__, **or:**

* Python 3.5 or newer.
* Python `VirtualEnv `_ and ``pip`` (recommended installation method; your OS/distribution should have packages for these)
* `boto3 `_ >= 1.4.6 and its dependency `botocore `_ >= 1.6.0.

Alternatively, awslimitchecker may be installed through `conda `_ with ``conda install -c conda-forge awslimitchecker``. This will automatically install the required dependencies as well.

Installation and Usage
-----------------------

See `Getting Started `_.

Credentials
-----------

See `Credentials `_.

Getting Help and Asking Questions
----------------------------------

See `Getting Help `_.

For paid support and development options, please see the
`Enterprise Support Agreements and Contract Development `_
section of the documentation.

There is also a `gitter.im chat channel `_ for support and discussion.

Changelog
---------

See `Changelog `_.

Contributions
-------------

Pull requests are most definitely welcome. Please cut them against the **develop** branch. For more information, see
the `development documentation `_. I'm
also happy to accept contributions in the form of bug reports, feature requests, testing, etc.

License
-------

awslimitchecker is licensed under the `GNU Affero General Public License, version 3 or later `_.
This shouldn't be much of a concern to most people; see `Development / AGPL `_ for more information.