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, 2019 in AWS by Disha
756 views

1 answer to this question.

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, 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,932 views
+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
• 58,020 points
5,964 views
0 votes
2 answers

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

Thanks for the answer. This should be clear ...READ MORE

answered Aug 14, 2019 in AWS by athenauserz
11,876 views
0 votes
1 answer
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, 2019 in AWS by Priyaj
• 58,020 points
636 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