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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠