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.32k stars 1.72k forks source link

Add IPv6 Support for google_compute_route #16023

Open kris-fogle opened 1 year ago

kris-fogle commented 1 year ago

Community Note

Description

The google_compute_route resource currently only supports IPv4 destinations. This requires manual creation of static routes for IPv6 destinations.

New or Affected Resource(s)

google_compute_route

Potential Terraform Configuration

resource "google_compute_route" "default" {
  name              = "internet-ipv6"
  dest_range    = "::/0"
  network          = google_compute_network.network.name
  next_hop_gateway = "default-internet-gateway"
  ip_type           = IPv6
}

References

b/312432785

SarahFrench commented 1 year ago

Note from triage: From looking at the API docs there doesn't seem to be a new field required to support IPv6. Instead we may need to change the validation on some fields like dest_range. More investigation needed!