Using Airbyte on Google Compute Engine with configuration in Google Cloud SQL #29379
joseph-maddox
started this conversation in
Show and tell
Replies: 2 comments
-
And if you want to make all those changes using a bash script (in my case, using a
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks a lot @joseph-maddox! @RealChrisSean check out this tutorial to use secure connection external database on Google Cloud. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Documenting this here in case it helps future-me or someone else in the community. (Also, a shout-out to the engineers on Airbyte office-hours who gave me some helpful pointers and ideas. 👏)
If you want to run Airbyte on a GCE VM with its configs in an external Cloud SQL Postgres instance, you'll need to add a Google Cloud SQL Proxy container to the docker-compose environment to make your config database accessible to Airbyte. Running the proxy on the host doesn't appear to be enough (probably due to some esoterica of Docker networking).
Replace the
db
service indocker-compose.yaml
with the following:Update the
.env
to reflect the following:This setup assumes that a service account JSON key (for a service account with the
cloudsql.client
role) is stored in a file namedairbyte-sa.json
in the root Airbyte folder (withdocker-compose.yaml
,run-ab-platform.sh
, etc.)Beta Was this translation helpful? Give feedback.
All reactions