Instances, Storage & Aurora Serverless
The building blocks: instance classes, storage, parameter groups, and the serverless option.
DB instances
A DB instance is the database server. Like EC2, you choose an instance class (e.g. db.t4g.micro for
dev, db.r7g.large for memory-hungry production work). Storage is EBS-based for RDS, with gp3 SSD the usual
choice, while Aurora uses its own distributed storage layer.
Configuration
- Parameter groups hold engine settings, like
max_connectionsor timezone. - Subnet groups tell RDS which (private!) subnets it may use.
- Security groups control who can connect, e.g. only your app servers on port 5432.
Aurora Serverless v2
With Aurora Serverless v2, capacity scales up and down automatically in small steps (measured in ACUs, Aurora Capacity Units) based on load. It suits spiky or unpredictable traffic, and dev environments that are quiet most of the day.
Aurora Serverless v2 still runs inside your VPC and uses normal database connections. It's "serverless" in the sense that you don't pick or resize instances.
Key takeaways
- Pick an instance class for compute and memory, and gp3 storage for RDS.
- Parameter, subnet, and security groups configure the engine, its location, and access.
- Aurora Serverless v2 scales capacity automatically for spiky workloads.
Check your understanding
Pick an answer to see the explanation.
1. Where do you change a PostgreSQL setting like max_connections on RDS?