Connect a RDS database with DataGrip

less than 1 minute read

After creating the bastion host and RDS instance(in a private subnet), you might want to connect to the database with a client such as DataGrip. But since the RDS instance is in a private subnet(the general rule is to not allow database access directly from the internet), a few more steps are needed to connect to the database with a remote client.

The first step is to connect to the database like usual: datagrip-1

The second step is to use SSH key to setup SSH: datagrip-2

Link 1, link 2