# AWS for DevOps

The AWS services DevOps engineers touch every week, in the order you need them.

Level: Intermediate. Free on DevOps Academy: https://devops.rajeev.pro/courses/aws

## Roadmap

1. **Cloud basics**: The vocabulary every AWS conversation assumes, and how to work with AWS safely from day one. [Lesson](https://devops.rajeev.pro/courses/aws/01-cloud-basics)
   Topics: What cloud computing is; Service models (IaaS, PaaS, SaaS); Deployment models (Public cloud, Private cloud, Hybrid cloud); Global infrastructure (Regions, Availability Zones, Edge locations, Local Zones); Shared responsibility model; Well-Architected Framework (Operational excellence, Security, Reliability, Performance efficiency, Cost optimization, Sustainability); Ways to use AWS (Console, AWS CLI, CloudShell, SDKs); Account safety (Root user and MFA, Free Tier, Billing alerts)
2. **IAM**: Get permissions right first. Almost every AWS incident story starts here. [Lesson](https://devops.rajeev.pro/courses/aws/02-iam)
   Topics: Users and groups (Users, Groups, Access keys and rotation); Policies (Identity-based, Resource-based, Policy JSON: Effect, Action, Resource, Condition, AWS managed vs customer managed vs inline); Roles (Instance profiles, Assuming roles with STS, Cross-account access, OIDC for CI/CD (GitHub Actions)); Least privilege (IAM Access Analyzer, Permission boundaries); MFA everywhere; IAM Identity Center (SSO); Multi-account (AWS Organizations, Service control policies (SCPs))
3. **EC2**: Virtual servers. Still the base of most AWS setups, and where most cloud skills start. [Lesson](https://devops.rajeev.pro/courses/aws/03-ec2)
   Topics: Instance types (Families: general, compute, memory, storage, Burstable instances and CPU credits, Graviton (Arm)); AMIs; Connecting (Key pairs and SSH, Session Manager (no open ports)); Security groups; Storage (EBS root volumes, Instance store); Elastic IPs; User data scripts; Instance metadata (IMDSv2); Purchasing options (On-Demand, Spot, Savings Plans, Reserved Instances)
4. **VPC**: Your private network in AWS. Most connectivity bugs live here. [Lesson](https://devops.rajeev.pro/courses/aws/04-vpc)
   Topics: CIDR blocks; Subnets (Public subnets, Private subnets); Route tables; Internet gateway; NAT gateway; Firewalls (Security groups (stateful), Network ACLs (stateless)); VPC endpoints (Gateway endpoints (S3, DynamoDB), Interface endpoints (PrivateLink)); Connecting VPCs (VPC peering, Transit Gateway); VPC Flow Logs
5. **Scaling & load balancing**: Handle traffic spikes and replace failed servers on their own. [Lesson](https://devops.rajeev.pro/courses/aws/05-scaling-and-load-balancing)
   Topics: Launch templates; Auto Scaling groups (Min, max and desired capacity, Health checks and replacement, Multi-AZ spread); Scaling policies (Target tracking, Step scaling, Scheduled scaling); Elastic Load Balancing (Application Load Balancer (ALB), Network Load Balancer (NLB), Target groups, Listeners and rules); TLS certificates with ACM
6. **S3**: Storage for backups, artifacts, logs and static sites. [Lesson](https://devops.rajeev.pro/courses/aws/06-s3)
   Topics: Buckets and objects; Storage classes (Standard, Standard-IA, Intelligent-Tiering, Glacier); Lifecycle rules; Versioning; Access control (Bucket policies, Block Public Access, Presigned URLs); Encryption (SSE-S3, SSE-KMS); Static website hosting; Replication
7. **Storage types**: Pick the right disk for the job, and know what survives a stop. [Lesson](https://devops.rajeev.pro/courses/aws/07-storage-types)
   Topics: EBS (Volume types: gp3, io2, st1, sc1, Snapshots, Encryption); EFS (shared file system); Instance store (temporary); AWS Backup
8. **Route 53**: DNS for your domains, with health checks and failover. [Lesson](https://devops.rajeev.pro/courses/aws/08-route-53)
   Topics: Hosted zones (Public, Private); Records (A and AAAA, CNAME, Alias records); Routing policies (Simple, Weighted, Latency, Failover, Geolocation); Health checks; Domain registration
9. **CloudFront**: Put a fast, cached edge in front of your app. [Lesson](https://devops.rajeev.pro/courses/aws/09-cloudfront)
   Topics: Distributions (Origins, Behaviors); Cache policies; Invalidations; HTTPS with ACM (us-east-1); Origin Access Control for S3; Edge code (CloudFront Functions, Lambda@Edge)
10. **Databases**: Managed databases so you don't run backups by hand. [Lesson](https://devops.rajeev.pro/courses/aws/10-databases)
   Topics: RDS (DB instances, Storage: gp3 and Provisioned IOPS, Multi-AZ, Read replicas, Backups and snapshots, Parameter groups); Aurora; DynamoDB (Tables, items and attributes, Primary keys and indexes, Capacity modes: on-demand and provisioned, Streams, Backup and restore, DynamoDB Local); ElastiCache (Redis / Valkey, Memcached)
11. **Containers**: Run the images from the Docker course on AWS. [Lesson](https://devops.rajeev.pro/courses/aws/11-containers)
   Topics: ECR (Repositories, Lifecycle policies, Image scanning); ECS (Clusters, Task definitions, Services, Fargate, EC2 launch type); EKS (Managed node groups, Fargate profiles, EKS Pod Identity / IRSA); App Runner
12. **Lambda**: Run code without servers, for glue jobs and events. [Lesson](https://devops.rajeev.pro/courses/aws/12-lambda)
   Topics: Creating and invoking functions; Triggers (API Gateway, S3 events, SQS, EventBridge schedules); Versions and aliases; Layers; Container image functions; Limits (Cold starts, Timeout and memory, Concurrency); API Gateway (HTTP APIs, REST APIs)
13. **Monitoring & auditing**: Metrics, logs, alarms and an audit trail for everything above. [Lesson](https://devops.rajeev.pro/courses/aws/13-cloudwatch)
   Topics: CloudWatch Metrics (Namespaces and dimensions, Custom metrics); CloudWatch Logs (Log groups and retention, Logs Insights); Alarms (Thresholds, Notifications with SNS); Dashboards; EventBridge rules; CloudTrail; AWS Config
14. **Messaging**: Send email and decouple services with queues and topics. [Lesson](https://devops.rajeev.pro/courses/aws/14-messaging)
   Topics: SQS (Standard vs FIFO, Visibility timeout, Dead-letter queues); SNS (Topics and subscriptions, Fan-out to SQS); SES (Identity verification and DKIM, Sandbox and sending limits, Bounces and complaints); EventBridge event bus
15. **Security & secrets**: Keep secrets out of code and spot trouble before it spreads. [Lesson](https://devops.rajeev.pro/courses/aws/15-security-and-secrets)
   Topics: KMS (Customer managed keys, Key policies); Secrets Manager; SSM Parameter Store; Threat detection (GuardDuty, Security Hub); Edge protection (AWS WAF, AWS Shield)
16. **Automation & IaC**: Stop clicking in the console: script, template and automate your account. [Lesson](https://devops.rajeev.pro/courses/aws/16-automation-and-iac)
   Topics: CloudFormation (Stacks and templates, Change sets, Drift detection); AWS CDK; Systems Manager (Run Command, Session Manager, Patch Manager); AWS CI/CD services (CodeBuild, CodePipeline, CodeDeploy)
17. **Cost basics**: Know what you're spending before the bill arrives. [Lesson](https://devops.rajeev.pro/courses/aws/17-cost-basics)
   Topics: Billing and the Free Tier; Budgets and alerts (Zero-spend budget, Forecast alerts); Cost Explorer; Cost allocation (Tags, Cost categories); Saving money (Right-sizing with Compute Optimizer, Savings Plans and Spot, Trusted Advisor)
