โ˜๏ธ PuffCloud Computing 101๐ŸŽž๏ธ Slides

Project ยท Build it, defend it

Your platform, your idea, and your defense in front of me

๐ŸŽฏ By the end of the project

๐Ÿ—“๏ธ How the project runs

The project isn't a last-day exercise anymore: the whole course is the project.
Groups of 3 from course 2, one Git repo per group, one milestone per course, checked with ./checks/check.sh M<n>.

MilestoneCourseDone when
M0 setup + IAM1 (catch-up in 2)Floci runs, one IAM user per member, the auditor's AccessDenied saved
M1 compute + data2Your app from GitHub on ECS behind a load balancer, RDS up, status page on S3
M2 network3Custom VPC, only the load balancer answers, app and database private, an intruder container is blocked
M3 security + ops4Secret out of your config, logs in CloudWatch, an alarm that lands in your pager queue, a least-privilege role proven by an AccessDenied
M4 scale + edge52 containers in 2 AZs, a live kill drill, your own autoscaler (alarm โ†’ Lambda), CloudFront, your idea designed
M5 as code6Everything in CloudFormation, wiped and rebuilt in one command, idea built, then your defense

The app is yours to pick: any simple app on GitHub with a Dockerfile. We grade the cloud around it, never the app.

๐Ÿช Your group is a small platform team

For six courses you built your own small platform, around an app from GitHub.
Here's what you have:

Whoever uses a platform doesn't care that you used a VPC (Virtual Private Cloud, your private network inside AWS). They ask four things:

  1. Will it be up when I need it?
  2. What happens when something breaks?
  3. What would it cost each month on real AWS?
  4. Is my data safe?

Your defense answers those with a working platform, a diagram and a short demo.

๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ Your team and your repo

Groups of 3, formed in course 2. Your repo is the shared truth, not a laptop: infra/deploy.sh (then your CloudFormation templates) must rebuild your whole platform from zero on any member's machine, laptop or Codespace.
Each member runs Floci on their own machine, so each can break, wipe and rebuild without blocking the others.

๐Ÿ“‹ Pick your idea

Every group picks one small idea from school life at EPITA Paris and adapts its platform to it. No new app to write: your app from GitHub stays the same, the idea changes how your cloud around it behaves.
At most 6 groups per idea, first come first served.

1. The midnight deadline. A project is due at 23:42. Nobody submits at 20:00, everybody submits between 23:20 and 23:42, and the submission page must not fall over in the last 10 minutes.

2. The live room board. A page shows which machine rooms on campus have free seats. A handful of people update it, hundreds of students refresh it every few seconds from their phones between two classes.

3. The internship CV drop. Students upload their CV for internships and alternance, and only the internship office may read them.

โœ… What your platform must offer

Every group builds this standard package, whatever their idea.
You built each piece in a milestone, and check.sh M2 to M5 test exactly these lines, nothing hidden.

What your platform offersWhy it mattersBuilt in
A private network (VPC) with public and private subnets in 2 AZsIf one data center fails, the other keeps goingM2
One public door only, the load balancer, and an intruder blocked from the appThe app and the database have no public address, so there's one entrance to watchM2
The database in private subnets, reachable only from the app's security groupThe data sits the furthest from the internetM2
No password in clear: Secrets Manager, injected by an execution rolePasswords in scripts leak into logs, screenshots and Git historyM3
Logs in CloudWatch and an alarm that pages youYou hear about a problem before your users doM3
A least-privilege deployer role, proven by an AccessDeniedA mistake or a stolen key can't delete everythingM3
2 or more containers in 2 AZs, surviving the kill drill, scaled by your own autoscalerA container dies or a crowd shows up, nobody noticesM4
A status page on S3 behind CloudFrontIt answers even when your app is down, and the cache absorbs traffic you'd pay forM4
Network and app in CloudFormation, rebuilt from zero in one command, tagged ProjectThe night everything is lost, you're back in minutes, identicalM5

Your request takes one road: the browser hits the load balancer, the only public door, which forwards to one of your containers in two private subnets, one per AZ. Only those containers can reach the database.
If a container dies, the load balancer stops sending it traffic and ECS starts a new one. Your alarm watches a number, and when it trips your pager gets a message and, for the load alarm, your autoscaler adds a container.

Key point: if something here is missing, say so in your defense.
A gap you name is a decision. A gap I find myself is a surprise, and nobody likes those in production.

โญ Extras that make your platform stand out

Do these only once the package works.
One extra done well beats three half-done.
Extras earn no points on their own, they make your idea and your answers stronger.

๐Ÿ“ How you're graded

The project is your whole grade for the course, out of 20.
15 points go to the group, 5 points to you alone. Following every course with your platform working gives you 10 by itself. Every line maps to one of the course's learning outcomes.

LinePointsWhoWhat I look atLearning outcome
Your platform works10Groupcheck.sh M2 to M5 at the freeze: lines passed / total ร— 10, rounded to 0.5. Follow every course and finish every milestone, that's 10/20. If something regresses by your slot, you lose that lineBuild an infrastructure to host a web app
Your idea3Group0: not handled. 1.5: designed in NOTES.md, or half working. 3: working live, and you say which option you rejected and whyAnalyse needs and constraints, design an aligned architecture
Break-fix2GroupI break one thing in your platform, I pick who takes the keyboard, the other two can only talk. 0: lost. 1: right area or cause found. 2: fixed within 2 minutes. No wipe and no rebuild during those 2 minutes, you fix what's brokenDemonstrate availability and resilience
Your question5YouOne question on a part of your platform I pick, not the one you say you built. 0: no answer. 1: names the right service. 3: explains what your setup does and why. 5: why, one tradeoff, and what changes at 10x traffic or on real AWSDesign an aligned architecture, present it on scalability, availability and resilience

At the start of the project block you also fill a 30 second anonymous form: did everyone in your group contribute? It's worth no points, it only tells me where to ask.

๐ŸŽค The defense: 8 minutes

Your slot is 8 minutes, timed, and the next group plugs in while you answer questions.
I stop you at 2:30 even mid-sentence, so rehearse once with a timer.

TimeWhat
2 min 30Your pitch. All three speak
2 minBreak-fix: I break something, one of you fixes it
3 minOne question each, about a minute per person
30 sSwap

During the questions I ask what happens if this breaks, what it would cost on real AWS and who sees the data.

A pitch that works:

Before and during your slot:

๐Ÿงช Hands-on: pre-flight check before your defense

10 minutes before your slot, on the machine you'll demo from, with Floci running:

# Every milestone, the same checks I read at your slot
for m in M2 M3 M4 M5; do ./checks/check.sh $m; done

# The app answers through the load balancer
curl -s -o /dev/null -w '%{http_code}\n' "http://$(aws elbv2 describe-load-balancers --names $GROUP-alb2 \
  --query 'LoadBalancers[0].DNSName' --output text)/"

# Your stacks, and what carries your tag
aws cloudformation describe-stacks --query 'Stacks[].[StackName,StackStatus]' --output table
aws resourcegroupstaggingapi get-resources --tag-filters Key=Project,Values=$GROUP \
  --query 'ResourceTagMappingList[].ResourceARN' --output table
# Every milestone, the same checks I read at your slot
foreach ($m in 'M2', 'M3', 'M4', 'M5') { .\checks\check.ps1 $m }

# The app answers through the load balancer
$DNS = aws elbv2 describe-load-balancers --names "$env:GROUP-alb2" --query 'LoadBalancers[0].DNSName' --output text
curl.exe -s -o NUL -w '%{http_code}\n' "http://$DNS/"

# Your stacks, and what carries your tag
aws cloudformation describe-stacks --query 'Stacks[].[StackName,StackStatus]' --output table
aws resourcegroupstaggingapi get-resources --tag-filters "Key=Project,Values=$env:GROUP" `
  --query 'ResourceTagMappingList[].ResourceARN' --output table
๐Ÿงฏ If it doesn't work
  • Something is red and you don't know why: ./wipe.sh then ./infra/rebuild.sh. That's what M5 is for, and it's 2 minutes.
  • The app doesn't answer right after a rebuild: containers start about 30 seconds after the stack.
  • A check about NOTES.md fails: the proof (AccessDenied, page, rebuild time, idea) isn't in NOTES.md, or isn't committed.
  • Floci itself is stuck: docker compose restart, wait 20 seconds.

๐Ÿงฏ Survival tips

Your diagram is on screen during the pitch, nothing to hand in.
Any diagram tool works (draw.io, Excalidraw, a readable whiteboard photo), as long as it shows:

๐Ÿค” Think about it

๐Ÿ’ก Hints
  • Price both options for a month in the Pricing Calculator: 4 containers all the time against 2 containers plus 2 more from 23:20 to 23:42 on deadline day.
  • Who suffers from 5 seconds of old data, and who suffers when 600 phones hit the database every 3 seconds? The cache time is the price of protecting the database.
  • What does CloudFront serve straight from S3, without the API or the database?
  • CloudFront caches only what you allow. Look at cache rules per path and the Cache-Control headers your API sends.
  • Compare RDS CPUUtilization, DatabaseConnections and ReadIOPS with the ALB's TargetResponseTime. Slow responses with calm server CPU point behind the servers.

๐Ÿ“š Go deeper

Back to the timeline