This paper, presented at SIGCSE 2025, details the design and implementation of a new undergraduate course at Stanford University titled "Cloud Infrastructure and Scalable Application Deployment." The authors argue that while cloud computing is a cornerstone of modern industry, it is often neglected in computer science curricula, leaving students ill-prepared for the "paradigm shift" required to build cloud-native systems.
TL;DR
Stanford researchers developed an undergraduate course that treats cloud deployment as a rigorous software engineering discipline rather than an operational afterthought. By centering the curriculum on Infrastructure-as-Code (IaC) and cloud-native design patterns, they successfully taught students how to architect scalable, secure, and cost-effective systems on AWS.
What Problem Does This Paper Address?
Most CS students encounter the cloud in one of two ways: either as a "black box" to host a simple web app (often a single Virtual Machine) or as a theoretical topic in a high-level distributed systems course.
This creates a dangerous gap. In industry, "cloud-native" development requires a fundamental shift in mindset:
- Ephemeral State: Compute resources are temporary; state must live in managed services.
- Shared Responsibility: Cloud providers secure the "hardware," but developers are responsible for securing how they use the services (e.g., IAM roles, VPC configurations).
- The "Bill Shock" Risk: Without understanding elasticity and cost models, a simple mistake can lead to thousands of dollars in unexpected charges or catastrophic security leaks.
The authors tackle this by creating a hands-on primer that moves beyond "clicking buttons in a console" to systematic, code-driven infrastructure management.
Methods
The course was structured as a 10-week elective consisting of lectures, four technical assignments, and a final project. The pedagogical "secret sauce" was the heavy emphasis on Infrastructure-as-Code (IaC).
- Tooling: The course used the AWS Cloud Development Kit (CDK), allowing students to define infrastructure using Python—a language they already knew.
- The "Yoctogram" Stack: To provide a realistic environment, the authors designed a custom social media platform called Yoctogram (FastAPI, React, PostgreSQL). Students were tasked with deploying and scaling this app using managed services like ECS Fargate (containers), RDS (databases), and S3 (storage).
- Automated Grading: The staff built a custom autograding pipeline using Open Policy Agent (OPA) to verify that student infrastructure met security best practices (e.g., no public S3 buckets) and used headless Chromium to test the functionality of the deployed web apps.
- Guest Lectures: Industry leaders provided "real-world" context on topics like cloud billing and high-performance computing.
Datasets
As an educational case study, the "dataset" consists of the student cohort and their performance:
- Participants: 50 students (primarily CS juniors, seniors, and coterminal master's students).
- Evaluation: Qualitative and quantitative feedback from an end-of-quarter survey (39 respondents) and assignment completion rates.
- Resources: Each student was provided with $200 in AWS credits.
Key Insights and Ideas
- IaC as a Mental Map: Writing code to define a network (VPC) or a database helps students visualize dependencies much more clearly than navigating a complex web GUI.
- The Debugging Wall: Cloud debugging is fundamentally different from local debugging. Errors are often cryptic, and deployment cycles can take minutes or even hours. The authors found that students need specific "domain-specific debugging skills" to survive this environment.
- Security is Not Optional: By integrating IAM (Identity and Access Management) into every assignment, students learned that security is a core architectural component, not a final checklist item.
- Abstraction vs. Reality: The authors initially provided a lot of "scaffolding" (starter code) to help students. However, they realized this sometimes prevented students from making—and learning from—important architectural choices.
Key Results
- High Engagement: Completion rates were remarkably high: 100% for the first assignment and 90% for the final, most complex CI/CD assignment.
- Student Satisfaction: 72% of students reported learning "a great deal" or "a lot." Students specifically noted that the course provided the "missing building block" for their full-stack awareness.
- Creative Output: For final projects, students moved beyond the provided templates to build complex systems, including an arcade Minecraft server with a CI/CD pipeline and an LLM-powered Chrome extension deployed on ECS Fargate.
Limitations and Future Work
- CDK Friction: The AWS CDK occasionally suffered from "state management" issues where deployments would hang for over an hour. The authors are considering switching to OpenTofu (a Terraform fork) to provide a more stable experience.
- Prerequisite Gaps: Even advanced students struggled with basic networking (DNS, TLS, VPCs). Future versions of the course will include more robust "primer" materials on these fundamentals.
- Billing Logistics: A few students were hit with personal credit card charges after the term ended because they failed to "tear down" their resources. The authors plan to move to AWS Organizations to centralize billing and protect students from accidental costs.
The course materials are open-source and available at https://infracourse.cloud.
Summary updated