Open RoseateSpoonbill opened 2 years ago
I ended up not being able to figure out how to do this locally.
⚠️ THIS DOES NOT WORK ⚠️
This was as far as I got but I couldn't figure out either the right host name or what I was doing wrong in the addition to docker-compose.yaml
airbyte
repository, open your docker-compose.yaml
file and add this at the bottom of the services
top level section
proxy:
container_name: cloud-sql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:1.30.0
volumes:
- ..\{{FULL_PATH_TO_SERVICE_ACCOUNT_JSON_FILE}}:/config
ports:
- 127.0.0.1:5436:5436
command: "/cloud_sql_proxy -instances={{INSTANCE_CONNECTION_NAME}}=tcp:5436 -credential_file=/config/{{SERVICE_ACCOUNT_JSON_FILE_NAME}}"
Start Airbyte
section aboveSources
+ add new source
Postgres
from the dropdown menu5436
Standard
No Tunnel
Set up source
⚠️ This also did not work ⚠️ Run the Cloud SQL Auth proxy in a Docker container (per https://cloud.google.com/sql/docs/postgres/connect-admin-proxy#connecting-docker) as I couldn't figure out
I did get the combo of GCP Compute Engine
and Cloud SQL Auth Proxy
working and have submitted a PR to update https://docs.airbyte.com/deploying-airbyte/on-gcp-compute-engine for that use case: https://github.com/airbytehq/airbyte/pull/12086
How can I connect to a GCP Postgres database as a Airbyte source?
I specifically need this information for these
It would be great if https://github.com/airbytehq/airbyte/blob/master/docs/integrations/sources/postgres.md could be updated with this information
Stretch
For the tutorial to be most helpful for the widest audience, it would probably be best if the tutorial showed this information for all of the other places Airbyte can be deployed to