DEV Community

Cover image for A Step-by-Step Guide to Setting Up a PostgreSQL Database on Amazon AWS
Millicent A. Obwanda
Millicent A. Obwanda

Posted on

A Step-by-Step Guide to Setting Up a PostgreSQL Database on Amazon AWS

Are you looking to set up a PostgreSQL database on Amazon AWS? Follow these simple steps to get started.

Step 1: Sign in to Your Account.

  • Begin by signing in to your Amazon AWS account. If you don't have an account yet, you can sign up for one. Image description

Step 2: Navigate to the Search Bar and Type "RDS"

  • Once you're logged in, go to the search bar and type "RDS" to access the Amazon RDS (Relational Database Service) console.

Step 3: Click on the First Option.

  • From the search results, click on the first option to access the RDS dashboard. Image description

Step 4: Access Databases in the Left Sidebar.

  • On the next page, locate the left sidebar and click on the "Databases" option.

Image description

Step 5: Create a Database.

  • Click on the "Create Database" button to initiate the database creation process.

Image description

Step 6: Choose a Database Creation Method >> Standard Create

Image description

Under "Choose Database Creation Method," select "Create Database."

Step 7: Select PostgreSQL as Engine

Image description

Under Engine options, choose "PostgreSQL" as the database engine. Leave engine Version as default.
Image description

Step 8: Choose a Free Tier Template

  • Scroll down to the Templates section and select "Free tier" for testing or personal projects to avoid unnecessary charges. Image description

Step 9: Configure Name and Password

  • Enter the necessary details like Name and Password for your database.

Image description

Step 10: Leave Instance Configuration as Default

  • Leave the Instance Configuration settings as default.

Image description

Step 11: Leave Storage Settings as Default.

  • Keep the Storage settings as default.

Image description

Step 12: Configure Connectivity and Port.

  • Leave connectivity as default, but remember to configure public access. Specify the port number under Additional Configurations.

Image description

Step 13: Leave VPC Security Groups as Defaults

  • Keep the VPC Security groups as default.

Image description

Step 14: Additional Configurations

Image description

Step 15: Leave Encryption and Maintenance as Default

  • Leave encryption and maintenance settings as default.

Image description

Step 16: Create Database.

  • Click on the "Create Database" button to start the database creation process.

Image description

Step 17: View Credentials

  • Once your database is created successfully, click on "View Credentials."

Image description

Step 18: Copy the Endpoint and Port Number

  • Copy the endpoint and port number from the database table. You now have a fully functional PostgreSQL database on Amazon AWS!

Image description

Conclusion:
Congratulations! You've successfully set up a PostgreSQL database on Amazon AWS. If you have any further questions or need assistance, feel free to reach out. Happy coding!

Top comments (0)