shadysamir
shadysamir

Reputation: 712

GCP Firewall allow connection from cloud build to compute engine instance

We have a GCE VM with MySQL server. Firewall rules deny incoming connections from external IP. Our cloud build process requires to perform DB migrations so it needs to connect to MySQL from Cloud Build. I want to add a Firewall rule to allow only cloud builder to connect through 3306 from the external IP address.

Cloud Build does not run on internal network so there is no way to connect from the internal IP.

I tried adding a rule for service account scope but I can't see cloud build service account in the list.

Upvotes: 1

Views: 1123

Answers (1)

Joss Baron
Joss Baron

Reputation: 1524

Currently, as mentioned by @guillaume blaquiere, there is a Feature Request. I recommend you to follow it (star) to receive all the updates there. Seems that the FR has been sent to the Cloud Build engineering team and they will evaluate it. Also note that there is not yet an ETA of the implementation.

Upvotes: 1

Related Questions