All technological notes.
RDS
Relational Database ServiceIt allows to create databases in the cloud that are managed by AWS
Advantage over using RDS versus deploying DB on EC2
BUT you can’t SSH into your instances
| Protocol | Port |
|---|---|
FTP |
21 |
SSH |
22 |
SFTP |
22 |
HTTP |
80 |
HTTPS |
443 |
| Database | Port |
|---|---|
PostgreSQL |
5432 |
Aurora(PostgreSQL compatible) |
5432 |
MySQL |
3306 |
Aurora(MySQL compatible) |
3306 |
MariaDB |
3306 |
Oracle RDS |
1521 |
MSSQL Server |
1433 |
Helps increase storage on RDS DB instance dynamically
You have to set Maximum Storage Threshold (maximum limit for DB storage)

Read Replicas for read scalability
Network Cost
In AWS there’s a network cost when data goes from one AZ to another
For RDS Read Replicas within the same region, you don’t pay that fee


Use Cases


From Single-AZ to Multi-AZ 启用 multi 的原理:


Managed Oracle and Microsoft SQL Server Database with OS and database customization
RDS vs. RDS Custom
RDS:
Custom:
SSH or SSM Session Manager
Automated backups:
Manual DB Snapshots
Trick: for a RDS used in short period per month.
Restoring a RDS backup or a snapshot creates a new database.
Restoring MySQL RDS database from S3
Encryption
At-rest encryption: 储存是加密
In-flight encryption: between db and clients
TLS-ready by defaultAWS TLS root certificates client-sideAuthentication:
IAM Authentication (Not default): IAM roles to connect to your database (instead of username/pw)Network access:
RDS CustomAudit:
