AWS Tutorial
Learn AWS step by step: 70 lessons in 15 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting started with AWS
- What is AWS? Learn what Amazon Web Services is, how IaaS, PaaS and SaaS differ, what Regions, Availability Zones and edge locations are, and how this tutorial teaches AWS without an account.
- Creating and Securing an Account Open an AWS account, lock down the root user with MFA, create an admin identity, set budget alerts, understand the free tier and credits, and see why AWS Organizations matters.
- Console, CLI and SDKs Learn the three ways to use AWS: the console, the aws CLI and SDKs such as boto3. Configure profiles and SSO, understand credentials, and see how every call is a signed HTTPS request.
- The Shared Responsibility Model Understand what AWS secures and what you secure for EC2, RDS, S3 and Lambda, how compliance reports fit in, and the six Well-Architected pillars, with a runnable checklist classifier.
Identity and access management
- IAM Users, Groups and Roles Learn who can act in AWS: IAM users, groups and roles, trust relationships, STS temporary credentials and why long-lived access keys are a last resort, with a runnable role-assumption emulator.
- Writing IAM Policies Read and write IAM policy JSON: Effect, Action, Resource, Condition, wildcards and variables, identity vs resource policies, managed vs inline policies, with a runnable policy evaluator.
- How Policy Evaluation Works Learn how AWS decides allow or deny: explicit deny, implicit deny, permission boundaries, SCPs, session policies and cross-account access, with a runnable evaluator.
- SAML, Web Identity and Federation with IAM Understand AWS identity federation: the SAML 2.0 sign-in flow, trust with an identity provider, role mapping, web identity and OIDC, IAM Identity Center and Cognito identity pools.
- IAM Best Practices and Least Privilege Apply least privilege on AWS: tighten policies with Access Analyzer, read credential reports, rotate keys, use IAM Identity Center and enforce MFA, with runnable linters.
Compute with EC2
- EC2 Instances Understand Amazon EC2: instances, AMIs, instance type families and names, key pairs, user data and the instance lifecycle, with a runnable state machine.
- EBS Volumes, Snapshots and Instance Store Learn EC2 storage: EBS volume types (gp3, io2, st1), attach and detach, incremental snapshots, encryption, instance store and EFS, with runnable emulators.
- EFS and FSx File Systems Learn Amazon EFS and FSx: throughput modes, storage classes and lifecycle, mounting on EC2, access points, and how to choose between EFS, EBS, S3 and FSx.
- On-Demand, Reserved, Savings Plans and Spot Compare EC2 purchasing options: On-Demand, Savings Plans, Reserved Instances, Spot and capacity reservations, with break-even math and runnable calculators.
- Connecting to Instances and Security Groups Learn how to reach EC2 instances with SSH, EC2 Instance Connect and Session Manager, and how stateful security groups differ from NACLs, with runnable matchers.
- AMIs, User Data and Instance Metadata Learn how EC2 instances get their software: AMIs and golden images, user data and cloud-init, the instance metadata service with IMDSv2, and instance profiles.
- Amazon Lightsail Learn Amazon Lightsail: fixed-price instances, static IPs, managed databases, load balancers, a WordPress setup, how it compares with EC2, and when to move to full AWS.
Networking with VPC
- VPC Fundamentals Understand the Amazon VPC: CIDR blocks, subnets across Availability Zones, route tables, the internet gateway, and what makes a subnet public or private.
- NAT Gateways and VPC Endpoints Give private subnets outbound internet access with a NAT gateway, keep AWS traffic off the internet with gateway and interface endpoints, and avoid the cost traps.
- NACLs, Flow Logs and Network Security Compare stateless network ACLs with stateful security groups, learn rule ordering and ephemeral ports, read VPC flow logs and troubleshoot reachability step by step.
- Peering, Transit Gateway, VPN and Direct Connect Connect VPCs and on-premises networks: VPC peering and why it is non-transitive, Transit Gateway hub-and-spoke, Site-to-Site VPN, Direct Connect and Route 53 Resolver.
- Bastion Hosts and Private Subnet Access Learn the bastion host pattern on AWS: public and private subnets, security group rules, SSH ProxyJump and agent forwarding, and why Session Manager is often better.
- Route 53 and DNS Learn how DNS works and how Route 53 uses hosted zones, record types, alias records, routing policies (weighted, latency, failover, geolocation) and health checks.
Storage with S3
- S3 Buckets and Objects Learn how Amazon S3 stores data: buckets, object keys, prefixes that look like folders, strong consistency, multipart uploads, presigned URLs, the CLI and boto3.
- Storage Classes and Lifecycle Rules Compare S3 Standard, Infrequent Access, Glacier and Intelligent-Tiering, automate transitions and expiry with lifecycle rules, and learn how versioning changes the cost picture.
- S3 Security Secure Amazon S3 buckets: Block Public Access, bucket policies, why ACLs are legacy, SSE-S3 and SSE-KMS encryption, access points and Object Lock, with runnable evaluators.
- Static Websites and S3 Events Host a static website from S3, configure CORS, trigger Lambda, SQS or EventBridge on uploads, and replicate buckets across Regions, with runnable event and CORS emulators.
Databases
- RDS and Aurora Understand managed relational databases on AWS: RDS engines, Multi-AZ versus read replicas, backups, parameter groups, Aurora's shared storage and RDS Proxy, with Python stand-ins.
- DynamoDB Fundamentals Learn Amazon DynamoDB basics: tables, items, partition and sort keys, Query versus Scan, on-demand and provisioned capacity, and eventual versus strong consistency.
- DynamoDB Data Modeling Design DynamoDB tables from access patterns: single-table design, composite sort keys, GSIs and LSIs, hot partitions, TTL and streams, with runnable emulators.
- ElastiCache, DocumentDB, Neptune and Redshift Learn caching strategies (lazy loading, write-through, TTL), Redis vs Memcached, and when to pick DocumentDB, Neptune or Redshift, with a runnable cache emulator.
- Amazon Redshift Learn Amazon Redshift: columnar storage, leader and compute nodes, distribution styles, sort keys, provisioned vs serverless, loading with COPY, Spectrum and data sharing.
Serverless and messaging
- Lambda Functions Learn how AWS Lambda works: the handler model, event and context, runtimes, packaging, layers, execution roles and invocation types, with a runnable handler runner.
- Lambda Concurrency, Cold Starts and Limits Understand how Lambda scales: concurrency, reserved and provisioned concurrency, cold starts, memory and CPU, timeouts and cost math, with runnable simulators.
- API Gateway and Function URLs Learn API Gateway: REST vs HTTP APIs, routes, stages, authorizers, throttling and Lambda proxy integration, plus Function URLs, with runnable emulators.
- SQS, SNS and Fan-Out Learn SQS queues, visibility timeout, dead-letter queues and FIFO, plus SNS topics and the fan-out pattern, with runnable queue and topic emulators.
- Kinesis Data Streams, Firehose and Managed Flink Learn Amazon Kinesis: shards, partition keys, producers and consumers, retention, Firehose delivery to S3, Managed Service for Apache Flink, and Kinesis vs SQS and SNS.
- EventBridge and Step Functions Route events with EventBridge buses, rules and patterns, then orchestrate work with Step Functions state machines, retries, catches and Express vs Standard.
- MediaConvert (Elastic Transcoder's Successor) and SWF Learn AWS Elemental MediaConvert for video transcoding (job flow, IAM role, S3 in and out, adaptive bitrate) and Simple Workflow Service (SWF) compared with Step Functions.
Load balancing, scaling and delivery
- Elastic Load Balancing Learn AWS load balancers: ALB vs NLB vs GWLB, listeners, rules, target groups, health checks and TLS with ACM, plus runnable router and health-check simulators.
- Auto Scaling Groups Learn EC2 Auto Scaling: launch templates, min/desired/max, target tracking, step and scheduled scaling, lifecycle hooks and instance refresh, with simulators.
- CloudFront CDN Learn Amazon CloudFront: distributions, origins, cache behaviors, TTLs, invalidations, Origin Access Control, signed URLs and edge functions, with an edge cache emulator.
- Containers: ECR, ECS and Fargate Run containers on AWS: store images in ECR, define tasks and services in ECS, choose Fargate or EC2, compare with EKS, and try a task-placement emulator.
- Amazon EKS in Depth Understand Amazon EKS: control plane vs nodes, managed node groups, Fargate profiles, kubectl and eksctl, IAM roles for service accounts, pod networking, pricing and EKS vs ECS.
- Elastic Beanstalk, App Runner and Amplify Compare AWS's higher-level deployment services: Elastic Beanstalk, App Runner and Amplify. Learn when to pick each over EC2 or ECS, with a decision helper.
Monitoring, operations and cost
- CloudWatch Metrics, Logs and Alarms Learn CloudWatch: namespaces, dimensions, statistics, log groups, Logs Insights, alarms and dashboards, with a runnable metric aggregator and alarm state machine.
- CloudTrail, Config and X-Ray Learn who did what with CloudTrail, whether resources comply with AWS Config rules, and where requests slow down with X-Ray, with runnable query stand-ins.
- Systems Manager and Day-Two Operations Operate AWS after launch: Session Manager, Parameter Store, Secrets Manager, patching, runbooks and AWS Backup, with a runnable parameter hierarchy emulator.
- Cost Management and Optimization Understand your AWS bill: Cost Explorer, budgets, tags, right-sizing and the egress and NAT surprises, with a runnable monthly bill estimator.
Security
- Encryption and KMS Learn envelope encryption, KMS keys, key policies, grants, ACM certificates and encryption at rest and in transit, with a runnable envelope demo.
- Secrets, WAF, Shield and GuardDuty Learn Secrets Manager rotation, WAF rules, Shield, GuardDuty, Security Hub and Inspector, with a runnable WAF rule matcher and rotation simulator.
- Multi-Account Strategy and Control Tower Learn why AWS teams use many accounts: Organizations, OUs, SCPs, Control Tower landing zones, central logging and IAM Identity Center, with a runnable SCP calculator.
Infrastructure as code
- CloudFormation Learn AWS CloudFormation: templates, stacks, parameters, outputs, change sets, drift detection and nested stacks, with a runnable Ref and Sub template resolver.
- AWS CDK Learn the AWS Cloud Development Kit: apps, stacks and L1, L2, L3 constructs, cdk synth and deploy, TypeScript and Python code, and tests, with a runnable synth stand-in.
- Terraform on AWS Learn Terraform on AWS: providers, resources, state, plan and apply, modules and remote state in S3, compared with CloudFormation and CDK, with runnable plan and state emulators.
Architecture
- Well-Architected Framework Learn the AWS Well-Architected Framework: the six pillars, design principles, how reviews work and how to weigh trade-offs, with a runnable architecture scorecard.
- High Availability and Disaster Recovery Learn high availability and disaster recovery on AWS: Multi-AZ vs multi-Region, RTO and RPO, backup and restore, pilot light, warm standby and active-active, with runnable calculators.
- Common Architecture Patterns Five AWS patterns you will meet again and again: three-tier web app, serverless API, event-driven pipeline, static site with CDN and a data lake, with diagrams.
- Migration and Hybrid Cloud Plan a move to AWS: the seven Rs, discovery and tracking, DMS for databases, DataSync and Snow for bulk data, and Outposts and hybrid options for what stays.
Machine learning and IoT
- SageMaker and AWS AI Services A practical map of AWS machine learning: SageMaker build, train and deploy, endpoint types, Amazon Bedrock, and ready-made AI services such as Rekognition, Comprehend, Transcribe and Polly.
- AWS IoT Core and the IoT Family Learn AWS IoT Core: the device registry, certificates and policies, MQTT topics, device shadows, the rules engine, Greengrass at the edge, and a typical sensor ingestion architecture.
Real-world projects
- Project: Static Site on S3 and CloudFront Build a fast, cheap static website step by step: private S3 bucket, CloudFront with OAC, ACM certificate, Route 53 alias and a CI deploy script with invalidation.
- Project: Serverless REST API Build a notes API with API Gateway, Lambda and DynamoDB: routes, a least-privilege IAM role, tests with event fixtures and an emulator that runs the handler.
- Project: Three-Tier Web App Build a classic three-tier app across two Availability Zones: VPC subnets, ALB, Auto Scaling, Multi-AZ RDS, chained security groups and Session Manager access.
- Project: Event-Driven Image Pipeline Build an image pipeline on AWS: S3 upload events feed an SQS buffer, Lambda resizes images, DynamoDB stores metadata and a dead-letter queue catches poison files.
- Project: Containerized App with CI/CD Build a containerized web app on AWS: ECR, ECS Fargate behind an ALB, and a GitHub Actions pipeline that deploys with OIDC and no stored keys. Includes simulators.
Practice, interviews and cheat sheet
- Practice Exercises with Solutions Practice AWS with hands-on exercises: write an IAM policy, design CIDR subnets, build S3 lifecycle rules, fix a Lambda handler, estimate costs and debug scenarios.
- Common Mistakes and Troubleshooting Debug the AWS problems everyone hits: AccessDenied, security group and route failures, Lambda timeouts and surprise bills, with runnable diagnostic stand-ins.
- AWS Interview Questions Prepare for AWS interviews with questions and clear answers on IAM, networking, storage, compute, serverless and architecture scenarios, plus runnable practice tools.
- AWS Cheat Sheet A one-page AWS cheat sheet: pick the right service, remember key limits and defaults, copy common CLI commands and apply pricing rules of thumb and design decisions.
- AWS Certification Paths A guide to AWS certifications: foundational, associate, professional and specialty levels, how to choose your first exam, a realistic study plan, and a map from this tutorial to exam topics.