Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F31494499
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
ema
Dec 30 2019, 9:10 AM
2019-12-30 09:10:57 (UTC+0)
Size
394 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
#!/usr/bin/env python
import requests
ip_ranges = requests.get('https://ip-ranges.amazonaws.com/ip-ranges.json').json()['prefixes']
#amazon_nets = [item['ip_prefix'] for item in ip_ranges if item["service"] == "AMAZON"]
ec2_nets = [item['ip_prefix'] for item in ip_ranges if item["service"] == "EC2"]
print("acl aws_nets {")
for net in ec2_nets:
print('\t"{}";'.format(net))
print("}")
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8275303
Default Alt Text
raw.txt (394 B)
Attached To
Mode
P10016 vcl_aws_nets.py
Attached
Detach File
Event Timeline
Log In to Comment