Amazon Relational Database Service (Amazon RDS) is a web service designed to simplify setting up, operating, and scaling relational databases in the AWS Cloud. It offers cost-efficient, resizable capacity for industry-standard relational databases while managing common database administration tasks.
Compared to self-managed database deployments, Amazon RDS offers several key advantages:
While AWS generally recommends provisioning databases across at least two Availability Zones (AZs) for enhanced resilience, this workshop will deploy a single database instance in one subnet within a single AZ to minimize costs.
A database subnet group is a collection of subnets (typically private) that you create in a VPC and that you then designate for your database instances. By using a database subnet group, you can specify a particular VPC when creating database instances.
1. In the AWS Console search bar, type “RDS” and select Aurora and RDS from the dropdown, or navigate to Services > Database > Aurora and RDS.
2. In the RDS Dashboard, select Subnet groups from the left navigation panel, then click Create DB subnet group.
3. Configure the subnet group settings:
fcj-db-subnet-group
fcj-db-subnet-group
4. Configure the Availability Zones and subnets:
5. Scroll to the bottom and click Create.
6. Verify creation: Confirm that the fcj-db-subnet-group appears in your subnet groups list with the correct VPC and subnets associated.
The DB subnet group ensures your database instances are deployed in the isolated database subnets across multiple Availability Zones for high availability.
1. In the RDS Dashboard, select Databases from the left navigation panel, then click Create database.
2. Configure the database creation method and engine:
3. Configure the template:
4. Configure the database settings:
fcj-db
5. Configure credentials settings:
postgres
)fcj-db-123
fcj-db-123
In production environments, use a strong password and consider using AWS Secrets Manager for credential management.
6. Configure instance specifications:
7. Configure connectivity:
8. Configure security:
9. Configure additional settings:
FCJMomentum
10. Review your configuration and click Create database.
11. Verify creation: The database will show a status of “Creating” initially. Wait for the status to change to “Available” before proceeding to the next section.
Database creation typically takes 5-10 minutes. You can monitor the progress in the RDS console. Make note of the database endpoint once it’s available, as you’ll need it for application configuration.