Provision RDS

Overview

This section presents the steps to provision the RDS instance and prepare the basic backend connectivity settings.

Implementation steps

  1. Before creating the database, open RDS > Subnet groups to prepare a DB subnet group for the private subnets.

RDS step 0.1

  1. Create the subnet group lunchsync-rds-subnet, describe it clearly for LunchSync RDS, and choose lunchsync-vpc.

RDS step 0.2

  1. Select the two private subnets in ap-southeast-1a and ap-southeast-1b, then add them to the subnet group.

RDS step 0.3

  1. Review the subnet group list and confirm that lunchsync-rds-subnet is in Complete status.

RDS step 0.4

  1. Open Databases and choose Create database to start provisioning PostgreSQL.

RDS step 1

  1. Choose PostgreSQL, use Standard create / Full configuration, pick a Dev/Test style template, and keep the deployment Single-AZ.

RDS step 2

RDS step 3

  1. Set DB instance identifier = lunchsync-db, use lunchsync as the master username, and let AWS Secrets Manager manage the credentials.

RDS step 4

RDS step 5

  1. Choose instance class db.t3.micro, storage type gp3, then configure connectivity with lunchsync-vpc, subnet group lunchsync-rds-subnet, Public access = No, and security group rds-sg.

RDS step 6

RDS step 7

  1. Review the additional configuration, backup, and maintenance settings, then submit the database request.

RDS step 8

  1. When lunchsync-db reaches Available, record the :5432 endpoint, the secret ARN created by RDS, and confirm that the database is not publicly accessible.

RDS step 9