Recent builds · October 2026

Two apps for home, built on AWS

I learn a platform best by building something my family will use every week. Both of these run in my own AWS account.

Both apps are private, so the demos here run in your browser on made-up data: a sample school calendar, sample kids, and drawings generated by code. Nothing on this page connects to the real apps.

Live since October 2026

Sunday Digest

Every Sunday at 8 AM, a Lambda function reads the school's public calendar feed and emails a heads-up for the week after next. No-school days go first and into the subject line, so a day off never sneaks up on us. Every event gets 7 to 13 days of notice.

If the school adds something for the coming week after last Sunday's email went out, this Sunday's email catches it under "Added late." A small ledger in DynamoDB remembers what has already been announced.

Try it: run Sunday's job

Sample calendar. Same windows, keyword rules, ledger and rollback as the real function.

Which Sunday?

Then run the same Sunday again. A retry finds its claim and stops.

Email previewwaiting
FromSunday Digest
Tome
Sent–
Subject–

        
      

CloudWatch log, this run

    DynamoDB ledger table

    pk (partition key)titleexpires_at (TTL)

    Sunday Digest architecture EventBridge Scheduler invokes a Python Lambda function every Sunday at 8 AM Eastern. The function reads the school's public calendar feed, claims records in a DynamoDB ledger table, and sends one email through Amazon SES. Its logs and two alarms live in CloudWatch, which notifies SNS, which emails me if something fails. EventBridge Scheduler Sundays 8:00 AM Eastern · 3 retries SNS alarm → email me invoke Lambda · Python claim, read, build, send rolls back if a step fails CloudWatch logs · 2 alarms read claim send School calendar public .ics feed DynamoDB the ledger · TTL Amazon SES DKIM-signed Inbox Sunday morning Two least-privilege roles 1 function · 1 table · 1 sender
    Everything is scripted from AWS CloudShell and versioned in GitHub.

    One Sunday run

    The function is short. Most of the care went into making it safe to retry.

    1. 8:00 AM Eastern. EventBridge Scheduler invokes the function. The schedule has a time zone, so daylight saving never moves it.
    2. Claim the date. A conditional write puts digest#<date> in the ledger. If it's already there, the run stops: that Sunday already went out.
    3. Read the calendar. It downloads the public .ics feed and expands repeating events into single dates.
    4. Sort it out. It drops an after-school program we don't use, puts closures first, and claims each event it announces. A claim that succeeds for this week's events means nobody has heard about it yet, so it's late.
    5. Send one email. Plain text through SES, from a DKIM-verified address on my own domain.
    6. Or roll back. If anything fails after the claim, it deletes the records this run added and fails loudly. The retry starts clean, and an alarm emails me.

    Decisions worth noting

    • Safe to run twice. The claim is a conditional put (attribute_not_exists(pk)), so a retry or a double trigger can't send a second email.
    • Least privilege, twice. The Scheduler's role can invoke this one function. The function's role can write its own logs, use three actions on one table, and send only as one address, enforced with an ses:FromAddress condition.
    • Two alarms. One fires on errors. The other fires if the function doesn't run at all, which catches a schedule that quietly stops.
    • Keeps itself tidy. Ledger records expire through DynamoDB TTL 60 days after the event. Logs are kept for 14 days.
    • Built to be previewed. A dry-run mode builds the exact email without writing or sending anything, and a preflight script checks roles, the table, the schedule, both alarms and the email identities before go-live.

    Built with

    • Python
    • AWS Lambda
    • EventBridge Scheduler
    • DynamoDB
    • Amazon SES
    • CloudWatch
    • Amazon SNS
    • IAM
    • AWS CloudShell
    • GitHub
    Live · invite-only

    Art Archive

    Kids make a lot of art. This is where it goes before the paper goes in the recycling bin: snap a photo, tag it by kid and date, and the whole family can browse it. It's invite-only. Two of us can upload, and everyone else we invite can look.

    Under the hood it's a full three-tier app in a VPC, built one CloudFormation stack at a time.

    Try it: the archive on a phone

    Sample kids and drawings made by code, in the real app's layout.

    See it as

    Behind the screen

      Art Archive architecture A family member's phone connects over HTTPS to an Application Load Balancer in the VPC's public subnets. The load balancer sends anyone not signed in to Cognito, then forwards verified requests to EC2 app servers in an Auto Scaling group in private subnets. The servers use an encrypted RDS PostgreSQL database in the private subnets and reach the S3 art bucket through a gateway endpoint. A NAT gateway gives the servers outbound-only internet access. Phones upload photos straight to S3 with a signed form. Cognito invite-only Phone or laptop family member VPC · 2 AZs Public subnets Load balancer HTTPS · checks sign-in NAT outbound only Private subnets App servers EC2 Auto Scaling Python · Flask PostgreSQL (RDS) kids · pieces · tags encrypted · private S3 gateway endpoint HTTPS sign in signed tokens updates TLS photos S3 art bucket private · versioned direct upload · signed form Route 53 + ACM the domain, the cert
      Six CloudFormation stacks. The dashed peach line is the upload path: photos never pass through the servers.

      One upload, end to end

      The same steps the demo shows, in the real app.

      1. Sign-in at the door. The load balancer sends anyone without a session to Cognito's hosted sign-in. Only invited people have accounts.
      2. Checked again inside. On every request the app verifies the load balancer's signed token, confirms our load balancer signed it, verifies Cognito's token, and maps the Cognito group to uploader or viewer.
      3. Ask for a signed form. The phone asks the app for permission to upload one file. It gets an S3 form that works for 15 minutes, for one key, one file type, and up to 40 MB.
      4. Straight to S3. The phone posts the photo to the bucket directly. S3 checks the signature, key, type and size.
      5. Make the small versions. The app confirms the file is really there, reads it once, rotates it upright, and saves a 480px thumbnail and a 1600px preview.
      6. Save the row. One insert in Postgres with the kid, date and tags. A retried request is harmless: it's ON CONFLICT DO NOTHING.

      Decisions worth noting

      • Nothing is public. S3 Block Public Access stays on. Browsers get one-hour signed links to view, and signed forms to upload.
      • The server can't plant code. Its role can write photos to three folders and nothing else, including the folder new servers load their code from.
      • Cross-site requests are blocked. Every POST has to carry the site's own Origin header, since a sign-in cookie alone isn't proof the request came from the site.
      • Deploys that undo themselves. A new server has to report healthy (cfn-signal) before the old one is removed. If it doesn't, CloudFormation rolls back and the site stays up.
      • Careful with 1 GB of memory. One photo at a time per server, a 60-megapixel cap, and JPEGs decoded already shrunk.
      • No SSH. No keys and no open ports. Shell access goes through Session Manager, and instances require IMDSv2.
      • Hide, don't delete. "Hide this piece" sets a flag. The row and the file stay, and bucket versioning protects against overwrites.
      • Pay for what's running. The app stack costs about $1–2 a day, so it comes down between sessions and the database stops when idle. The network, data, DNS and sign-in stacks stay.

      Built with

      • Amazon VPC
      • EC2 Auto Scaling
      • Application Load Balancer
      • Amazon Cognito
      • RDS for PostgreSQL
      • Amazon S3
      • Secrets Manager
      • Route 53
      • ACM
      • CloudFormation
      • Python · Flask
      • Pillow

      Built one stack at a time

      1. done1 · Network
      2. done2 · Storage
      3. done3 · Database
      4. done4 · HTTPS + servers
      5. done5 · Family sign-in
      6. done5b · Upload and browse
      7. next6 · Yearbook PDF
      8. planned7 · Link from the digest
      StackWhat's in itLifetime
      networkVPC across two Availability Zones, public and private subnets, routes, S3 gateway endpoint, three chained security groupsPermanent, and free
      dataThe art bucket: private, versioned, encrypted, with lifecycle tiers and CORS for browser uploadsPermanent, retained
      databaseRDS PostgreSQL, encrypted, password managed in Secrets ManagerPermanent, stopped when idle
      dnsRoute 53 zone for the subdomain and its ACM certificatePermanent
      authCognito user pool with uploader and viewer groups and hosted sign-inPermanent, retained
      appNAT gateway, load balancer, Auto Scaling servers, DNS aliasTorn down between sessions

      What's next

      The two apps are about to start talking to each other, and the yearbook is the part I'm most excited about.

      Also on AWS: an MCP server for NASA's asteroid and fireball data, with a live demo.

      Space Rocks MCP →