RDS (Postgres)Database creation explain the possible Options.

RDS (Postgres)Database creation explain the possible Options.

RDS (Postgres)Database creation explain the possible Options.

RDS (PostgreSQL) Database Creation – Explanation of Possible Options.

Amazon Relational Database Service (RDS) supports PostgreSQL as a managed database service. Below are the possible options when creating an RDS PostgreSQL database.


1. Creating an RDS PostgreSQL Database

Step 1: Navigate to RDS Console

Article content

  1. Open the AWS Management Console.
  2. Go to RDS service.
  3. Click Create database.

Article content

2. Configuration Options in RDS

A. Database Creation Method

  • Standard Create – Allows full customization of settings.
  • Easy Create – AWS chooses default settings for you.

B. Engine Options

  • Engine type: Choose PostgreSQL.
  • Engine version: Select the required version (e.g., PostgreSQL 17.2 R2).

Article content

C. Deployment Options

  • Production (Multi-AZ) – High availability using standby replicas.
  • Dev/Test (Single-AZ) – Cost-efficient, no standby replica.
  • Free Tier – Use RDS Free Tier to develop new applications, test existing applications, or gain hands-on experience with Amazon RD

Article content

D. Database Settings

  • DB Instance Identifier: Unique name for your database.
  • Master Username: Admin username.
  • Master Password: Set a secure password.

Article content

3. Instance Configuration

A. DB Instance Class

  • General Purpose (T3, T4g, M5, M6g) – Balanced performance.
  • Memory Optimized (R5, R6g) – Best for high read/write workloads.

Article content

B. Storage Options

  • Type: General Purpose SSD (gp2/gp3) – Balanced performance. Provisioned IOPS (io1) – High-performance workloads.
  • Storage Auto Scaling: Enables automatic scaling of disk space.

Article content

4. Connectivity & Security

A. VPC and Subnet Group

  • Choose a VPC and ensure subnet groups are configured.

Article content

B. Public Access

  • Yes – Allows access from the internet.
  • No – Private access within the VPC.

C. Security Groups

  • Define inbound rules (e.g., allow PostgreSQL port 5432).

D. IAM Authentication

  • Enables IAM-based authentication for enhanced security.


5. Additional Configurations

A. Database Options

  • DB Parameter Group: Customizes PostgreSQL settings.
  • Option Group: Enables additional database features.

B. Backup & Maintenance

  • Backup Retention Period (1-35 days).
  • Preferred Backup Window – Set specific time for backups.

C. Monitoring & Performance

  • Enhanced Monitoring – Provides real-time database metrics.
  • Performance Insights – Helps analyse database workload.


6. Final Steps

  1. Click Create database.
  2. Wait for the database to be available.

Article content

  1. Connect using the below command :

psql -h <endpoint> -U admin -d mydatabase -p 5432

7. Verify Connection

Once connected, check available databases:

\l

Check tables:

\dt

Exit PostgreSQL:

\q

Article content

Conclusion

✅ Successfully created an RDS PostgreSQL database with the required configurations. ✅ Configured storage, security, and backup settings. ✅ Established best practices for availability and performance.

Would you like Terraform or CLI-based automation for this? 🚀

 

To view or add a comment, sign in

More articles by Jeevan Jyoti Pariyar

Others also viewed

Explore content categories