-
Notifications
You must be signed in to change notification settings - Fork 3
12._Route_Tables
Ahmad Abdo edited this page Jun 26, 2017
·
1 revision
$ awsm listRouteTables --help
NAME:
awsm listRouteTables - List VPC Internet Gateways
USAGE:
awsm listRouteTables [arguments...]
ARGUMENTS:
[search] - The keyword to search for
awsm listRouteTables
This will list all Route Tables, the output should look similar to this:
$ awsm listRouteTables
+---------+----------------+-----------------+--------------+--------------+
| NAME | ROUTE TABLE ID | ASSOCIATIONS | VPC ID | REGION |
+---------+----------------+-----------------+--------------+--------------+
| Public | rtb-a3b5efce | subnet-bdb5efd0 | vpc-abb5efc6 | us-east-1 |
| Private | rtb-a5b5efc8 | main | vpc-abb5efc6 | us-east-1 |
| Private | rtb-63323801 | main | vpc-551c1637 | us-west-2 |
| Public | rtb-e1fdf783 | subnet-016a5f75 | vpc-551c1637 | us-west-2 |
| | rtb-c07d93a9 | main | vpc-961ef0ff | ca-central-1 |
| | rtb-2376964a | main | vpc-d56989bc | eu-west-2 |
| Private | rtb-2255254a | main | vpc-20552548 | eu-west-1 |
| Public | rtb-2555254d | subnet-3a552552 | vpc-20552548 | eu-west-1 |
+---------+----------------+-----------------+--------------+--------------+
$ awsm createRouteTable --help
NAME:
awsm createRouteTable - Create a Route Table
USAGE:
awsm createRouteTable [arguments...]
ARGUMENTS:
name - The name of the route table
vpc - The vpc to create the route table in
awsm createRouteTable example-route-table vpc-abb5efc6
This will create a new Route Table named example-route-table
in the VPC matching the term vpc-abb5efc6
, the output should look similar to this:
$ awsm createRouteTable example-route-table vpc-abb5efc6
△ Created VPC Route Table [rtb-d09e00a8] named [example-route-table] in [us-east-1]!
$ awsm associateRouteTable --help
NAME:
awsm associateRouteTable - Associate a Route Table to a Subnet
USAGE:
awsm associateRouteTable [arguments...]
ARGUMENTS:
routetable - The route table to attach
subnet - The subnet to associate the route table with
awsm associateRouteTable example test
This will associate the Route Table matching the term example
to the Subnet in the same VPC as the Route Table matching the term test
, the output should look similar to this:
$ awsm associateRouteTable example test
✓ Found Subnet [subnet-5ee16537] named [test] with a class of [] in [ca-central-1]!
✓ Found Route Table [rtb-82b036eb] name [example-route-table] in [ca-central-1]!
▶ Are you sure you want to associate this Route Table to this Subnet?
◀ y
△ Associated Route Table [rtb-82b036eb] to Subnet [subnet-5ee16537] !
✓ Done!
$ awsm disassociateRouteTable --help
NAME:
awsm disassociateRouteTable - Disassociate a Route Table from a Subnet
USAGE:
awsm disassociateRouteTable [arguments...]
ARGUMENTS:
routetable - The route table to disassociate
subnet - The subnet to disassociate the route table from
awsm disassociateRouteTable example test
This will disassociate the Route Table matching the term igw-6e846b07
from the subnet matching the term test
, the output should look similar to this:
$ awsm disassociateRouteTable example test
✓ Found Subnet [subnet-5ee16537] named [test] with a class of [] in [ca-central-1]!
✓ Found Route Table [rtb-82b036eb] name [example-route-table] in [ca-central-1]!
▶ Are you sure you want to disassociate this Route Table from this Subnet?
◀ y
△ Disassociated Route Table [rtb-82b036eb] named [example-route-table] from Subnet [subnet-5ee16537] named [test]!
✓ Done!