DevOps & Tools
Core Amazon Web Services for builders: compute, networking, IAM, storage, databases, containers and serverless.
A practical path through the AWS services most applications use, from EC2, VPC networking and IAM to S3, RDS, DynamoDB, containers and Lambda. Aimed at developers and DevOps engineers who need to deploy and run real workloads, not memorise the whole catalogue. Each subject links the official AWS documentation.
The subjects follow the roadmap.sh AWS roadmap.
Before touching the console, get the vocabulary: what renting compute by the second changes, how service models split responsibility, and how AWS is laid out physically into Regions and Availability Zones. These ideas decide every architecture and every bill later on.
On-demand access to servers, storage and managed services over the network, billed by usage instead of bought up front. You trade capital spending and hardware lead times for elasticity and an operating bill you must watch.
How much of the stack you run. With IaaS (EC2) you patch the OS; with PaaS (Elastic Beanstalk, App Runner) you ship code; with SaaS you just use the product. Higher levels mean less control and less toil.
Public cloud shares a provider's hardware across tenants; private cloud is dedicated infrastructure you or a vendor run; hybrid connects the two, often over Direct Connect or VPN, for latency, regulation or gradual migration.
Amazon's cloud, with hundreds of services driven by one API. Set up an account with MFA on the root user, create an admin identity through IAM Identity Center, turn on billing alerts, and install the aws CLI.
Regions are independent geographic areas; each holds several Availability Zones, isolated data centre groups with low-latency links. Spread workloads across AZs for resilience, choose Regions for latency, price and data residency, and use edge locations for CDN traffic.
AWS secures the hardware, facilities and managed service internals; you secure what you put on top — IAM, network rules, OS patches on EC2, encryption settings and your data. The split shifts toward AWS as services get more managed.
AWS's design review checklist built on six pillars: operational excellence, security, reliability, performance efficiency, cost optimisation and sustainability. The free Well-Architected Tool walks a workload through its questions and records risks.
Elastic Compute Cloud rents virtual machines: pick an image, an instance type, a subnet, a security group and a key pair, and you have a server in about a minute. Most other compute on AWS (ECS on EC2, EKS nodes, Beanstalk) is EC2 underneath, so its pricing and networking model is worth knowing well.
Names like m7g.large encode family (general m, compute c, memory r, burstable t), generation, processor hint (g for Graviton/ARM) and size. Graviton types are usually cheaper per unit of work if your software runs on ARM.
Burstable t instances earn credits while idle below a baseline and spend them to burst. In standard mode they throttle when credits run out; unlimited mode keeps bursting and bills the surplus, which surprises people on busy instances.
EBS volumes are network block devices that live in one AZ and survive stops; gp3 is the sensible default with IOPS and throughput set separately. Instance store disks are faster but vanish when the instance stops. Snapshots back volumes up to S3.
An SSH public key EC2 injects at launch so you can log in with the matching private key. AWS never keeps the private half — lose it and you need another way in, which is why Session Manager without open SSH ports is often preferred.
A static public IPv4 address you own until you release it and can remap between instances. All public IPv4 addresses are now billed hourly, so prefer a load balancer or DNS name in front of instances rather than hoarding addresses.
A shell script or cloud-init config passed at launch and run once as root on first boot — install packages, pull config, start services. Keep it idempotent and short; bake heavy setup into an AMI instead. Output lands in /var/log/cloud-init-output.log.
On-Demand for flexibility, Savings Plans or Reserved Instances for steady load at up to ~70% off with a 1–3 year commitment, Spot for interruptible work at deep discounts with a two-minute warning, and Dedicated Hosts for licensing needs.
A Virtual Private Cloud is your isolated network inside a Region: an address range, subnets pinned to AZs, route tables and gateways that decide what can reach the internet. Almost every outage-by-misconfiguration on AWS involves routes or security groups, so draw your VPC before you build it.
The VPC's private IPv4 range written as prefix notation, e.g. 10.0.0.0/16 for 65,536 addresses, between /16 and /28. Plan ranges that never overlap with other VPCs or on-premises networks, or peering and VPNs become impossible later.
Slices of the VPC range, each living in exactly one Availability Zone. AWS reserves five addresses in every subnet. Create matching subnets in at least two AZs so load balancers and databases can fail over.
A subnet whose route table sends 0.0.0.0/0 to an internet gateway. Put only what must be reachable from outside here — load balancers, bastions, NAT gateways — and give instances public IPs only when needed.
A subnet with no direct route to the internet gateway. Application servers and databases live here; outbound traffic goes through a NAT gateway, and VPC endpoints let them reach S3 or DynamoDB without leaving AWS's network.
Rules that pick a target for each destination range; every subnet is associated with one. The most specific prefix wins, and the implicit local route lets everything in the VPC talk to everything else.
Stateful, allow-only firewalls attached to network interfaces: return traffic is allowed automatically. Reference other security groups instead of IP ranges (allow the app SG into the DB SG on 5432). Network ACLs are the stateless subnet-level layer.
A horizontally scaled, free component attached to the VPC that lets resources with public IPs send and receive internet traffic. It does one-to-one NAT for public addresses; without a route to it nothing is public.
A managed service in a public subnet that lets private instances start outbound connections while blocking inbound ones. It bills per hour and per GB processed, which adds up — use one per AZ for resilience, and VPC endpoints to keep S3 traffic off it.
Identity and Access Management decides who can call which API on which resource. Every request is evaluated against all applicable policies: explicit deny beats allow, and anything not allowed is denied. Least privilege and short-lived role credentials instead of long-lived access keys are the habits to build.
JSON documents of statements with Effect, Action, Resource and optional Condition. Start from AWS managed policies, then narrow with customer managed ones; IAM Access Analyzer can generate policies from real CloudTrail activity.
Policies attached to a user, group or role that say what that identity may do. They have no Principal element, because the principal is whoever they are attached to.
Policies attached to the resource itself — S3 bucket policies, SQS queue policies, KMS key policies, Lambda permissions — naming which principals may act on it. They are the usual way to grant cross-account access without assuming a role.
IAM users carry long-term credentials; groups bundle permissions for several users. For humans, AWS now recommends IAM Identity Center with federated sign-in instead, keeping IAM users for rare cases that truly need static keys.
Identities with permissions but no password or keys; whoever is trusted by the role's trust policy can assume it and receives temporary credentials. Use roles for services, cross-account access and federated users.
The container that attaches a role to an EC2 instance. SDKs on the instance fetch rotating credentials from the metadata service automatically — require IMDSv2 so those credentials cannot be stolen through SSRF.
Calling STS AssumeRole (or AssumeRoleWithWebIdentity for OIDC, e.g. GitHub Actions) returns credentials valid for up to the role's max session duration. The CLI does this for you with role_arn and source_profile in ~/.aws/config.
EC2 Auto Scaling keeps a fleet of identical instances at the right size: it replaces unhealthy ones, spreads them across AZs and adds or removes capacity from metrics or schedules. Combined with a load balancer it turns single servers into a self-healing service.
Amazon Machine Images: the root volume snapshot plus launch metadata an instance boots from. Bake your own with EC2 Image Builder or Packer so new instances start fast and identical; AMIs are regional, so copy them where you need them.
Versioned launch settings — AMI, instance type, security groups, user data, IAM profile, tags. Auto Scaling groups point at a template version; they replace the older launch configurations, which no longer get new features.
A fleet with minimum, desired and maximum size across chosen subnets. Health checks from EC2 or the load balancer trigger replacement, instance refresh rolls out a new template, and mixed-instance policies blend Spot with On-Demand.
Target tracking (keep average CPU at 50%) is the easiest and usually best; step scaling reacts to alarm thresholds; scheduled actions handle known peaks; predictive scaling forecasts daily patterns. Set warm-up times so new instances are not counted too early.
Application Load Balancers route HTTP(S) by host and path and terminate TLS; Network Load Balancers handle TCP/UDP at very high throughput with static IPs; Gateway Load Balancers chain appliances. Targets register through target groups with health checks.
Simple Storage Service is durable object storage addressed by bucket and key, built for eleven nines of durability. It serves static sites, backups, data lakes and user uploads; Block Public Access is on by default and bucket policies plus presigned URLs are how you share safely.
Bucket names are globally unique; objects are keys up to 1,024 bytes with data up to 5 TB, uploaded in parts above a few hundred MB. Prefixes look like folders but are just key strings. Reads are strongly consistent after writes.
Lifecycle rules transition objects to cheaper classes after N days and expire old objects, noncurrent versions and incomplete multipart uploads. Pair them with versioning so deletes are recoverable without paying forever for old copies.
S3 storage classes trade retrieval speed and fees against price per GB. Intelligent-Tiering moves objects automatically when access patterns are unknown; otherwise pick by how often and how fast data must come back.
The default class: millisecond access, data spread over at least three AZs, no retrieval fee and no minimum duration. Right for anything read frequently.
Standard-Infrequent Access: same speed and durability as Standard at a lower storage price, but with a per-GB retrieval fee, a 30-day minimum and 128 KB minimum billable size. Good for backups read now and then.
Archive classes: Instant Retrieval (milliseconds, priced for quarterly access), Flexible Retrieval (minutes to hours) and Deep Archive (hours, cheapest). Restores from the latter two are asynchronous requests, and minimum storage durations apply.
Simple Email Service sends transactional and bulk email through SMTP or the API and can receive mail into S3 or Lambda. Getting mail delivered is less about the API than about authentication records, bounce handling and a clean reputation.
New accounts start in a sandbox: only verified recipients and a small daily quota. Request production access with a description of your sending and bounce handling; after that, quotas for daily volume and per-second rate grow with good behaviour.
You may only send from identities you prove you own: a single address by clicking a link, or a whole domain by publishing DNS records. Domain identities are preferred because they also enable DKIM.
Easy DKIM gives you three CNAME records; once published, SES signs every message so receivers can verify it came from your domain. Add SPF via a custom MAIL FROM domain and a DMARC policy to complete alignment.
Bounces and complaints come back as SNS notifications or event destinations. Stop mailing hard-bounced and complaining addresses at once; the account-level suppression list helps, but your app should also record them.
Named rule groups applied per message that publish send, delivery, open, click, bounce and complaint events to CloudWatch, Firehose, SNS or EventBridge, and pin traffic to a dedicated IP pool.
SES tracks your bounce and complaint rates and pauses sending if they stay high (roughly 5% bounces or 0.1% complaints are danger zones). The Virtual Deliverability Manager and reputation dashboard show where you stand.
Leased IP addresses used only by you, so your reputation is not shared. They only pay off at high, steady volume and need warming up; managed dedicated IPs automate the warm-up and scaling.
Route 53 is AWS's DNS service, domain registrar and health checker. Alias records point apex domains at load balancers, CloudFront or S3 without extra lookups or charges, and routing policies turn DNS into a simple traffic-steering tool.
A container for a domain's records. Public zones answer the internet once your registrar uses their four name servers; private zones answer only inside associated VPCs, handy for internal service names.
Simple, weighted (canary releases), latency-based, failover, geolocation, geoproximity, IP-based and multivalue answer. Each record set uses one policy; combine them in trees for something like latency routing with regional failover.
Probes from many locations against an endpoint, a CloudWatch alarm, or other checks combined. Attached to failover or weighted records, an unhealthy answer is withdrawn automatically; keep TTLs low so clients switch quickly.
CloudWatch is the built-in monitoring layer: metrics, alarms, dashboards and logs for every service, plus your own custom data. Set alarms on what users feel (errors, latency) rather than only on CPU, and watch the cost of high-resolution metrics and log ingestion.
Time series identified by namespace, name and dimensions. Services publish their own; push custom ones with PutMetricData or the embedded metric format in logs. Alarms watch a metric or metric math expression and notify SNS or trigger scaling.
CloudWatch Events became Amazon EventBridge: an event bus where AWS services publish state changes and rules route matching events to Lambda, SQS, Step Functions and more. It also replaces cron-style scheduled rules through EventBridge Scheduler.
Log groups hold streams from Lambda, ECS, the CloudWatch agent and more. Set a retention period (the default is forever), query with Logs Insights, and use metric filters or subscription filters to alert on or forward patterns.
Relational Database Service runs PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and Db2 for you, handling patches, backups and failover. Aurora is AWS's compatible engine with shared distributed storage. You still own schema design, query tuning and parameter groups.
An instance class sized like EC2 (db.r7g.large), running one engine in a DB subnet group. Multi-AZ keeps a synchronous standby for failover; read replicas scale reads asynchronously. Keep instances private and reach them from your app's security group.
The SSD storage most databases should use. gp3 gives a baseline of 3,000 IOPS with extra IOPS and throughput bought separately from size; older gp2 ties IOPS to volume size with burst credits.
io1/io2 storage for latency-sensitive, I/O-heavy production databases: you pay for a guaranteed IOPS rate. Only choose it when gp3 metrics show you are limited by I/O.
Previous-generation hard-disk storage kept for backward compatibility, with low IOPS and size limits. Do not pick it for new databases; migrate existing ones to gp3.
Automated backups plus transaction logs allow point-in-time restore to any second within the retention window (up to 35 days); manual snapshots live until deleted. A restore always creates a new instance, so plan for the endpoint change. DynamoDB offers the same idea with PITR and on-demand backups.
A serverless key-value and document database with single-digit millisecond latency at any scale. There are no joins and queries must follow your keys, so you design tables around access patterns first. Point-in-time recovery and on-demand backups cover restores.
A table holds items (rows up to 400 KB) made of attributes; apart from the key, every item can have different attributes. Types include strings, numbers, binary, booleans, lists, maps and sets.
A primary key is a partition key, or partition plus sort key for one-to-many groups queried by range. Global secondary indexes add other key shapes with eventually consistent reads; local secondary indexes share the partition key and must exist at table creation.
List every query first, then shape keys to serve them — often several entity types in one table with composite sort keys like ORDER#2024-01-05. Spread writes across partition keys to avoid hot partitions.
On-demand mode bills per request and absorbs spikes; provisioned mode sets read and write capacity units, optionally auto-scaled, and is cheaper for steady traffic. A strongly consistent read costs twice an eventually consistent one.
Items max out at 400 KB, a Query page returns at most 1 MB, transactions cover up to 100 items, and each partition handles about 3,000 reads and 1,000 writes per second. Account-level table and throughput quotas can be raised.
An ordered, 24-hour change log of item-level writes, consumed by Lambda triggers or the Kinesis adapter. Use it for audit trails, search indexing, cache invalidation or fan-out without dual writes.
A downloadable version (JAR or Docker image amazon/dynamodb-local) for development and tests without an AWS account. Point the SDK at http://localhost:8000; it does not emulate throughput limits.
Managed in-memory caching with Valkey, Redis OSS or Memcached engines, either node-based clusters or a serverless option. Put it in front of databases for hot reads and sessions, inside private subnets, with encryption in transit turned on.
Limits on nodes per cluster, shards per cluster and clusters per Region, plus serverless data and request ceilings. Check them in Service Quotas before a big launch and request increases early.
Elastic Container Registry stores Docker and OCI images in private or public repositories integrated with IAM. Log in with aws ecr get-login-password, enable image scanning, set tag immutability and add lifecycle policies so old images do not pile up.
CloudFront is AWS's CDN: edge locations cache responses close to users and terminate TLS, in front of S3, load balancers or any HTTP origin. Cache, origin request and response headers policies control what forms the cache key and what reaches the origin.
A distribution maps a domain to one or more origins through ordered cache behaviours matched by path. Use origin access control so S3 buckets stay private, attach an ACM certificate from us-east-1, and add WAF for protection.
Remove cached objects before their TTL ends by path or wildcard (/assets/*). The first 1,000 paths a month are free; versioned file names (app.3f2a.js) are cheaper and instant, so reserve invalidations for HTML and mistakes.
Elastic Container Service is AWS's own container orchestrator: you describe containers in task definitions and ECS places and keeps them running on EC2 capacity or Fargate. It is simpler than Kubernetes and integrates directly with ALB, IAM, CloudWatch and Secrets Manager.
A cluster is a logical grouping of capacity. On EC2, each instance runs the ECS container agent, which registers it and starts tasks; the ECS-optimised AMI ships with the agent preinstalled.
A task is a running instance of a task definition — images, CPU and memory, ports, environment, secrets and log config. The task role grants the app AWS permissions; the execution role lets ECS pull images and read secrets.
Keep a desired count of tasks running, register them with a load balancer target group and roll out new task definitions with rolling or blue/green deployments. Service auto scaling adjusts the count from metrics.
When tasks run on EC2, an Auto Scaling group built from a launch template supplies the instances. Wire it up as a capacity provider with managed scaling so the group grows when tasks cannot be placed.
Serverless capacity for containers: no instances to patch or scale, billed per vCPU and GB-second of each task. It costs more per unit than well-packed EC2 but removes cluster management; Fargate Spot discounts interruptible tasks.
Elastic Kubernetes Service runs a managed, upstream-compatible Kubernetes control plane; you add managed node groups, Karpenter-provisioned nodes or Fargate. Choose it when you want the Kubernetes ecosystem or portability, and budget for the extra operational surface compared with ECS.
Lambda runs a function in response to events and bills per request and millisecond of execution, scaling from zero to thousands of concurrent copies. Functions are stateless, capped at 15 minutes, and get CPU in proportion to the memory you set.
Deploy a zip or container image with a handler, runtime, memory and timeout. Invocation is synchronous (API Gateway, aws lambda invoke), asynchronous with retries and destinations (S3, SNS), or by polling event source mappings (SQS, Kinesis, DynamoDB Streams).
Zip archives of libraries or runtime files mounted under /opt and shared across functions, up to five per function. Container images and bundlers have made them less essential, but they still suit shared extensions like monitoring agents.
Run any language by providing a bootstrap executable that talks to the Runtime API on the OS-only provided.al2023 runtime. Common for Rust, Go and native-compiled binaries.
Publishing creates an immutable numbered version; an alias such as prod points at one and can split traffic between two for canary releases. Point triggers at aliases, not $LATEST.
EventBridge rules invoke functions when matching events arrive, and EventBridge Scheduler runs them on cron or rate expressions with time zones, retries and one-off schedules.
A new execution environment must download code and initialise, adding latency to the first request. Keep packages small, initialise clients outside the handler, and use provisioned concurrency or SnapStart where it matters. Limits include 15-minute runs, 10 GB memory and payload caps.
A managed front door that maps HTTP routes to Lambda and other backends. HTTP APIs are cheaper and simpler; REST APIs add request validation, usage plans and API keys; WebSocket APIs keep two-way connections.
Node.js or Python functions run at CloudFront locations on viewer or origin requests and responses — rewrites, auth checks, header changes. For tiny viewer-side tweaks, CloudFront Functions are cheaper and faster.