A script and python module to check your AWS service limits and usage, and warn when usage approaches limits.
Project description
Master:
Develop:
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)
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for awslimitchecker-11.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b1d1dd9d251fd8b989110e7c078b8ba29c5c53dafe822ad25adff2eafae468e |
|
MD5 | 3f13955d0be8f3995c4fa45e748e97c2 |
|
BLAKE2b-256 | 5456bf3705e2087e74d81d72240ded071edf757f11f15399d102670bbdb86ed8 |