Connect a RDS database with DataGrip- 1 min
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:
The second step is to use SSH key to setup SSH: