Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Created February 7, 2022 21:21
Show Gist options
  • Save Voronenko/194799d7a81d893e988906003d3cbb4b to your computer and use it in GitHub Desktop.
Save Voronenko/194799d7a81d893e988906003d3cbb4b to your computer and use it in GitHub Desktop.
AWS subnets PS1
# For AWS services, you can get the IP addresses using the following URL:
# https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html
#You can also filter the IP address using the APIs. I am sharing one such example for filtering with power shell:
Get-AWSPublicIpAddressRange -ServiceKey AMAZON -Region ap-south-1 | where {$_.IpAddressFormat -eq "Ipv4"} | select IpPrefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment