Skip to content

Lesson 30 of 30Putting it together

Wrap-Up: AWS

Tie the AWS track together: one realistic launch walked through from an empty account to a monitored, keyless deploy, a mixed review, and where to go next.

14 min read0/6 questions

You started this track with Cloud Basics, a root user to lock away and a budget alert. Since then you have written IAM policies, built VPCs, chosen databases, run code on Lambda and Fargate, wired queues and alarms, and turned all of it into code that deploys itself. On the job these never arrive one lesson at a time. This lesson lines the units up once more and then uses them together on one piece of work.

The path you took

The AWS course, unit by unit
  1. Unit 1

    Core services

    IAM, EC2, S3, VPCs and managed databases gave you the parts almost every AWS system is built from, and the vocabulary to talk about them.

  2. Unit 2

    Identity and security

    Policy evaluation, multiple accounts, KMS, secrets and incident response showed you how to keep those parts locked down before you add more of them.

  3. Unit 3

    Modern AWS

    Lambda, load balancers, containers, CloudFront, queues, monitoring and the SDK gave you real ways to run, connect and watch an application.

  4. Unit 4

    Infrastructure as code

    Terraform, CDK and GitHub Actions with OIDC turned everything you clicked together into reviewed code with a repeatable, keyless deploy.

  5. Unit 5

    Putting it together

    Cost, Well-Architected reviews, certifications and a full-stack deploy showed how a working system is judged, paid for and shipped.

How it fits together

The ticket: "We are launching a booking app. A Next.js frontend, a FastAPI backend, Postgres, and customers can upload a photo for their profile. Confirmation emails must go out even if the email provider is slow. Launch is in six weeks, and finance wants to know what it will cost per booking." Here is how the track shows up, in the order you would really work.

Accounts and people first. Before any resource exists, you ask where it will live. Following Multiple Accounts, Organizations and SSO, the app gets separate dev and prod accounts in the organization, an SCP that blocks unused Regions, and CloudTrail flowing to the log archive. Everyone signs in through IAM Identity Center and aws sso login, so nobody has an access key on their laptop. The root users have MFA and no keys, exactly as Cloud Basics said on day one, and each account has a budget alert.

The network. You plan the address space before writing the VPC, because overlapping ranges are painful to fix later (Advanced VPC Networking). Each environment gets a VPC with public, private and isolated subnets across two Availability Zones, the three-tier layout from VPC Networking. Security groups reference each other: the load balancer may reach the tasks, the tasks may reach the database, and nothing else. A gateway endpoint for S3 keeps upload traffic off the NAT gateway.

Data. The bookings are relational and need transactions, so Databases on AWS points you to RDS Postgres, Multi-AZ in prod, in the isolated subnets. Its password lives in Secrets Manager with rotation turned on, and the tasks read it at start through their role, never from a file in the repo (KMS, Secrets Manager and Parameter Store). Photos go to a private S3 bucket with Block Public Access on. The browser uploads directly with a presigned URL that the API hands out, as in S3, so large files never pass through your containers.

Compute and the front door. Traffic is steady during the day, the team already ships Docker images, and the API holds database connections, so Choosing Container Compute: ECS, Fargate, EKS and Lambda lands on ECS with Fargate. The image goes to ECR, the service runs tasks in private subnets, and an Application Load Balancer with an ACM certificate sits in front (Containers on AWS, API Gateway and Load Balancing). CloudFront serves the static frontend from S3 through Origin Access Control and sends /api/* uncached to the ALB, with a Route 53 alias record for the domain (CloudFront and Route 53).

Work that should not block a request. Sending the confirmation email inside the request would make bookings slow whenever the email provider is slow. Instead the API puts a message on an SQS queue and returns. A small Lambda function consumes it with partial batch failure reporting, and messages that keep failing land in a dead-letter queue (Queues and Events, Lambda and Serverless). Each piece has its own execution role that can do only its job, written with the least-privilege habits from IAM and checked against the evaluation flow in IAM Policies in Depth.

Seeing it. The API writes structured JSON logs with a request ID. Alarms watch the ALB 5XX rate, p99 latency and the dead-letter queue depth, and log groups have a retention period instead of "Never expire" (Monitoring and Logs). GuardDuty and Security Hub are on in every account, so a leaked key or an open bucket becomes a finding, not a surprise (AWS Security Services and Incident Response).

Making it code. None of this was clicked together. Following Infrastructure as Code: Choosing a Tool, the team picks CDK because the app engineers write TypeScript and Python, and AWS CDK in Depth shapes the stacks: network, data and app, with the database marked to be retained so a refactor cannot replace it. CI/CD to AWS with GitHub Actions adds the pipeline: tests, one image built and pushed by digest, a deploy to dev, an approval gate, and the same digest promoted to prod through an OIDC role. Rollback means redeploying the previous digest, not rebuilding.

Answering finance. Before launch you tag every resource by app and environment and turn on cost anomaly detection. Then you read the expected bill line by line, as in Cost and the Well-Architected Framework, and spot the usual suspects: NAT gateway data processing, idle dev environments and log storage. You divide monthly spend by bookings to get the unit cost finance asked for, and you run a quick Well-Architected review that flags one gap: nobody has tested a database restore. You schedule one.

Notice that no lesson was used alone. The roles from IAM made the queue consumer safe, the subnets decided where the database could live, the queue kept the API fast, and CDK and OIDC made the whole thing repeatable. That is Deploying a Full-Stack App with the reasons attached.

Check yourself

Quick check
An ECS task can reach the internet but gets AccessDenied reading from an S3 bucket in the same account. The bucket policy does not mention the task. What is the most likely cause?
Need a nudge? A hint rules out a wrong answer.
Predict the outputPython

What does this print?

import ipaddress

subnet = ipaddress.ip_network("10.0.16.0/20")
print(subnet.num_addresses - 5, subnet[0], subnet[-1])
Need a nudge? Hints walk you through it.
Match the pairs0/6 matched

Match each need to the service you would reach for first.

Choose an item, then its match on the other side.
Put it in order6 steps

Put the launch work in a sensible dependency order.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.
Quick check
Your bill jumped after launch, mostly a line called NAT gateway data processing. The tasks pull images and write photos to S3. What is the best first fix?
Need a nudge? A hint rules out a wrong answer.
Quick check
A teammate renames a construct in the CDK stack that holds your RDS database, and cdk diff shows the database will be replaced. What should happen next?
Need a nudge? A hint rules out a wrong answer.

What you can do now

  • Set up AWS accounts safely, with Identity Center sign-in, budgets and no long-lived keys on laptops or in CI.
  • Write least-privilege IAM policies and debug an AccessDenied by walking the evaluation flow.
  • Design a VPC with public, private and isolated subnets, do the CIDR math, and explain how a request reaches the database.
  • Choose between EC2, Lambda, ECS on Fargate and EKS, and between RDS, Aurora and DynamoDB, with reasons.
  • Decouple slow work with queues and events, and monitor it with logs, metrics, alarms and traces.
  • Define the whole stack in CDK or Terraform and ship it through GitHub Actions with OIDC, approval gates and rollback.
  • Read an AWS bill, find the usual cost traps and talk about cost per user or per request.

That is a solid junior-to-mid level for a developer who owns their service on AWS. What you do not have yet is the scar tissue from running large systems for years: multi-Region failover under real load, big migrations, or an organization with hundreds of accounts. That comes from practice and from the next courses.

Mistakes that still catch people

  • Long-lived access keys. Keys in a laptop's credentials file or a CI secret leak sooner or later. Revisit IAM, Multiple Accounts, Organizations and SSO and CI/CD to AWS with GitHub Actions.
  • Wildcards in policies. "Action": "*" on "Resource": "*" gets a demo working and stays forever. Revisit IAM Policies in Depth.
  • Treating a timeout as a permissions bug, or the reverse. Timeouts are usually security groups, routes or a missing endpoint; AccessDenied is IAM. Revisit VPC Networking and Advanced VPC Networking.
  • Doing slow work inside the request. Emails, image processing and third-party calls belong on a queue. Revisit Queues and Events and Lambda and Serverless.
  • Clicking a fix in the console. The next deploy reverts it or drifts around it. Revisit Infrastructure as Code: Choosing a Tool and Terraform on AWS.
  • Finding out about cost from the invoice. NAT data processing, idle environments and logs kept forever add up quietly. Revisit Cost and the Well-Architected Framework and Monitoring and Logs.

Where to go next

The natural next course is AI Engineering: many teams now add model calls, retrieval and agents to apps exactly like the one in this lesson, and everything here about queues, secrets, cost and monitoring applies directly. After that, Engineering at Work covers the code reviews, incidents and on-call habits that running a real AWS service demands. If you have not done it yet, System Design is where the architecture choices in this track get stress-tested at larger scale, and Interview Prep helps you tell these stories under time pressure. If a certification fits your goals, AWS Certifications: Which, When and How has the study plan.

Real practice matters as much as the next course:

  • Deploy something real and keep it running. Project: A Serverless Feature Flag API is a good base to extend. A small app with a domain, CDK or Terraform, OIDC deploys and alarms. Then tear down and rebuild it from code to prove you can.
  • Run a game day. Delete a task, block a security group rule or fill a queue, and practice finding the cause from your dashboards and logs alone.
  • Read the official docs. The AWS Well-Architected Framework, the IAM policy evaluation logic page and the service quotas page for anything you use will answer questions for years.
Key terms
least privilege
Granting each identity only the actions and resources it needs, so a mistake or leak does limited damage.
three-tier VPC
A network with public subnets for load balancers, private subnets for compute and isolated subnets for data, spread across AZs.
decoupling
Putting a queue or event bus between components so a slow or failing one does not block or break the others.
OIDC role
An IAM role that trusts an external identity provider such as GitHub, so CI gets temporary credentials instead of stored keys.
drift
The difference between what your infrastructure code describes and what actually exists, usually caused by manual changes.
unit economics
Cloud cost divided by a business measure, such as cost per booking or per active user, which shows whether spend scales sensibly.
dead-letter queue
A queue that collects messages which failed processing too many times, so they can be inspected instead of lost.