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?

已提问 2 年前1492 查看次数
3 回答
0
已接受的回答

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
已回答 2 年前
  • 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
已回答 2 年前
  • 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).

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则