Creates a route table for the specified VPC.

Request Parameters#

Required parameters#

  • VpcId — The ID of the VPC.

    • Type: String

    • Required: Yes

Optional parameters#

  • TagSpecification.N — The tags assigned to the resource when it is created.

Response Elements#

  • requestId — The request ID

    • Type: String

  • routeTable — The route table.


c2-ec2 CreateRouteTable VpcId <vpc_id>

c2-ec2 CreateRouteTable VpcId <vpc_id> TagSpecification.0.ResourceType route-table \
                        TagSpecification.0.Tag.0.Key "tag_key" TagSpecification.0.Tag.0.Value "tag_value"