Giter VIP home page Giter VIP logo

Comments (15)

tmayr avatar tmayr commented on July 19, 2024

Exactly in the same boat here, managed to get to the same point as you did.

from ember-deploy-redis.

LevelbossMike avatar LevelbossMike commented on July 19, 2024

Haven't tried out ssh-tunneling yet but maybe I'll have time to do this on the weekend.

@tim-evans is using ssh-tunneling and contributed the feature maybe he can jump in?

from ember-deploy-redis.

tim-evans avatar tim-evans commented on July 19, 2024

Sure! What does your config look like for ssh?

Cf.

store: {
  type: 'redis',
  host: 'staging01.blueboxgrid.com',
  port: 6379,
  ssh: {
    username: 'deploy',
    privateKey: '~/.ssh/id_rsa'
  }
}

from ember-deploy-redis.

tmayr avatar tmayr commented on July 19, 2024

@tim-evans The configuration looks exactly like yours, but we need to connect to another domain after the tunnel is set (by default it connects to localhost).

from ember-deploy-redis.

tim-evans avatar tim-evans commented on July 19, 2024

Oh, you need to tunnel a tunnel. Hmmm. The addon can't do that at the moment.

from ember-deploy-redis.

mbasset avatar mbasset commented on July 19, 2024

We are looking to do a similiar think also. Something like:

  staging: {
    store: {
      host: 'internal.redis.server',
      port: 6379,
      ssh: {
        username: process.env['USER'],
        privateKey: '~/.ssh/id_rsa',
        host: 'bastion.server',
        port: 22
      }
    }

from ember-deploy-redis.

tim-evans avatar tim-evans commented on July 19, 2024

For you brave folks who'd like to implement this, I'd look at https://github.com/LevelbossMike/ember-deploy-redis/blob/master/lib/redis-client.js#L23-L59, which sets up the tunnel.

from ember-deploy-redis.

mbasset avatar mbasset commented on July 19, 2024

I looked into that but was unable to get it to resolve the DNS using the tunnel. I'm actually not sure what goes through that tunnel.

from ember-deploy-redis.

tmayr avatar tmayr commented on July 19, 2024

After going over how a tunnel is supposed to work and checking the tunnel-ssh lib, its fairly easy to do, we were just missing a param!

    store: {
      type: 'redis',
      host: '<redis_ip>,
      port: <redis_port>,
      ssh: {
        username: '<ssh_user>',
        privateKey: '<private_key>',
        dstHost: '<elasticache_redis_endpoint>'
      }
    }

from ember-deploy-redis.

tim-evans avatar tim-evans commented on July 19, 2024

Hooray! Maybe a PR for docs?

from ember-deploy-redis.

tmayr avatar tmayr commented on July 19, 2024

#16 Hopefully its all good

from ember-deploy-redis.

mbasset avatar mbasset commented on July 19, 2024

Excellent will try that later today!

from ember-deploy-redis.

mbasset avatar mbasset commented on July 19, 2024

Humm not able to connect using new settings though that may be related to the our AWS VPC security groups. Will investigate more later.

from ember-deploy-redis.

tmayr avatar tmayr commented on July 19, 2024

Can you post what your config ended up being? and are you getting any errors?

from ember-deploy-redis.

mbasset avatar mbasset commented on July 19, 2024

I was able to get it to work. It was our security groups. :)

from ember-deploy-redis.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.