Skip to content

Instantly share code, notes, and snippets.

@dreampuf
Created February 7, 2022 03:13
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 dreampuf/6b3fa2de1dc698248dccd5b49ee58422 to your computer and use it in GitHub Desktop.
Save dreampuf/6b3fa2de1dc698248dccd5b49ee58422 to your computer and use it in GitHub Desktop.
Export selected AWS region IP CIDR
curl -L https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.region |contains("cn-")) | .ip_prefix'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment