Skip to content

Add AWS region IP size script#17

Open
Yassinbrine wants to merge 1 commit into
PatMyron:masterfrom
Yassinbrine:add-aws-region-size-script-11
Open

Add AWS region IP size script#17
Yassinbrine wants to merge 1 commit into
PatMyron:masterfrom
Yassinbrine:add-aws-region-size-script-11

Conversation

@Yassinbrine
Copy link
Copy Markdown

Summary

  • adds aws_region_ip_sizes.py to fetch AWS ip-ranges.json
  • collapses overlapping IPv4 CIDRs with the standard library before counting addresses by region
  • documents the helper near the existing IP-addresses-per-region section

Fixes #11

Bounty

Submitting under PatMyron's standing bounty program. PayPal: https://paypal.me/ShaimaaElkadi

Testing

  • python -m py_compile aws_region_ip_sizes.py
  • local sample check for overlapping CIDRs: 10.0.0.0/24 plus 10.0.0.0/25 counts as 256, not 384
  • git diff --cached --check

I did not run the live AWS download from this environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

region sizes

1 participant