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.25k stars 1.7k forks source link

Support for export of routes w/ public IPs in google_compute_network_peering_routes_config #9559

Open rglenn-accenture opened 3 years ago

rglenn-accenture commented 3 years ago

Community Note

Description

There is support in gcloud for importing/exporting public routes, but this support is not available in the Terraform provider.

Affected Resource(s)

Potential Terraform Configuration

resource "google_compute_network_peering_routes_config" "my_peering" {
  project                             = var.project_id
  peering                             = var.peering_name
  network                             = var.network_name
  import_custom_routes                = true
  export_custom_routes                = true
  import_custom_routes_with_public_ip = true
  export_custom_routes_with_public_ip = true
}

References

c2thorn commented 3 years ago

exportSubnetRoutesWithPublicIp and exportSubnetRoutesWithPublicIp exists in https://cloud.google.com/compute/docs/reference/rest/v1/networks