AWS Cloud Engineering
Build, run and recover a real service on AWS, one lab at a time.
Learn AWS hands-on by growing one sample file-processing service: uploads land in S3, events go through a queue to a worker, results go to a database, and everything is deployed with infrastructure as code. You will secure a sandbox account, compare runtime and data services, connect them privately, automate releases with GitHub Actions and short-lived credentials, observe and secure the service, and prove recovery and rollback. Modules 1–2 are for beginners, modules 3–7 are intermediate, and modules 8–12 cover advanced build and operations. You need basic command-line and Git skills; Linux Administration, Computer Networking and AWS Solutions Architect – Associate give deeper context, and Full DevOps with Python is a good follow-on. Every lab has a budget alert and a cleanup step, and higher-cost services have a local, Free Tier or design-only alternative.
01Accounts and cloud foundations
Beginner. How AWS is laid out, a sandbox account with a safe sign-in and budget, and CLI access with temporary credentials. Prerequisite: basic command line and Git.
- Find your way around AWS infrastructure and the consoleAWS runs its services in Regions, which are separate geographic areas, and each Region contains several Availability Zones made of one or more data centres with independent power and networking. Edge locations sit closer to users and serve CloudFront and Route 53 traffic. Knowing whether a service is global, regional or zonal, and which security jobs are yours rather than AWS's, tells you where your resources live and what you must protect.12 min
- Lock down a new AWS account and cap lab costsThe root user of a new AWS account can do everything, including closing the account, so you protect it with a strong password and MFA and then stop using it. Day-to-day work happens through IAM Identity Center or another administrative sign-in. A budget with email alerts, consistent tags and a cleanup check stop a forgotten lab from turning into a surprise bill.12 min
- AWS CLI profiles, temporary credentials and caller identityThe AWS CLI can sign in through IAM Identity Center and receive temporary credentials instead of storing long-lived access keys. aws sts get-caller-identity tells you which account and role you are acting as, and the Region comes from a flag, an environment variable or the profile. SDKs and the CLI search for credentials in a fixed order, so knowing that order explains why a command uses the identity it does.12 min
02Identity and guardrails
Beginner. How IAM decides allow or deny, roles for people, workloads and CI, and account-level guardrails.
- Trace an AWS request through IAM policy evaluationEvery AWS request is checked against all the policies that apply to it: identity policies on the caller, resource policies on the target, organization guardrails, permissions boundaries and session policies. An explicit deny anywhere wins, an allow is needed from the right places, and anything not allowed is implicitly denied. Learning that order lets you read an AccessDenied message and point at the policy that caused it.12 min
- Separate access for people, workloads and CI on AWSDifferent callers need different kinds of identity. People sign in through IAM Identity Center and get a permission set per account; services running on AWS use roles attached to the Lambda function, ECS task or EC2 instance; CI systems outside AWS swap a signed OIDC token for a short role session. Root is kept for the few tasks only root can do, and IAM users with access keys are retired.12 min
- Grow from one sandbox to a multi-account landing zoneAs usage grows, one sandbox account becomes many accounts grouped in AWS Organizations. Organizational units (OUs) group accounts, service control policies (SCPs) set the maximum permissions anyone in those accounts can have, and AWS Control Tower sets up a landing zone with logging, security accounts and ready-made controls. Separate sandbox, dev and prod accounts give hard boundaries for blast radius and billing.12 min
03Connect private and public services
Intermediate. VPC traffic paths, private access to AWS APIs, and edge and hybrid connectivity.
- Follow a packet through public and private VPC subnetsA VPC (virtual private cloud) is your own private network inside an AWS Region, split into subnets that each live in one Availability Zone. Whether a packet gets through depends on four things in order: the route table of its subnet, the security group on the network interface, the network ACL on the subnet, and a gateway such as an internet gateway or NAT gateway. Learning to trace those four checks is how you design a safe layout and fix most connection failures.14 min
- Call AWS APIs privately with VPC endpointsVPC endpoints let resources in private subnets call AWS services such as S3, SQS or Secrets Manager without going through a NAT gateway or the internet. Gateway endpoints exist only for S3 and DynamoDB and work by adding a route; interface endpoints put a network interface with a private IP into your subnets, powered by AWS PrivateLink. When a private call fails, the cause is almost always one of four things: DNS, routing, a security group or a policy.12 min
- Choose load balancers, DNS, CDN and hybrid links on AWSTraffic reaches an AWS application through a chain of services: Route 53 answers the DNS lookup, CloudFront caches content near users, AWS WAF filters bad requests, and a load balancer spreads requests across healthy targets. Behind the scenes, Transit Gateway joins many VPCs, and Site-to-Site VPN or Direct Connect link them to an office or data centre. Each service solves one job, and picking the right one starts with the traffic flow you need.13 min
04Compare EC2, containers and serverless
Intermediate. Running EC2 fleets, containers on ECS and Fargate, when EKS pays off, and a small Lambda API.
- Run a self-healing EC2 fleet behind a load balancerAn EC2 fleet is a group of identical virtual machines that an Auto Scaling group keeps at the size you ask for. A launch template says how to build each instance (AMI, instance type, disk, role, security group, start-up script), and an Application Load Balancer sends traffic only to instances that pass its health check. Add Session Manager for shell access and you get servers that replace themselves when they fail and never need an open SSH port.12 min
- Ship a container image to ECS on FargateAmazon ECS runs containers for you, and Fargate supplies the compute so there are no servers to patch. You push an image to Amazon ECR, describe how to run it in a task definition, and an ECS service keeps the desired number of tasks running, replacing failures and rolling out new versions. Two IAM roles matter: the execution role lets ECS pull the image and write logs, and the task role is what your code uses to call AWS.12 min
- Decide between EKS and ECS for a container workloadAmazon ECS and Amazon EKS both run containers on AWS, but they make different trade-offs. ECS is an AWS-native orchestrator with no control plane to pay for or upgrade, while EKS runs upstream Kubernetes, which brings its huge tool ecosystem and portability along with more moving parts. The right choice depends less on the workload than on the team that has to run it.11 min
- Build a small HTTP API with Lambda and API GatewayAWS Lambda runs your function only when an event arrives, and Amazon API Gateway turns HTTPS requests into those events. Together they give you a small HTTP API with no servers, billed per request and per millisecond of run time. The design limits are what you must learn: payload sizes, timeouts on both services, how many copies of the function can run at once, and the extra delay of a cold start.13 min
05Persist files and application state
Intermediate. S3 uploads and lifecycle, block and file storage with restores, relational databases and DynamoDB design.
- Accept file uploads to S3 with presigned URLsA presigned URL lets a browser or phone upload one file straight to S3 without ever holding AWS credentials. Your backend signs the URL with its own role, the client sends a PUT to it, and the bucket stays private, encrypted and versioned. A lifecycle rule then cleans up old versions and half-finished uploads so storage costs do not creep up.11 min
- Back up and restore EBS, EFS and FSx dataEBS gives one EC2 instance a disk, EFS gives many Linux machines a shared NFS file system, and FSx offers managed Windows, Lustre, NetApp ONTAP and OpenZFS file systems. Each has its own way to back up, and AWS Backup can schedule and keep those backups in one place. A backup only counts once you have restored from it and checked the data.11 min
- Operate RDS and Aurora: access, pooling and recoveryAmazon RDS runs a managed relational database engine on instances you size, while Aurora is AWS's MySQL- and PostgreSQL-compatible engine with a shared, replicated storage layer. Both belong in private subnets, reached only by your app's security group. RDS Proxy pools connections, read replicas take read traffic, and automated backups let you restore to a point in time.11 min
- Design a DynamoDB table from its access patternsDynamoDB is a key-value and document database that answers queries fast at any scale, but only for questions you design the keys for. You list your access patterns first, then choose a partition key and sort key so each pattern becomes one Query. Condition expressions protect writes, and indexes, TTL, read consistency and capacity mode finish the design.11 min
06Queues, events and orchestration
Intermediate. Reliable SQS consumers, routing events with SNS and EventBridge, and multi-step workflows with Step Functions.
- Process SQS messages reliably with retries and a DLQAmazon SQS holds messages until a worker is ready, so a burst of uploads does not overwhelm the processing code. Standard queues deliver every message at least once, which means sometimes twice, and a failing message comes back again and again. A reliable consumer sets the right visibility timeout, reports only the failed messages in a batch, ignores duplicates and parks poison messages in a dead-letter queue that you can replay later.11 min
- Route one S3 event to many consumers on AWSWhen a file lands in S3, several parts of the system may care: the processor, a thumbnail maker and an audit log. S3 can send that object-created event to EventBridge, which matches it against rules, or to SNS, which copies it to every subscriber. Putting an SQS queue in front of each consumer lets each one work at its own pace and retry on its own.10 min
- Orchestrate multi-step work with Step FunctionsAWS Step Functions runs a workflow defined as a state machine in Amazon States Language, a JSON format. Each state does one thing, such as calling Lambda or writing to DynamoDB, and Step Functions keeps the workflow's state, retries failed steps and can run compensation steps when something cannot be fixed. For a single step, a queue and a worker are often simpler.11 min
07Operate a small data pipeline
Intermediate. Querying an S3 data lake, streaming and warehousing choices, and data governance.
- Query a partitioned S3 data lake with Athena and GlueA data lake on AWS is just files in S3 plus a catalog that says what those files mean. The AWS Glue Data Catalog stores table definitions (columns, format, location, partitions), and Amazon Athena runs SQL over the files without any servers to manage. Athena bills by the bytes it scans, so the way you lay out and format the files decides both speed and cost.12 min
- Choose AWS streaming and data warehouse servicesStreaming services move events continuously and let consumers read them in order, while a data warehouse stores cleaned data for fast analytical SQL. On AWS the main streaming choices are Amazon Kinesis Data Streams and Amazon MSK (managed Apache Kafka), and the main warehouse is Amazon Redshift. The right pick depends on how far back you must replay, how your event schema will change, the skills on your team and what you will pay while idle.12 min
- Govern data on AWS with Lake Formation and retentionData governance answers who owns each data set, who may read which parts of it, how sensitive data is protected and when data is deleted. AWS Lake Formation adds database, table, column and row permissions on top of the Glue Data Catalog, and can share tables with other accounts. Retention is enforced with S3 lifecycle rules, Object Lock and documented owner decisions.12 min
08Infrastructure as code and deployment
Advanced. One primary IaC tool, CI deploys with GitHub OIDC, and canary releases with tested rollback.
- Define AWS infrastructure with CloudFormation or CDKInfrastructure as code means you describe your buckets, queues, functions and roles in files, and a tool creates and updates them for you. AWS CloudFormation deploys templates as stacks, and the AWS CDK lets you write the same thing in a programming language that it turns into a CloudFormation template. Pick one primary tool, always preview a change before applying it, and let failed updates roll back on their own.13 min
- Deploy to AWS from GitHub Actions with OIDCGitHub Actions can deploy to AWS without any stored access keys. Each workflow run asks GitHub for a signed OpenID Connect token, and AWS STS swaps it for short-lived credentials of an IAM role whose trust policy names the exact repository, branch or environment allowed. Add validation before deploy, a required approval for the environment and smoke tests after it, and CI becomes a safe, repeatable release path.11 min
- Canary releases and rollback with Lambda aliases or ECSProgressive delivery sends a new version a small share of real traffic first, watches health metrics, and only then shifts the rest. On AWS, Lambda aliases can split traffic between two versions by weight, and ECS services can roll out with a deployment circuit breaker, CloudWatch alarms, or built-in blue/green and canary strategies. A release is only safe when the rollback is automatic, tested and does not depend on undoing a database change.12 min
09Observability, security and response
Advanced. Telemetry, audit and configuration history, keys and secrets, security findings and cost operations.
- Investigate an AWS incident with metrics, audit and config historyCloudWatch, CloudTrail and AWS Config answer three different questions during an incident. CloudWatch shows how the service behaved (metrics, logs and traces), CloudTrail shows who called which AWS API and when, and Config shows how a resource's settings changed over time. Used together on one timeline, they turn a vague outage into a clear story with a cause.12 min
- Protect keys and secrets with KMS and Secrets ManagerAWS KMS holds encryption keys and decides who may use them, while Secrets Manager and Parameter Store hold the values your code needs, such as database passwords and API keys. Every read of an encrypted secret depends on three things: the store's own permission, the IAM policy of the caller and the KMS key policy. Rotation replaces a secret on a schedule so a leaked value stops working.12 min
- Triage AWS security findings from GuardDuty to MacieAWS has four detective services that look at different risks. GuardDuty spots suspicious activity, Inspector finds software vulnerabilities, Macie finds sensitive data in S3, and Security Hub brings findings and best-practice checks into one place. A defender's job is to turn their many findings into a short, ordered list of fixes.11 min
- Track and reduce AWS spend for a running workloadFinOps is the habit of looking at cloud spend as often as you look at errors. With cost allocation tags and Cost Explorer you can see what each service and team costs, anomaly detection warns you about surprises, and right-sizing plus commitments such as Savings Plans lower the steady part of the bill.11 min
10Production architecture and recovery
Advanced. Choosing a recovery pattern, planning a migration, and running a Well-Architected review.
- Pick and test a recovery pattern for an AWS workloadDisaster recovery (DR) is your plan for getting a workload back after a big failure, such as a lost Region, deleted data or a bad deploy that corrupts records. You choose a pattern from two numbers: how much data you can lose (RPO) and how long you can be down (RTO). Faster recovery costs more, and no plan counts until you have tested it.11 min
- Plan a staged migration to AWS with validationA migration moves existing servers, databases and files into AWS in planned waves rather than all at once. AWS Application Migration Service rehosts servers, AWS Database Migration Service moves database data while the source keeps running, and DataSync copies file shares and object data. Each wave ends with validation and a cutover that has a rollback plan.11 min
- Run a Well-Architected review and build a backlogA Well-Architected review is a structured conversation about a workload against AWS best practices in six pillars. You answer questions honestly, record high and medium risks, and turn them into a short, prioritised improvement backlog. The free AWS Well-Architected Tool in the console keeps the answers, risks and milestones in one place.11 min
11Managed ML and generative AI
Advanced. Calling foundation models through Amazon Bedrock, and where SageMaker fits for your own models.
- Call Amazon Bedrock from an app with scoped accessAmazon Bedrock lets your application call foundation models from several providers through one AWS API, so you do not run any model servers yourself. The application signs each request with an IAM role, picks a model or inference profile, and pays per token. The engineering work is scoping that role tightly, choosing a model that fits the task, deciding what gets logged, and staying inside token quotas and budget.14 min
- Train, register and host a model with SageMaker AIAmazon SageMaker AI (renamed from Amazon SageMaker in December 2024) is the AWS service for training, registering, hosting and watching your own machine learning models. You pay for the instances your jobs and endpoints use, and you own the data, the training code and the model quality. Many generative AI tasks are cheaper and faster with a foundation model API such as Bedrock; SageMaker AI earns its place when you need a model trained on your own labelled data or full control of how it is served.13 min
12File-processing platform
Advanced. Design, deploy, operate and tear down the file-processing service with evidence for each step. Optional follow-on: AWS certifications.
- AWS capstone: design the file-processing architectureThe capstone starts on paper: before you deploy anything, you write down how a file moves through the service, who may touch what, how long data lives, what it costs and how fast you must recover. These design documents become the checklist you test against in the delivery and operations milestones. A reviewer should be able to read them and predict the bill, the blast radius of a leaked credential and the recovery time.14 min
- AWS capstone: deploy the pipeline with infrastructure as codeThis milestone turns the design into a stack that any CI run can build and tear down. You describe the bucket, queues, functions, table and roles in infrastructure as code, deploy them from GitHub Actions using short-lived OIDC credentials, and prove the pipeline works by sending sample files through it. Extensions add a scoped API and a written design for running the worker as a container.13 min
- AWS capstone: operate, recover and clean up the platformThe last milestone proves the service can be run, not just deployed. You follow one file through every log, show that a duplicate message changes nothing, break a delivery on purpose and replay it, roll back a release or restore data within your stated RTO, and finally delete everything and check the bill. Each step produces evidence, such as a query result, a screenshot or a command output, that goes into your capstone report.13 min