Setup
1. Run a bastion/jump host. Provision a small server (for example an EC2 instance) in a public subnet of the VPC that contains your database. The bastion needs:- A public IP or hostname reachable from the internet.
- A user account for Lightdash to log in as (for example
ec2-userorubuntu). - Network access to the database on its port (Postgres is typically
5432, Redshift5439) — usually a VPC security group rule that lets the bastion’s security group reach the database’s security group on that port.
- SSH Remote Host: the bastion’s public hostname or IP.
- SSH Remote Port: the bastion’s SSH port, usually
22. - SSH Username: the Linux user Lightdash logs in as.
~/.ssh/authorized_keys for the SSH user you configured above. Authentication is SSH public-key auth — no separate certificate is needed.
4. Point the database at its private hostname. Keep the Host field on the connection set to the private database endpoint (the one that resolves inside the VPC). Lightdash resolves and connects to it from the bastion, not from the public internet.
5. Allow Lightdash to reach the bastion. Add Lightdash’s static IP addresses to the bastion’s security group on the SSH port you configured.