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?

posta 2 anni fa1492 visualizzazioni
3 Risposte
0
Risposta accettata

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
con risposta 2 anni fa
  • 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
con risposta 2 anni fa
  • 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).

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande