Comments (15)
Exactly in the same boat here, managed to get to the same point as you did.
from ember-deploy-redis.
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.
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.
@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.
Oh, you need to tunnel a tunnel. Hmmm. The addon can't do that at the moment.
from ember-deploy-redis.
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.
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.
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.
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.
Hooray! Maybe a PR for docs?
from ember-deploy-redis.
#16 Hopefully its all good
from ember-deploy-redis.
Excellent will try that later today!
from ember-deploy-redis.
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.
Can you post what your config ended up being? and are you getting any errors?
from ember-deploy-redis.
I was able to get it to work. It was our security groups. :)
from ember-deploy-redis.
Related Issues (13)
- 0.0.3 doesn't upload index.html HOT 6
- Unhandled rejection Error: ERR invalid DB index HOT 3
- Setting random revision key blows up current revision HOT 3
- Multiple hosts
- Stash checksum and/or timestamp in Redis HOT 3
- using ssh tunneling with encrypted private key HOT 4
- Notify deployment
- Mention compatibility with the latest ember-cli-deploy in the README HOT 1
- Changing code of the ember app does not change the checksum for the redis key HOT 3
- support ssh-tunneling HOT 2
- Allow for configuration of redis connection via URL HOT 6
- improve error messages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-deploy-redis.