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.73k forks source link

Allow "subnetwork" field of google_dataflow_job to accept self_links and partial URIs #5592

Open jcanseco opened 4 years ago

jcanseco commented 4 years ago

Community Note

Description

The subnetwork field of google_dataflow_job seems inconsistent with other Terraform reference fields. Currently, the field needs to take the form of regions/REGION/subnetworks/SUBNETWORK, whereas other Terraform reference fields typically take the form of a self_link, partial URI, or shortname. For references to a network for example:

We'd like to make an enhancement request that makes the subnetwork field take a format that is more consistent with other reference fields.

New or Affected Resource(s)

b/359302926

ggtisc commented 1 month ago

Currently the subnetwork argument of google_dataflow_job only accepts the next format as shown in terraform registry:

regions/REGION/subnetworks/SUBNETWORK

For shared VPC networks it needs to have this format: googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/subnetworks/SUBNET_NAME

roaks3 commented 1 month ago

Note: previous PR attempt was closed due to being stale