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, 2019 in AWS by Disha
94 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, 2019 by Priyaj
• 58,120 points

Related Questions In AWS

0 votes
1 answer

How to create a route table using Boto3?

Hi@akhtar, You can create a Route Table in ...READ MORE

answered Oct 10, 2020 in AWS by MD
• 95,180 points
285 views
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
1,992 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, 2019 in AWS by Priyaj
• 58,120 points
1,084 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, 2019 in AWS by Priyaj
• 58,120 points
977 views
0 votes
1 answer
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, 2019 in AWS by Priyaj
• 58,120 points
227 views
0 votes
1 answer

How to create subnets in a VPC in AWS Console?

To create a subnet inside a VPC ...READ MORE

answered Feb 11, 2019 in AWS by Priyaj
• 58,120 points
152 views