how to enable route propagation in the routing tables

1

I hope all is well. I am working on a project to move our infrastructure to terraform and have the Infrastructure as Code. Route propagation is not working in our test account however I copied everything that we have in our main account. I know there is no limitation for routings and it should be a technical config issue. 3 VPCs (Prod, Dev, Stage) are going to route traffic to the internet through 1 VPC (DMZ) and 1 IGW in the DMZ. In the main account the routing is working fine but in the test account the propagation does not change to enabled ("yes").

Arash
asked 2 years ago2720 views
1 Answer
0

Thank you for reaching out to AWS,

I understand you would like to enable route propagation to automatically propagate routes to the route tables within your VPC. This would remove the need to manually enter VPN routes to your route tables. You may enable Route Propagation via the Amazon VPC Console or through AWS CLI.

In the Amazon VPC Console:

  • Navigate to Route Tables
  • Select the Route Table, Choose Actions, and Edit Route Propagation
  • Enable the check Box for the Virtual Private Gateway and then Save

In AWS CLI:

  • Using this command will enable route propagation
  • aws ec2 enable-vgw-route-propagation —route-table-id ROUTE-TABLE-ID —gateway-id GATEWAY-ID

The provided link demonstrates these steps for each on how to enable Route Propagation. https://docs.aws.amazon.com/vpc/latest/userguide/WorkWithRouteTables.html#EnableDisableRouteProp

I hope this helps! Please let me know if I can be of further assistance.

Julio_A
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