AWS Fundamentals

AWS has 200+ services. Most applications use a small subset; the rest are noise unless you have a specific need. This page covers the core services and the mental model for understanding the catalog.

The core dozen

The services most workloads touch:

ServiceWhat it is
EC2Virtual machines
VPCPrivate networks
IAMIdentity and access
S3Object storage
RDSManaged relational databases
DynamoDBManaged key-value/document store
LambdaServerless functions
API GatewayHTTP/REST/WebSocket entry point
CloudWatchMetrics, logs, alarms
Route 53DNS
CloudFrontCDN
SQS / SNSQueues and topics

Knowing these well covers most use cases. The other 188 services are specializations — you'll learn them when you need them.

IAM is the foundation

Every AWS interaction is gated by IAM (Identity and Access Management). Users, roles, policies, permissions.

The model:

Best practice: workloads use roles, not user credentials. EC2 instances have instance profiles; Lambda functions have execution roles. Code calling AWS doesn't need keys — it gets temporary credentials from the role.

VPC: the network

A VPC is a private network in AWS. By default each region has one; you can have many.

Inside:

Most application architecture decisions land in VPC: which subnets, what security group rules, how do services talk to each other.

EC2 vs. Lambda vs. Fargate

The compute decision:

For typical applications, the trend is away from EC2 toward Fargate or Lambda. EC2 still wins for: long-running stateful workloads, GPU/special-hardware, tight control over the runtime, predictable steady-state load.

S3 patterns

S3 is the universal AWS storage. Cheap, durable, scales to petabytes. Common patterns:

Storage classes are a real choice: Standard for hot data, Standard-IA for warm, Glacier tiers for cold. Lifecycle rules automate the transition.

See CloudStorageOptions.

RDS vs. DynamoDB vs. Aurora

The database decision:

For a typical web app, RDS PostgreSQL is the right default. DynamoDB wins for high-scale, simple-access-pattern workloads. Aurora wins for relational workloads that have outgrown standard RDS.

See CloudDatabases.

Cost: where the bill comes from

Most AWS bills are dominated by:

  1. Compute (EC2 hours, Lambda invocations × duration)
  2. Data transfer (egress to internet, cross-AZ traffic)
  3. Storage (S3, EBS, RDS)
  4. Specific premium services (NAT Gateway, ALB, KMS)

Surprises are usually data transfer (cross-region or out-to-internet) or NAT Gateway (per-GB charges add up).

Common failure patterns

Further Reading