learntodriveai.dev/Cloud Engineering/First Infrastructure: Provision, Deploy, Verify
Cloud EngineeringProject 015 unitsVerified on 16 October 2026

First Infrastructure: Provision, Deploy, Verify

Dana KowalskiOwner · Craft brewery · Portland, Oregon, USA
Email · from Dana
Our website keeps going down. It's on shared hosting and every time we announce a new seasonal batch, the site crashes or gets so slow nobody can load it. Last quarter it was down for almost two hours right when people were trying to order.
Chat with Dana

What you hand back

  • A budget alarm set before any resource
  • A VPC, server and bucket built as Terraform code
  • The brewery site live on the new server
  • A plain-language monthly cost summary
  • A README and the code pushed to GitHub
  • Teardown confirmed by a tag-based orphan scan

5 units

  1. Unit 1: The Brief

    Read the handoff, the architecture spec, the governance file and the approval rule before anything gets built.

    Open unit 1
  2. Unit 2: Provisioning the Infrastructure

    Set a budget alarm first, then build the network, web server and storage bucket, reading every plan.

    Open unit 2
  3. Unit 3: Deploying the App

    Put the brewery's Flask app on the server behind Nginx, check every page, and upload assets to S3.

    Open unit 3
  4. Unit 4: Cost Estimation

    Estimate the monthly cost line by line, inside and outside the free tier, and explain it to Dana.

    Open unit 4
  5. Unit 5: Close

    Write the README, destroy the infrastructure, scan for leftover resources by tag, and push the code to GitHub.

    Open unit 5
Read the full brief

You're building cloud infrastructure for a craft brewery in Portland, Oregon — a VPC, an EC2 instance, and an S3 bucket on AWS, then deploying a Flask app onto it.

The discipline skills: writing Terraform to provision real AWS resources, reading a terraform plan before applying anything, verifying that what got built matches what was specified, estimating cost before spending money, and destroying everything when you're done.

The AI-direction lesson: this is your first time directing AI to produce infrastructure. AI will generate Terraform that works — and that has security holes you won't see unless you look for them. Security groups wider than they need to be. S3 buckets without encryption. IAM policies with wildcard permissions. None of these produce errors. None of them look wrong. The skill is reading the plan output, checking it against specific targets, and catching what AI got wrong before it becomes real infrastructure with real cost and real exposure.

Your Role

You are the cloud engineer. A colleague already converted the client's old site into a Flask app. Your job is the infrastructure and deployment — from an empty AWS account to a running application on a live server.

Everything is provided: an architecture specification that describes each resource, a project governance file (CLAUDE.md) with security policies and verification targets, and the application code. You direct AI through the work. You review every plan. You verify every result.

What Gets Built

Three AWS services, each with a specific job:

  • A VPC (Virtual Private Cloud) — a private network inside AWS. It has subnets, an internet gateway, and routing rules that control which traffic goes where.
  • An EC2 instance — a virtual machine running in an AWS data center. This one runs the Flask app behind Nginx. When someone visits the site, their browser connects to this machine.
  • An S3 bucket — object storage. Holds the brewery's digital assets — product images, menus, event flyers. Encrypted and access-controlled.

These resources cost real money. The EC2 instance runs 24/7 whether anyone visits the site or not. You'll estimate the cost, and destroy everything when the project is done.

Tools

  • Claude Code — the AI coding agent. You paste instructions, it writes and runs the code.
  • Terraform CLI — init, plan, apply, destroy. The infrastructure lifecycle.
  • AWS CLI — verifying provisioned resources and uploading files.
  • AWS Console — the web dashboard where you visually confirm that infrastructure exists.
  • Git and GitHub — version control.
  • VS Code + Terraform extension — code editor.

Materials

In the materials zip you'll find:

  • The handoff email (first-contact.md) — your colleague Tomás's note on the client's request.
  • Architecture specification (architecture-spec.md) — the infrastructure design translated from the client's email by a senior engineer.
  • CLAUDE.md — the project governance file. This is what Claude Code reads automatically when it starts in the project directory. It contains the client context, security policies, cost constraints, and verification targets.
  • The approval rule (.claude/settings.json) — a permission rule that makes Claude Code stop and ask you before every terraform apply and terraform destroy.
  • The Flask app (app/) — the brewery website, already built by a colleague. You deploy this; you don't build it.
  • WordPress backup (wordpress-backup/) — the client's old site files. Reference material — the app was built from this content.
Materials · 27 files
Start Project 1

You work at a computer with a terminal. Signed in, your place is saved.