hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.31k stars 1.73k forks source link

google_compute_vpn_tunnel doesn't support local subnetworks for policy based routing #2516

Open bluemalkin opened 5 years ago

bluemalkin commented 5 years ago

Affected Resource(s)

Terraform version

Terraform v0.11.10
+ provider.google v1.19.1
+ provider.google-beta v1.19.0

Description

The resource google_compute_vpn_tunnel doesn't support selecting a list of local subnetworks which you can do via the GCP console.

correct

local_traffic_selector only supports a list of network ranges and renders:

tf

Since I use secondary_ip_range on my google_compute_subnetwork resources, I need to self_link to them rather than adding manually all the ranges.

bluemalkin commented 5 years ago

In addition with Local IP ranges, I cannot add more than 1 range. Invalid value for field 'resource.localTrafficSelector': ''. Multiple traffic selectors are not supported for IKEv1 However this appears to be a GCP limitation, not terraform, hence it would be great to add Local subnetworks support.

sanghaniJ commented 1 year ago

Hence, in order to support localSubnetworksusing Terraform, it needs to be supported via API.

sanghaniJ commented 1 year ago

b/262349088