JumpBox servers allow you to connect to AWS resources that are not publicly accesible, like ElastiCache instanes.
How to create servers
To create to a jumpbox server you need the add public key of the SSH key that you want to use to connect to the server. Keys are managed at the account level, and you can have as many keys as you need.
Generate a public key:
ssh-keygen -t rsa # Complete the requested information
Copy you public key andd add it to your Python Dpeloy account:
cat ~/.ssh/id_rsa.pub # >>> ssh-rsa AAAA...
In you accounts's dashboard, create a new jumpbox server with your new key and deploy the changes.
Connect to your new servas a the user
ec2-userusing the IP address that will be shown in you application's dashboard:
How to forward ports
Forwarding ports allows you to connect to your AWS resources locally. If you wanted to connect to a redis cluster found at
example-cluster.a0aaaa.0001.euw3.cache.amazonaws.com:6379, you would do so like this:
# To forward connections to your a redis cluster: ssh -L 127.0.0.1:6379:example-cluster.a0aaaa.0001.euw3.cache.amazonaws.com:6379 [email protected] # You can now connect locally: redis-cli -h 127.0.0.1
The URLs to the different AWS instances are available as part of the environment variables in each application's dashboard.