How to associate a route table to a subnet?

0 votes
Can someone help me with the command to associate a route table to a subnet?
Feb 21 in AWS by Disha
9 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

To associate a route table to a subnet all you need to have is your route table id and the subnet id.

The command used for doing that is as follows:

C:\Users\priyj_kumar>aws ec2 associate-route-table --route-table-id rtb-05f48298823c9731d --subnet-id subnet-08f4ee13b627d22bb

This will give you an Association ID.

{
    "AssociationId": "rtbassoc-0ff5de96aa63ef405"
}

This way you can attach a route table to a subnet explicitly. 

answered Feb 21 by Priyaj
• 56,120 points

Related Questions In AWS

+2 votes
2 answers

How do we move a domain from Hostgator to AWS Route 53?

I found this  Before transferring a domain, make ...READ MORE

answered Aug 3, 2018 in AWS by Priyaj
• 56,120 points
534 views
0 votes
1 answer

How to skip headers when reading a CSV file in S3 and creating a table in AWS Athena?

This is a known deficiency. The best ...READ MORE

answered Sep 4, 2018 in AWS by Archana
• 3,770 points
483 views
0 votes
1 answer

How to make a subnet public using AWS Console?

To make a subnet public you need ...READ MORE

answered Feb 11 in AWS by Priyaj
• 56,120 points
22 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to create a route table for a VPC?

To create a Route Table for your ...READ MORE

answered Feb 21 in AWS by Priyaj
• 56,120 points
24 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.