Remove local target from AWS Route Table

0

The documentation from https://docs.aws.amazon.com/vpc/latest/userguide/WorkWithRouteTables.html sais: "To delete a route from a route table using the console" [...] "4. Choose the delete button (x) to the right of the route that you want to delete."

Clicking on the button (x) within the "Target"-field I can only chose another target but cannot remove the whole destination. Some destinations like gateways offer a "Remove"- Button at the right which works as expected. However this doesn't exist for "local" targets.

With my test-account I can easily create another Route Table and drop the existing one. However, in a production-system there are too many dependencies, so I would assume that it should somehow be possible to remove local routing targets without taking the risk to mess up the whole infrastructure?

asked 2 years ago1458 views
3 Answers
0
Accepted Answer

Every time you add a new CIDR to your VPC - it's auto added to the Main route table and subsequent route tables you create with target being "local" - which you could only modify the target as mentioned earlier. For any other destination not in your VPC you should be able to remove it; you "can't" add a destination (routes outside your VPC) in your route table with target being "local" to begin with, since you will encounter an error. Please share an illustration of the routes in your table along with the CIDR of your VPC

profile pictureAWS
Jules_N
answered 2 years ago
  • Tore everything down a couple of times. Tried to reproduce why I came to my previous statement - and couldn't. So as a consequence I have to accept your answer as being correct... :-)

0

You can only modify routes that you've added. The local routes (VPC CIDR) are auto added in the "Main" table, which you can't remove, but can change the destination to be instance GWLBe, Network Interface...

profile pictureAWS
Jules_N
answered 2 years ago
  • Hi Jules, thanks for your answer. I read similar explanations before, however that doesn't apply to this case. The route wasn't auto added, I added it myself after creating a new CIDR (in order to reproduce/clarify the effect/situation I have seen on another system).

0

Hi Jules, thanks for your answer. I read similar explanations before, however that doesn't apply to this case. The route wasn't auto added, I added it myself after creating a new CIDR (in order to reproduce/clarify the effect/situation I have seen on another system).

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions