Amazon Web Services (AWS) is the world's most comprehensive cloud platform, offering over 200 fully featured services from 39 regions and 123 Availability Zones globally. AWS provides on-demand computing resources without upfront capital investment, transforming how organizations build, deploy, and scale applications. The platform operates on a pay-as-you-go pricing model and has expanded rapidly into generative AI with Amazon Bedrock, Amazon Nova foundation models, and Amazon Q Developer. One critical insight: AWS services are designed to work together seamlessly. Understanding how EC2, VPC, IAM, and S3 interconnect is far more valuable than knowing each service in isolation.
What This Cheat Sheet Covers
This topic spans 20 focused tables and 161 indexed concepts, 159 flashcards, 6 practice tests with 216 questions. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Compute Services
AWS compute options sit on a spectrum of control. At one end EC2 hands you a whole virtual server with OS-level access and the patching that comes with it; at the other, Lambda runs your code with no servers to manage and Fargate runs containers without you provisioning instances. Pick by two questions: how much operational burden you want to keep versus hand to AWS, and how your workload is packaged, whether as a plain process, a container, or an event handler.
| Service | Example | Description | |
|---|---|---|---|
aws ec2 run-instances --image-id ami-0abcdef1234567890 --instance-type m8g.large | • Virtual servers in the cloud with full OS control • supports Linux, Windows, macOS across instance families: general purpose (M8g), compute (C8g), memory (R8g), storage, accelerated • Graviton ARM-based instances cost up to 20% less than comparable x86 instances, but AMIs, binaries, and container images must be built for arm64 | ||
exports.handler = async (event) => { return { statusCode: 200, body: 'Hello' };}; | • Serverless compute that runs code in response to events • billed per request plus duration rounded up to the nearest 1 ms, auto-scales horizontally to match demand • hard ceiling of 15 minutes per invocation, so longer jobs belong in Batch, ECS, or Step Functions • SnapStart cuts init-driven cold starts to as low as sub-second on Java 11+, Python 3.12+, and .NET 8+ (not Node.js, Ruby, or container images) | ||
aws ecs create-cluster --cluster-name my-cluster | • Fully managed Docker container orchestration • integrates natively with ALB, CloudWatch, IAM • capacity options: EC2, Managed Instances, Fargate, or ECS Anywhere • Express Mode (Nov 2025) turns a container image plus two IAM roles into a Fargate service with HTTPS, autoscaling, and a URL | ||
eksctl create cluster --name prod-cluster --region us-west-2 | • Managed Kubernetes, certified Kubernetes-conformant, so standard manifests and community tooling work unchanged • supports both EC2 and Fargate compute, Auto Mode for simplified cluster management | ||
"requiresCompatibilities": ["FARGATE"] | • Serverless compute for containers, no EC2 instances to manage • works with both ECS and EKS, right-sized and billed per task • not automatically cheaper: it wins on lightly used instances, while a well-packed EC2 fleet can cost over 20% less | ||
aws batch submit-job --job-name nightly-report --job-queue processing-queue | • Fully managed batch processing at any scale • automatically provisions compute and distributes work based on the jobs in the queue • runs on EC2 and Fargate, with Spot capacity for interruption-tolerant jobs | ||
eb init && eb create prod-env | • Platform as a Service (PaaS) that handles deployment, scaling, load balancing, and health monitoring • supports Go, Java, .NET, Node.js, PHP, Python, Ruby, and Docker • not serverless: it provisions EC2 instances in your own account, and while Beanstalk itself adds no charge, those resources bill whether or not traffic arrives | ||
aws lightsail create-instances --instance-names my-server --availability-zone us-east-1a --blueprint-id amazon_linux_2023 | • Simplified VPS with a low, predictable monthly price • bundles compute, SSD storage, DNS, static IP, and a data transfer allowance into one plan • ideal for simple web apps and dev/test; the OS stays yours to manage |