Launch checklist: SunTzu RC 1.0
Everything in specs 0001–0005 is built and checked locally (pnpm check green, each bit marked in docs/bits/). What's left needs the owner: accounts, money, the name and the domain. Do the steps in order; each one says how to check it worked. Nothing here has been deployed yet.
0. What's ready, and what isn't verified
| Ready and verified locally | Written but not verified (needs AWS, Google or a domain) |
|---|---|
| Events engine, resolve, crew console, calendars and feeds | infra/ (Terraform, validated but never applied: SES, S3, jobs) |
| Places, clubs, "Can I fly here?" (FAA data loaded) | Emails through Amazon SES (locally they're printed) |
Search: the box (⌘K, /), /search, "searched, not found" | Search's PostgreSQL extensions on RDS (created by a migration) |
| Accounts with email links, follows, "going", private calendar | "Continue with Google" (needs an OAuth client) |
| Organisers: claim, verify, publish, widget | AI reading of pasted flyers (needs Bedrock model access) |
| Alerts, digest and reports (printed locally), try-it, submissions | Turnstile on public forms (needs keys) |
1. Put the code on GitHub
The local repository has no remote yet, so all of this lives on one laptop.
git remote add origin git@github.com:akamachinecode/rc-landing.gitgit push -u origin main feat/platform-monorepo chore/stack-0.2.3 feat/servo-1.0 chore/create-itaca-0.3.0Open pull requests in order: feat/platform-monorepo (if it isn't merged yet) → chore/stack-0.2.3 → feat/servo-1.0 → chore/create-itaca-0.3.0. Protect main as in GITHUB.md. Check: CI is green on each pull request.
Merging to main deploys production, and the Deploy workflow has to be on main before it can deploy staging from the Actions tab. So before merging, create the production environment with required reviewers (you): the production deploy that merging starts then waits for your approval. Leave it waiting (or reject it) until step 6 works on staging.
2. The name and the domain (C3) — chosen
The owner chose SunTzu RC at suntzurc.com on 2026-11-03, and it is already in the code: the hostnames, redirects, cookie_domain and email in infra/production.tfvars.json and infra/staging.tfvars.json (staging sends from staging.suntzurc.com), SITE in apps/app/src/lib/site.ts, the wordmark, and domain in itaca.json.
The domain is registered with Cloudflare Registrar (since 2025-04-05) and already uses Cloudflare's name servers, so its zone exists. Check in step 3 that it is in the account the API token will belong to.
Check: pnpm check is green.
3. Cloudflare
- Add the domain to Cloudflare in the right account (moving it later is painful) and apply the baseline in
CLOUDFLARE.md. - Create an account-owned API token with Zone → Zone → Read and Zone → DNS → Edit on the zone; keep it for GitHub (
CLOUDFLARE_API_TOKEN, step 4). - Turnstile: create a widget for the domain (Managed mode). Keep the site key and the secret for step 5.
- Rate limiting (Security → WAF → Rate limiting rules). Public forms reach the API through the site's server, so the API sees the server's address, not the visitor's: limit on the site's host, where the visitor connects.
POSTrequests towww.<domain>(forms are Server Actions): 30 per minute per IP.POST /auth/sign-in/magic-linkandPOST /auth/sign-in/email-otponapi.<domain>(the browser calls them directly): 5 per minute per IP.POST /search/missesonapi.<domain>(the browser reports searches that found nothing): 20 per minute per IP.GET /searchonly reads and is cached for 5 minutes; whether it needs a limit too is Itaca engineering's call (spec 0005).- The API also limits per member (10 events and 20 corrections an hour; a new club code every 5 minutes, 8 guesses per claim, ever).
- Leave Bot Fight Mode off on the zone: it can't be skipped for the API, and the calendar feeds are read by calendar apps, not browsers.
Check: the zone shows "Active" and SSL/TLS is Full (strict).
4. AWS
- Sign in:
aws login --profile suntzu-rc-admin(add--remoteon a machine without a browser). The account is352587389937, in us-east-2, with advanced features active since 2026-11-10 (DECISIONS.md). - Check the credit and the month's spend in Billing and Cost Management (there is no spend limit any more; production's
monthly_budgetwarns instead). Each stage runs an always-on RDS database and two Fargate containers (site and API) behind a load balancer, roughly 75 USD a month, plus the scheduled jobs, S3, SES and Bedrock by use: estimate it with the AWS Pricing Calculator before the first deploy, and deletestagingonce production works if you don't need it. - SES: request production access (SES console → Account dashboard → Request production access). It takes about a day; until then SES only sends to verified addresses.
- Bedrock: in the Bedrock console of us-east-2, turn on model access for Claude Opus 5.5 and Claude Opus 4.8 (the fallback). Without it, pasted flyers go to the crew's inbox instead.
- Terraform state, deploy role and image registries: install Terraform 1.16 or newer, then follow steps 1 and 2 of
TERRAFORM.mdwithexport AWS_PROFILE=suntzu-rc-admin.infra/bootstrapalso turns on CloudWatch Transaction Search, where traces are stored (infra/bootstrap/traces.tf). - GitHub environments
production(with required reviewers, step 1) andstaging: step 3 of "One-time setup" inDEPLOY.md.
Check: aws sts get-caller-identity --profile suntzu-rc-admin answers with the project's account, and terraform -chdir=infra/bootstrap output deploy_role_arn shows the role.
5. Settings and secrets, for each stage (staging first, then production)
They live in AWS Parameter Store under /rc-landing/<stage>/ (see "Secrets and configuration" in DEPLOY.md). The database password and the sign-in secret are created by Terraform; these are yours, with export AWS_PROFILE=suntzu-rc-admin:
aws ssm put-parameter --type SecureString --name /rc-landing/staging/crew-emails --value "you@yourdomain,partner@yourdomain"aws ssm put-parameter --type SecureString --name /rc-landing/staging/crew-inbox --value "crew@yourdomain"aws ssm put-parameter --type String --name /rc-landing/staging/turnstile-site-key --value "<site key>"aws ssm put-parameter --type SecureString --name /rc-landing/staging/turnstile-secret-key --value "<secret>"Optional, for "Continue with Google" (Google Cloud console → Credentials → OAuth client ID, web; authorised redirect URI https://api-staging.<domain>/auth/callback/google):
aws ssm put-parameter --type SecureString --name /rc-landing/staging/google-client-id --value "<client id>"aws ssm put-parameter --type SecureString --name /rc-landing/staging/google-client-secret --value "<client secret>"Check: aws ssm get-parameters-by-path --path /rc-landing/staging --query 'Parameters[].Name' lists them.
5b. Who gets the alarms
Every stage needs someone to alert, or it refuses to deploy. In infra/staging.tfvars.json and infra/production.tfvars.json, fill alerts (details in "Monitoring" in OPERATIONS.md):
"emails": ["you@example.com"]: AWS sends one confirmation email per alert topic; click Confirm subscription in each after the first deploy.- Optional Slack: authorize the workspace once in the AWS console → Amazon Q Developer in chat applications, then add
"slack": { "team_id": "T…", "channel_id": "C…" }and invite@Amazon Qto the channel. monthly_budget(production only, 150 USD): a warning when the month's AWS bill is forecast to pass it.- In Cloudflare, keep Bot Fight Mode off (Security → Bots): it blocks the uptime checks.
6. First deploy, to staging
Run Actions → Deploy → Run workflow with stage staging. The first deploy takes 15–25 minutes (database, network, certificates); the plan is in the run's summary. Then:
- Load the data once: run Actions → Run a task with stage
stagingand tasksetup(seed, FAA census, a first read of every source). It waits for the task and fails if it does. - Check:
https://www-staging.<domain>loads, and/events,/placesand/clubsshow data;https://api-staging.<domain>/healthanswersok;- signing in at
/sign-inwith a crew address sends an email that arrives, and/crewopens; /places/can-i-fly-hereanswers for a point near Miami;- ⌘K (or
/) opens search on any page, and/search?q=markam parkputs Markham Park first; - in CloudWatch, after their first scheduled run, the
/ecs/rc-landing-staging/enginelog ends with aresolve:line and/ecs/rc-landing-staging/notifywithnotify:; - monitoring: every address in
alerts.emailsconfirmed its subscriptions; CloudWatch → Alarms lists therc-landing-staging-alarms inOK(the-downones are in us-east-1); after opening a page, CloudWatch → Transaction Search shows its trace with the API calls and database queries inside; then rehearse one alarm (aws cloudwatch set-alarm-state --alarm-name rc-landing-staging-api-5xx --state-value ALARM --state-reason Rehearsal --profile suntzu-rc-admin) and check it arrives; - once per account, keep spans 30 days:
aws logs put-retention-policy --log-group-name aws/spans --retention-in-days 30 --profile suntzu-rc-admin.
- In
/crew, approve the RCSignup races and anything else waiting (the engine found 10 Florida races that wait for a person, because RCSignup is a listing, not the organiser).
Everything runs in us-east-2 (there is no CloudFront, so no certificate in us-east-1), except the uptime checks' alarms and their alert topic, which AWS keeps in us-east-1. If a resource is refused, check the spend limit and the plan in AWS Settings, then ask Itaca engineering.
7. Production
- DMARC:
_dmarc.suntzurc.comexists already, made by hand on 2026-11-10 with the same content Terraform will write (email.dmarc_reportsininfra/production.tfvars.json). Delete it in Cloudflare → DNS right before the first production deploy, or Terraform adds a second one and both stop counting. - Set the parameters of step 5 under
/rc-landing/production/(Google's redirect URI becomeshttps://api.<domain>/auth/callback/google). - Approve the production deploy that is waiting in the Actions tab (or run Actions → Deploy with
production). Runsetuponce, as in step 6, with stageproduction. - Origin lock: once everything works, follow "Origin lock" in
CLOUDFLARE.md. - Email reputation: after two weeks of clean DMARC reports, move DMARC from
p=nonetop=quarantine.
8. Before you announce it
- Have someone read
/privacyand/terms, ideally a lawyer: they were written in plain language for launch, without legal review. - Write to the first clubs (AMPS, Markham Park Pilots, Palm Beach RC, the Sarasota clubs): their pages exist already, and claiming them takes a minute (
/organise). - Ask DeLand RC and the other Google Calendar clubs for their feeds (C6), and Horizon Hobby and MultiGP for permission to read their calendars (
DECISIONS.md).
Operations
How to run, change and recover this project. Secrets appear here by name only, never their values. Write "Unknown — ask <who>" rather than leaving a gap unexplained.
Deploy — AWS via Terraform
Production URL: https://www.suntzurc.com · AWS region us-east-2 (the AWS project's only region) · DNS and proxy in Cloudflare.