#

AWS postgres SSH TUNNEL

aws
Posted on: August 27th 2020, 2:17:30 pm

In Shell run

ssh -N -i ec2-bastion.pem -L localhost:5432:database-1.cwlfuyniopoi.us-west-1.rds.amazonaws.com:5432 ubuntu@ec2-34-217-99-999.us-west-1.compute.amazonaws.com

then in another shell

psql -U postgres -h localhost -p 5432 -d test-db