sgr cloud tunnel
sgr cloud tunnel [OPTIONS] REPOSITORY_OR_LOCAL_ADDRESS
Start tunnel to query a private data source. The tunnel will run in the foreground providing Splitgraph Cloud access to the data source for the duration of the process.
To provide access to a private data source during repository creation,
host:port address, e.g.:
sgr cloud tunnel localhost:5432
Then, create an external repository with the host and port output by the command.
To query existing external repositories requiring a tunnel to access their backing data source, run:
sgr cloud tunnel namespace/repo
Note that for this to work, the
splitgraph.yml definition of the
repository must include
--remote TEXT: Name of the remote registry to use.
-f, --repositories-file PATH: