How to Check AWS Limit and Usage
AWS limit checker
It is a command line tool to check AWS resources limit and its current usage. It have the following feature:- 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
- Supports explicitly setting the AWS region
- Supports using STS to assume roles in other accounts, including using external_id.
Video Tutorial:
Requirements:
- Python 2.6 through 3.5 (it should work, but is no longer tested, with PyPy and PyPy3).
- Python VirtualEnv and pip (recommended installation method; your OS/distribution should have packages for these)
- boto3 >= 1.2.3
Installation:
virtualenv limitchecker
source limitchecker/bin/activate
pip install awslimitchecker
Credentials:
Credentials would be picked up from Boto conf (~/.aws/credentials or ~/.aws/config)Permissions:
The account credentials being used should have enough access or should have the policy generated by the following command:awslimitchecker --iam-policy
How To Use:
Help options:awslimitchecker --help
Listing Supported Services:
awslimitchecker -s
List Default Limit(Ignoring limit overrides):
awslimitchecker --list-defaults
Checking Limits:
awslimitchecker -l
Checking Current Usage:
awslimitchecker -u
More options and examples can be found here.
0 comments:
Post a Comment