

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: RDS: Relational Database Service
incomplete
2: Create a PostgreSQL Database
incomplete
3: Connect to Your Database
incomplete
4: Connect App to Database
incomplete
5: RDS Storage and IOPS
incomplete
6: RDS Backups
incomplete
7: Read Replicas
incomplete
8: Cleanup
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Amazon RDS (Relational Database Service) is AWS' managed database service. If you don't want to manage/host a database server yourself, you can let AWS handle provisioning, backups, patching, and monitoring. You get a database you can connect to with (nearly) zero operational overhead.
That said, RDS can get very expensive, especially if you have lots of data or need to operate in multiple AZs. But for many applications, the cost of a managed service is reasonable, and far outweighed by its benefits.
Boot.dev's site is powered by a managed database service! It used to be on AWS RDS, and now its on Google Cloud SQL, but they're basically the same thing.
Before we can create a database, we need to set up the networking infrastructure.
This EC2 instance will serve as an application server that we'll use to test connections to the database.
Whew! That's a lot of setup. If you just completed the EC2 chapter, you might already have most of this in place. If so, feel free to reuse it.
Cost check: A t3.micro instance costs about $0.0104 per hour (~$7.60 per month). The public IP is free when attached to a running instance.
I recommend checking your work in the AWS CLI with these commands:
# Check your VPC
aws ec2 describe-vpcs --filters Name=tag:Name,Values=patientping
# Check your subnets
aws ec2 describe-subnets --filters Name=tag:Name,Values=patientping-public-a
aws ec2 describe-subnets --filters Name=tag:Name,Values=patientping-private-a
# Check your instance
aws ec2 describe-instances --filters Name=tag:Name,Values=patientping-web-v2
# Make sure your instance has a public IP
aws ec2 describe-instances --filters Name=tag:Name,Values=patientping-web-v2 --query 'Reservations[*].Instances[*].PublicIpAddress'
Once you have your VPC, subnets, IGW, and test instance ready, answer the multiple choice question. We'll be creating an RDS database shortly.