Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aws ec2 describe-regions |
- jq -r ".Regions[] | .RegionName" |
- ForEach-Object {
- $vpcCidrs = @()
- } {
- aws ec2 describe-vpcs --region=$_ |
- jq -r " .Vpcs[] | .CidrBlock" |
- ForEach { if ($_ -ne "172.31.0.0/16") { $vpcCidrs += $_ } }
- } {
- $vpcCidrs
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement