Docs
/
AWS Cloud
Chapter 1

01 — Cloud Fundamentals

Cloud Service Models

ModelYou ManageProvider ManagesExample
IaaSOS, runtime, app, dataHardware, networking, virtualizationEC2, Azure VMs, GCE
PaaSApp, dataEverything elseElastic Beanstalk, Heroku, App Engine
SaaSNothing (just use it)EverythingGmail, Slack, Salesforce
FaaSFunction codeEverything elseLambda, Cloud Functions
On-Premise → IaaS → PaaS → FaaS → SaaS
(You manage everything)          (Provider manages everything)

AWS Global Infrastructure

AWS Global Infrastructure:

┌─ Region (us-east-1) ───────────────────────┐
│  ┌─ AZ (us-east-1a) ─┐  ┌─ AZ (1b) ─┐   │
│  │  Data Center(s)    │  │  DC(s)     │   │
│  └────────────────────┘  └────────────┘   │
│  ┌─ AZ (us-east-1c) ─┐                    │
│  │  DC(s)             │                    │
│  └────────────────────┘                    │
└────────────────────────────────────────────┘
ConceptDescription
RegionGeographic area (e.g., us-east-1, eu-west-1). ~30+ regions.
Availability Zone (AZ)1+ data centers in a region. 2-6 AZs per region.
Edge LocationCDN endpoints for CloudFront (~400+ worldwide).
Local ZoneExtension of a region closer to users.

Region selection factors: Compliance, latency, service availability, cost.


Shared Responsibility Model

┌──────────────────────────────────────────┐
│        YOUR RESPONSIBILITY               │
│  Data, encryption, IAM, OS patching,     │
│  network config, firewall, app code      │
├──────────────────────────────────────────┤
│        AWS RESPONSIBILITY                │
│  Hardware, global infrastructure,        │
│  managed services, physical security     │
└──────────────────────────────────────────┘

Security OF the cloud → AWS
Security IN the cloud → You

Pricing Models

ModelDescriptionSavingsBest For
On-DemandPay per second/hour, no commitment0%Variable workloads, testing
Reserved (1-3 yr)Commit to instance typeUp to 72%Steady-state workloads
Savings PlansCommit to $/hr spendUp to 72%Flexible across instance types
Spot InstancesBid on unused capacityUp to 90%Fault-tolerant, batch jobs
Free TierLimited free usage100%Learning, small projects

Free Tier Highlights

Always Free:
  - Lambda: 1M requests/month
  - DynamoDB: 25 GB storage
  - CloudWatch: 10 metrics

12 Months Free:
  - EC2: 750 hrs/month t2.micro
  - S3: 5 GB storage
  - RDS: 750 hrs/month db.t2.micro

Core Service Categories

CategoryKey Services
ComputeEC2, Lambda, ECS, Fargate
StorageS3, EBS, EFS
DatabaseRDS, DynamoDB, Aurora, ElastiCache
NetworkingVPC, CloudFront, Route 53, API Gateway
SecurityIAM, Cognito, KMS, WAF
MessagingSQS, SNS, EventBridge
MonitoringCloudWatch, X-Ray, CloudTrail
DevOpsCodePipeline, CodeBuild, CDK

AWS CLI Basics

# Install
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip && sudo ./aws/install

# Configure
aws configure
# AWS Access Key ID: AKIA...
# AWS Secret Access Key: ...
# Default region: us-east-1
# Output format: json

# Common commands
aws sts get-caller-identity          # Who am I?
aws s3 ls                            # List S3 buckets
aws ec2 describe-instances           # List EC2 instances

Key Takeaways

  • IaaS (EC2) = full control; PaaS (Beanstalk) = managed; FaaS (Lambda) = just code
  • Deploy across multiple AZs for high availability
  • Shared responsibility: AWS secures infrastructure, you secure your data and config
  • Use Reserved/Savings Plans for predictable workloads, Spot for fault-tolerant jobs
  • Start with Free Tier to learn without cost