To create a Route Table for your VPC all you need to do is get the VPC Id and then create a route table in it.
To create a route table the command is:
C:\Users\priyj_kumar>aws ec2 create-route-table --vpc-id vpc-0aca683c37231c12f
This will give you the output as follows:-
{
"RouteTable": {
"Associations": [],
"PropagatingVgws": [],
"RouteTableId": "rtb-05f48298823c9731d",
"Routes": [
{
"DestinationCidrBlock": "10.0.0.0/16",
"GatewayId": "local",
"Origin": "CreateRouteTable",
"State": "active"
}
],
"Tags": [],
"VpcId": "vpc-0aca683c37231c12f"
}
}
This way you can create a Route Table in your VPC. Hope it helps.