Skip to content

Instantly share code, notes, and snippets.

@adhorn
Created May 3, 2018 11:37
Show Gist options
  • Select an option

  • Save adhorn/77b8b32bb99e15dcc0b30aec418387f0 to your computer and use it in GitHub Desktop.

Select an option

Save adhorn/77b8b32bb99e15dcc0b30aec418387f0 to your computer and use it in GitHub Desktop.
# Get the routing info from the VPC.
aws ec2 describe-route-tables --filters "Name=vpc-id,Values=vpc-xxxxxxx" --region us-east-1
{
"RouteTables": [
{
"Associations": [
{
"Main": true,
"RouteTableAssociationId": "rtbassoc-4112743e",
"RouteTableId": "rtb-xxxxxx"
}
],
"PropagatingVgws": [],
"RouteTableId": "rtb-xxxxxx",
"Routes": [
{
"DestinationCidrBlock": "10.0.0.0/16",
"GatewayId": "local",
"Origin": "CreateRouteTable",
"State": "active"
},
{
"DestinationPrefixListId": "pl-02cd2c6b",
"GatewayId": "vpce-xxxxxx",
"Origin": "CreateRoute",
"State": "active"
}
],
"Tags": [],
"VpcId": "vpc-xxxxxx"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment