Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation issue: Serverless VPC Access for shared VPC #11667

Open
userbradley opened this issue May 9, 2022 · 0 comments
Open

Documentation issue: Serverless VPC Access for shared VPC #11667

userbradley opened this issue May 9, 2022 · 0 comments

Comments

@userbradley
Copy link

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.

Terraform Version

Affected Resource(s)

Serverless VPC Access on Shared VPC between projects

Terraform Configuration Files

resource "google_vpc_access_connector" "connector" {
  provider = google-beta
  region   = "europe-west2"
  project  = google_project.vpc-cloudrun.name
  name     = "vpc-conn-test-${random_integer.priority.result}"
  max_instances = 3
  min_instances = 2
  subnet {
    name = google_compute_subnetwork.custom_test.name

  }
  machine_type = "f1-micro"
}

Debug Output

Gist

The issue here is that terraform and gcp don't know where the VPC actually sits, as it's shared from a host project

Please update the section about Shared VPC to include a note that you need to add the below in order for the connection to work, as it's not made clear by the error message:

subnet {
    name = google_compute_subnetwork.custom_test.name
    project_id = google_project.vpc-host.name
  }

Let me know if you need further clarification

@userbradley userbradley added the bug label May 9, 2022
@userbradley userbradley changed the title Documentation issue Documentation issue: Serverless VPC Access for shared VPC May 9, 2022
@rileykarson rileykarson added this to the Goals milestone May 16, 2022
modular-magician added a commit to modular-magician/terraform-provider-google that referenced this issue Sep 24, 2024
…s expected (hashicorp#11667)

[upstream:cc2d986b82253ab8d7db13958d56b3c6def2cd71]

Signed-off-by: Modular Magician <[email protected]>
modular-magician added a commit that referenced this issue Sep 24, 2024
…s expected (#11667) (#19620)

[upstream:cc2d986b82253ab8d7db13958d56b3c6def2cd71]

Signed-off-by: Modular Magician <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants