How to create a route table for a VPC?

0 votes
Can someone help me with the command to create a route table in a VPC?
Feb 21 in AWS by Disha
27 views

1 answer to this question.

0 votes

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.

answered Feb 21 by Priyaj
• 56,540 points

Related Questions In AWS

0 votes
1 answer

How to create subnets in a vpc using boto3?

Here is the simple way of implementing ...READ MORE

answered Dec 4, 2018 in AWS by Shuvodip Ghosh
473 views
0 votes
2 answers

How to create a VPC from scratch in AWS Console?

Creating a VPC from scratch is bit ...READ MORE

answered Feb 20 in AWS by Priyaj
• 56,540 points
265 views
0 votes
1 answer

How to create a VPC using Java SDK?

You can create a VPC using the ...READ MORE

answered Feb 21 in AWS by Priyaj
• 56,540 points
147 views
0 votes
1 answer

How to create a VPC using AWS CLI?

To create an Amazon VPC using AWS ...READ MORE

answered Feb 21 in AWS by Priyaj
• 56,540 points
80 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

How to create a VPC in AWS?

There is another method i.e. creating an ...READ MORE

answered Feb 20 in AWS by Priyaj
• 56,540 points
56 views
0 votes
1 answer