Login to your AWS account first. If you haven't created an AWS account yet, go ahead and create one here, and then follow the steps below:
-
Upon logging in, navigate to the RDS Dashboard by searching
RDS
and clicking the first result. -
Select the following configurations:
Create database
Standard create
- Engine Options:
PostgreSQL
- Version:
10.16
- Templates:
Free tier
- DB Instance Identifier
accept default
(or provide your own) - Master username
postgres
(or provide your own) - Master password:
elephant
(or something easy to remember) - Public access:
Yes
-
Click
Create database
at the bottom of the page. If the creation is successful, you should see the following screen:
-
In a minute you should have finished creating your database. Navigate to
Connectivity & security
and copy theEndpoint
URL. It will look similar todatabase-1.chfy3h5800ty.us-west-2.rds.amazonaws.com
-
Before we're able to connect to the RDS, we must make it accessible by modifying the default Security Group generated by AWS. To do so, click on the link under the
VPC security groups
subheading that looks something likedefault (sg-7626fd0b)
. Note: this link also in theConnectivity & security
section. -
Click on
Inbound rules
thenEdit inbound rules
to navigate to the Edit inbound rules page. -
Set Inbound rules to Type:
PostgreSQL
, and Source:Anywhere
, then clickSave rules
-
Open DBeaver and create a new connection to PostgreSQL and click
Next
.
- Fill in the following configurations for your new connection, supplying the endpoint you copied from AWS and the username and password configured in AWS. Instead of
localhost
your Host: will be the pasted endpoint from AWS.
- Click
Test Connection
and if it's successful you should see a message that saysConnected
and will list the server it's running on along with the driver. ClickFinish
.
Congratulations! You have successfully connected to your Amazon RDS where any persisted data will be managed and stored on Amazon's cloud.