-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vpn route propagation should be on aws_vpn_gateway resource type #3424
Comments
I agree with @ringods on this one. I'm building my VPCs out, including routing tables, via module where there is not yet any knowledge of VPN gateways. I then selectively create my VPNs and it seems logical that it would be here that I would create the association with my routing tables. Interested in getting some feedback on this one. Thanks. |
Thanks for the report - this logic makes sense to me. |
Being able to pass in a set of RouteTableIds at VGW creation time would be great. Another option would be to create a new resource that is the route propagation. So you can create the VGW and Route Tables whenever and then determine propagation independently later if you want. |
+1 |
+1 - similar to several folks above, we create VPCs in modules and come back later and add VPNs in modules - making it difficult to retrospectively update the route table association to propagate the VPN routes. |
I am working to configure an AWS Direct Connect link with a Virtual Private Gateway that I would like to have propagate its routes to the VPC routing table (AWS API). It sounds like this is the right place to request that feature in Terraform! |
After configuring propagation on the route table in the AWS UI, I ran Sorry for the noise. Hope it helps another n00b 😊 |
+1 same workflow configuring direct connect with vpn redundancy |
+1 whilst having the "propagating_vgws" argument when creating a route_table helps. It only makes sense if you have your VGW's created at the time you are creating a route table. We're running into the same problem as DjxDeaf whilst working with modules. We have a core module that is systematically creating subnets and other components of our VPC. Certain VPC environments have VGW/VPN tunnel setups. Currently there is no way to 'add-on' this "VPNGatewayRoutePropagation" at the time of creation of your VGW. |
+1 Any plans of addressing this issue in near future? |
I'm currently also running into this issue. |
Hi everyone! Sorry for the long silence here. I reviewed the API and Terraform code around the VPN gateway associations, and learned that although enabling and disabling the propagation are separate actions in the API, reading the setting is done by reading the route table, since the data comes from the It would seem therefore that AWS considers this to be a property of the route table, which I suppose makes sense if you consider that the propagation behavior adds new routes to the route table, and so both of the sources of route data (the static However, I can definitely see the argument that this approach is non-ideal for Terraform, since it forces the config creating the resource to "know about" the VPN connection, rather than the other way around. Were we starting from scratch here, I'd consider making Doing that requires breaking a little the behavior of the existing |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hello,
In the AWS provider, I have the impression that the vpn route propagation functionality is implemented on the wrong resource type. Currently it is on
aws_route_table
.I am building an infrastructure with multiple VPCs. As an example, take a software lifecycle example where you have a
staging
and aproduction
VPC. They are stored as environments on Atlas.These VPC's have the following resources each, constructed from the same module but with different arguments:
aws_vpc
aws_internet_gateway
aws_subnet
s, each in a different AZaws_subnet
s, each in a different AZaws_route_table
aws_route_table
aws_route_table_association
sbut not an
aws_vpn_gateway
. I definitely don't want one attached to myproduction
VPC.Now I want to connect my network to the
development
VPC, so I create a separate Terraform setup, import the remote state fordevelopment
and hook up aaws_vpn_gateway
to it. So far so good, but I can't modify the privateaws_route_table
anymore for route propagation.The documentation for EnableVgwRoutePropagation reads:
The actor seems to be the VGW, rather than the route table. Can this option be added to the
aws_vpn_gateway
resource type?Ringo
The text was updated successfully, but these errors were encountered: