Skip to content

Instantly share code, notes, and snippets.

@chewmanfoo
Created October 8, 2018 18:13
Show Gist options
  • Save chewmanfoo/769df3779e8914b8d6ff0372b71c9d52 to your computer and use it in GitHub Desktop.
Save chewmanfoo/769df3779e8914b8d6ff0372b71c9d52 to your computer and use it in GitHub Desktop.
prompt$ aws ec2 describe-route-tables --filters "Name=route-table-id,Values=rtb-0f5e3e513a140d8c5" --query "RouteTables[*].Routes" --region eu-west-1 --profile sabre-as-dev-01
[
[
{
"Origin": "CreateRoute",
"DestinationCidrBlock": "10.179.216.0/24",
"State": "active",
"VpcPeeringConnectionId": "pcx-06756ed4585adc737"
},
{
"Origin": "CreateRoute",
"DestinationCidrBlock": "10.179.221.0/24",
"State": "active",
"VpcPeeringConnectionId": "pcx-0e3e73bcb8cf1d457"
},
{
"Origin": "CreateRoute",
"DestinationCidrBlock": "10.179.222.0/24",
"State": "active",
"VpcPeeringConnectionId": "pcx-054f37125fc5ef6be"
},
{
"GatewayId": "local",
"DestinationCidrBlock": "10.179.196.0/22",
"State": "active",
"Origin": "CreateRouteTable"
},
{
"GatewayId": "vgw-0ca02a820c853326e",
"DestinationCidrBlock": "10.0.0.0/8",
"State": "active",
"Origin": "CreateRoute"
},
{
"GatewayId": "vpce-04d4d0afb2ca00796",
"Origin": "CreateRoute",
"State": "active",
"DestinationPrefixListId": "pl-6da54004"
}
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment