Safely allowing connection to private RDS

,

I am wondering what the best process is for allowing user connection to an rds via Powerbi/Excel without making it public. Would like to set something up more efficiently than RDPing to an ec2 then connecting from there. Is there a standard way for setting an ec2 as a bastion to indirectly connect users to a private RDS?

Maybe using site to site or client vpn to put your consumer in the vpc?

You can create bastion host and use it to ssh tunnel to your rds. You can use ssm instead of ssh to connect to bastion host to avoid making bastion host public

Best way would be to tunnel the traffic via SSM. CDK provides a construct to deploy a bastion host for this purpose: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.BastionHostLinux.html

https://www.strongdm.com/blog/bastion-hosts-with-audit-logging-part-one

SSM and IAM Auth,

This is how I’d set it up. Then create a security group for that user’s source IP/DB port and attach that SG to the database.

This allows the user to work on their own workstation and not a bastion host.

I’d also suggest creating a separate login for that user on the database that grants them rights to only the data they need to see. (This would be more beneficial for multi-tenant database.)

This is what I do for stuff like this, tunnel through SSM.