HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

Whitelist Travis CI to Google Cloud SQL

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
googlewhitelistsqltraviscloud

Problem

I'm having trouble working out how exactly I can whitelist my TravisCI runner for testing a python adaptor talking to a Google Cloud SQL service. The Cloud SQL will only accept connections from IPs that have been whitelisted ahead of time, though I'm not sure how reserve one from Travis (if such a thing is even possible). How should I go about this?

Solution

You can find the IP addresses of the Travis build machines here. If you add the IP addresses of the Travis infrastructure you use to your whitelisted IPs in Cloud SQL it should work. Keep in mind these IP addresses can change in the future though.

Context

StackExchange DevOps Q#3928, answer score: 2

Revisions (0)

No revisions yet.