brennerm / aws-quota-checker

Keep an eye on your AWS quotas before you hit their limits
https://pypi.org/project/aws-quota-checker/
MIT License
84 stars 36 forks source link

Multiple AWS accounts support + SG count fix + route count fix #46

Open alikhanich opened 1 year ago

alikhanich commented 1 year ago

Hi, this is the proposal to add multiple AWS account support via ~/.aws/ folder and config files. Currently it breaks backwards compatibility, but I can fix it, if you are OK with those changes.

Routes were not calculated propely, Quota in AWS only applied to user created routes, not all routes. We also had routes created by VPG, and this is not goes into quota. Also security groups count was not working as it should. AWS data structure is misleading, for example if you have multiple network masks for sg['IpPermissions'] it actually counts as number of networks not as one rule upon quota.

alikhanich commented 1 year ago

@brennerm @kedoodle @mgreschl @dbermuehler