Skip to content

Instantly share code, notes, and snippets.

@estahn
Created April 4, 2023 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estahn/3bc4165706f517b26bcf75ee21d33ecd to your computer and use it in GitHub Desktop.
Save estahn/3bc4165706f517b26bcf75ee21d33ecd to your computer and use it in GitHub Desktop.
Windows AD Named Locations
https://ip-ranges.amazonaws.com/ip-ranges.json
jq -r '.prefixes[] | select(.service=="EC2") | .ip_prefix' ip-ranges.json | awk 'sub("$", "\r")' > aws-ec2-ip-ranges.txt

Upload aws-ec2-ip-ranges.txt

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