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 information1
Copy you public key andd add it to your Python Deploy account:
cat ~/.ssh/id_rsa.pub # >>> ssh-rsa AAAA...1
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:
ssh [email protected]1
JumpBox servers are deployed with Amazon Linux 2open in new window in a t2.micro EC2 instanceopen in new window.
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.