-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Support json configuration file for service limit overrides #324
Comments
@Mortinke This is supported via the Python API. The example available at https://github.com/jantman/awslimitchecker/blob/master/docs/examples/check_aws_limits.py (which is based on what we're doing at my current employer) shows how to do that with a dictionary of limit and threshold overrides in the Python source. There's also a project that provides a web UI for awslimitchecker: https://github.com/Yipit/awslimits I'm happy to look into adding a bit to the example script if needed, and adding some more links to the example script throughout the documentation to make it easier to find. But unless someone contributes it as a fully-working pull request with complete code coverage, this isn't a code feature that I'm going to implement myself. As far as I know, most or all users that have need of many overrides are using something at least vaguely like the example script linked above, and providing the overrides via the Python API. |
Hi @jantman, thanks for your quick reply. The web UI for awslimitchecker looks interesting, thanks for the link! As already mentioned in #323, separate wrapper scripts for each account will not scale in our company. I'm not a python expert but I can look in other solutions which we currently use e.g. afp-core, SecurityMonkey, aardvark. These tools support configuration files and maybe I'm able to create a pull request for this ticket. |
@Mortinke To clarify, I was suggesting a single wrapper script that parses the configuration file. Why don't we leave this open for now and work on a wrapper that handles multiple accounts with overrides in #323, and in the meantime see if anyone else is interested in merging this into the core. Comments/feedback from others welcome. |
Sounds good! |
Solved with #323! Thanks again! |
Great! Any time! |
It turns out that my employer now has need for this and is willing to let me develop it during my work hours. I'll be merging the JSON overrides file support that's present in the docs/examples/check_aws_limits.py and docs/examples/multi-region_multi-account/ examples into awslimitchecker proper. I'll likely also add support for |
Issue #324 - support setting limit and threshold overrides from local or S3 JSON file
This was merged to master in #427 and released as 7.1.0. The release is now live on PyPI and the Docker image should be live on Docker Hub shortly. |
Feature Request
Support json configuration file for service limit overrides
Feature Description
At the moment, we can override service limits with the
-L
argument specified in "service_name/limit_name=value" format. For 10 services, the command can quickly exceed 200 characters. I'd be grateful if we could specify these limits in a json configuration file something like that:service_limits.json
Supporting S3 files would be a dream, but isn't necessary.
The text was updated successfully, but these errors were encountered: