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
623 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,020 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,460 points
1,895 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 5, 2018 in AWS by Shuvodip Ghosh
4,567 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,020 points
3,863 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,020 points
2,749 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,020 points
1,228 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,020 points
1,054 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP