AWS RDS PostgreSQL Setup
· 2 min read
RDS
AWS RDS is a managed service provided by AWS to run a relational database. We will see how to setup a postgres
instance using AWS RDS.
- Log in to your
AWS
account. - Go to
Services -> RDS
- Click on
Create Database
, - In the
Create Database
prompt, chooseStandard Create
option withPostgreSQL
as engine type. - In the
Template
section chooseFree Tier
and type in aDB Identifier
,Master username
andMaster password
. Make sure to note these down, you will need this to connect to your database. - In the
Storage
section disableautoscaling
and selectDo not create standup instance
inAvailability & durability
section as this is only for a simple sample. - In the
Connectivity
section expand theAdditional Connectivity configuration
and make sure to choseYes
forPublicly accesible
section. - In the
Database Authentication
section choosePassword Authentication
for password access, expand theAdditional Configuration
section and write aninitial database name
and disable unnecessary services. The database name is important, since you will use this to connect to your database. - Click on the create database.
- In the
RDS
database section, wait for the status of your database to turn toAvailable
. - Once the status becomes
Available
click on the database identifier to take you to the databaseSummary
page. - Here in the
Connectivity & Security
section note down theendpoint and port
details and in theConfiguration
section note down theDB name
.
By the end of the set up you need to know
- Your database is
Available
. Endpoint
,port
andDB name
from step 12.Username
andpassword
from step 5.