Skip to content

google_service_networking_connection has no options for importing/exporting custom routes #8396

@red8888

Description

@red8888

Affected Resource(s)

  • google_service_networking_connection

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Following docs for configuring cloudsql with private IP: https://cloud.google.com/sql/docs/postgres/configure-private-ip#vpn

I need to update the private IP peering connection with custom routes: https://cloud.google.com/vpc/docs/using-vpc-peering#update-peer-connection

gcloud compute networks peerings update PEERING_NAME \
    --network=NETWORK \
    [--import-custom-routes] \
    [--export-custom-routes] \
    [--export-subnet-routes-with-public-ip] \
    [--import-subnet-routes-with-public-ip]

I see no options for doing anything with custom routes in the resource documentation: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_networking_connection

This is the specialized google_service_networking_connection resource used for setting up private IP NOT the google_compute_network_peering resource.

b/374161912

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions