Hi
I'm looking at : https://github.com/fishtown-analytics/dbt/issues/93 which suggests that once upon a time ssh-host would have been a valid property under a target of profiles.yml where a user can set up an ssh tunnel to connect to the data source.
I would love to be able to use this feature again.
In our case, the scenario is that our data is brought in by stitch in many schemas. I'd like to give local access to a data engineer to some of that data, but that redshift is secured using a data bastion sitting in front.
In our case, we can develop a lot of the scripts locally against postgres, however there are limitations:
Thanks @chrisburrell - I'll have a look at why we removed this in the first place. Hopefully our next iteration of it can avoid whatever pitfalls we encountered last time around :)
@drewbanin - Thanks for the easy workaround
ssh -l $BASTION_USER $BASTION_HOST -p 22 -N -C -L "5439:${REDSHIFT_HOST}:5439";
Then use bash.rc or any other means to run it quickly/constantly
I don't think this is something we're going to want to add to dbt. It's easy enough to do on a user's machine, and the complexity (running a separate background thread/process) makes it not worth it. There are lots of good open source ssh tunnel tools out there that do a good job of this - closing this.
Most helpful comment
@drewbanin - Thanks for the easy workaround
ssh -l $BASTION_USER $BASTION_HOST -p 22 -N -C -L "5439:${REDSHIFT_HOST}:5439";Then use bash.rc or any other means to run it quickly/constantly