Questions tagged [google-vpc]
243 questions
15
votes
1 answer
Incorrect Service Networking config for instance: xxxx:SERVICE_NETWORKING_NOT_ENABLED
I'm trying to replicate a SQL instance in GCP via terraform. The active instance has a public IP, however subnets from a secondary project are shared with the project hosing the SQL instance, and the SQL instance is associated with the secondary…

NealR
- 10,189
- 61
- 159
- 299
10
votes
4 answers
Can not connect between Cloud Run and Compute engine using Internal IP
I have a service which runs on Cloud Run, and a MYSQL, MongoDB databases on Compute Engine. Currently, I'm using public IP for connect between them, I want to use internal IP for improving performance, but i cant find solution for this problem,…

HoangThang
- 171
- 1
- 11
7
votes
1 answer
Using GCP API Gateway to front a Cloud Run backend with private ingress
I'd like to front my Cloud Run hosted API with API gateway, and only allow access to the Cloud Run URL from API Gateway.
I currently have an API deployed to Cloud Run with "public" ingress and authorization enabled. This works, however I'm curious…

istrupin
- 1,423
- 16
- 32
7
votes
2 answers
(GCP) : Server Error The server encountered a temporary error and could not complete your request. Please try again in 30 seconds
I have created a "Load Balancer" in Google Cloud and connected 2 virtual machines to it. When I send some requests to "Load Balancer", sometimes it gets passed to virtual machines attached to load balancer and sometimes it throws following error…

QASIM JAVED
- 71
- 1
- 4
6
votes
3 answers
Create GCloud VM instance with no VPC
I need to create a Google Compute Engine Virtual Machine instance with no VPC.
For the App environment that I am using, I need to use the Public IP Address directly such as DigitalOcean Droplet, so if I run ifconfig command should show the interface…

joepa37
- 3
- 4
- 21
5
votes
2 answers
Dataflow - Error: Message: Required 'compute.subnetworks.get' permission
Scenario - Running Dataflow jobs on project A using a shared VPC to use the region and subnetwork of host project B
On the service account, I have following permission on both project A and B
Compute Admin
Compute Network User
Dataflow Admin
Cloud…

Krish
- 390
- 4
- 15
5
votes
0 answers
servereless vpc connector fails for specific network every time, but works for 'default'
I'm trying to enable my firebase functions to connect to my mongodb in atlas without allowing all inboud traffic. I've successfully done the peering with mongodb's VPC and the custom vpc I've created.
But no matter what ip range I try the…

SebastianG
- 8,563
- 8
- 47
- 111
4
votes
4 answers
Getting 403 when connecting to a Cloud Run service when using a Serverless VPC Connector
I have a service on Cloud Run (Service A) who is trying to call another service on Cloud Run (Service B). Both the services are in us-east1.
For Service B, Ingress is set to 'Allow internal traffic only' and Authentication is set to 'Allow…

snowman
- 85
- 6
4
votes
1 answer
Google Cloud Run outbound static IP is 169.254.X.X instead of reserved one
I created a Google Cloud Run revision with a Serverless VPC access connector to a VPC Network. The VPC Network has access to the internet via Cloud NAT, to allow the Cloud Run instance to have a static outbound ip address, as described in this…

Frederik Bode
- 2,632
- 1
- 10
- 17
4
votes
1 answer
What is the GCP equivalent of AWS Client VPN Endpoint
We are moving from AWS to the GCP. I used Client VPN Endpoint in AWS to get into the VPC network in the AWS. What is the alternative in GCP which I can quickly setup and get my laptop into the VPC network? If there is no exact alternative, what's…

Sai Chander
- 829
- 1
- 6
- 15
4
votes
1 answer
How can I rename a subnet in gcp?
Is there a way to rename a subnet in gcp? either in console or with terraform.
I rather not drop and recreate the subnet as there are other resources using the subnet.
According to Google docs, you can't change the subnet name once it is…

Stryker
- 5,732
- 1
- 57
- 70
4
votes
2 answers
Terraform - re-use an existing subnetwork to create a cloud sql instance on GCP
I am attempting to create a cloud sql instance on GCP using terraform. I want to use an existing VPC subnetwork created in an earlier step but there does not seem to be a way to refer to it. Instead all examples seem to require a new IP range to be…

user1521320
- 43
- 1
- 5
4
votes
1 answer
Google serverless VPC connector does not access GCE instance with multiple network interfaces
Is there anyway I can connect the Cloud Functions with a VPC connector on default network to a GCE instance with multiple network interfaces where nic0 is someother network and nic1 is default network?
So I have a GCE instance with multiple network…

zubair-0
- 988
- 8
- 15
3
votes
1 answer
Problem invoking a Cloud Function with "Allow internal traffic only" flag from another Cloud Function
I have 2 Google Cloud Function 1 gen, R and C, on the same GCP project.
R is a private function with the "Allow internal traffic only" flag set to true. In the permission tab I give to the Service Account SA the invoker role.
C is a public function…

Marco Mantovani
- 111
- 2
- 7
3
votes
1 answer
Serverless VPC access connector is in a bad shape
Our project is using a Serverless VPC access connector to allow access to DB over private IP from cloud functions and cloud runs. It was working flawlessly for a few months, but today I tried to deploy one of the functions that use such a connector…

mjpolak
- 721
- 6
- 24