|
| 1 | +# Amazon Web Services Usage — AutiSense |
| 2 | + |
| 3 | +## Generative AI on AWS |
| 4 | + |
| 5 | +| Service | Model | File | Status | |
| 6 | +|---------|-------|------|--------| |
| 7 | +| Amazon Bedrock (Nova Lite) | `amazon.nova-lite-v1:0` | app/api/chat/conversation/route.ts | Used (fallback when quota=0) | |
| 8 | +| Amazon Bedrock (Nova Lite) | `amazon.nova-lite-v1:0` | app/api/chat/generate-words/route.ts | Used (fallback when quota=0) | |
| 9 | +| Amazon Bedrock (Nova Lite) | `amazon.nova-lite-v1:0` | app/api/report/summary/route.ts | Used (fallback when quota=0) | |
| 10 | +| Amazon Bedrock (Command R+) | `cohere.command-r-plus-v1:0` | app/api/report/clinical/route.ts | Used (fallback when quota=0) | |
| 11 | +| Amazon Polly | Neural TTS (Joanna) | app/api/tts/route.ts | Active, working | |
| 12 | +| ONNX Runtime (on-device) | 4 models in `public/models/` | app/lib/inference/ (13 files), workers/inference.worker.ts | Active, working | |
| 13 | + |
| 14 | +## AWS Infrastructure |
| 15 | + |
| 16 | +| Service | Resource | File | Status | |
| 17 | +|---------|----------|------|--------| |
| 18 | +| AWS Amplify | WEB_COMPUTE SSR hosting | amplify.yml, next.config.ts | Active, auto-deploys from GitHub | |
| 19 | +| Amazon DynamoDB | 7 tables (`autisense-sessions`, `autisense-biomarkers`, `autisense-users`, `autisense-auth-sessions`, + 3 placeholder) | app/lib/auth/dynamodb.ts, app/api/sync/route.ts, server/scripts/setup-dynamodb.sh | Active (4 tables in use, 3 placeholder) | |
| 20 | +| Amazon S3 | `autisense-models-762099405044` bucket | SDK installed (`@aws-sdk/client-s3`, `@aws-sdk/s3-request-presigner`) | Models uploaded, but served from `public/` statically for now | |
| 21 | +| AWS Lambda | Implicit via Amplify SSR + standalone handler | server/lambda/sync-handler.ts | Every API route runs as Lambda | |
| 22 | +| AWS IAM | `autisense-app` user + `AutiSenseAmplifyRole` | app/lib/aws/credentials.ts | Active | |
| 23 | +| AWS Budgets | $10/month alarm | Configured in console | Active | |
| 24 | + |
| 25 | +## NOT directly used from the recommended list |
| 26 | + |
| 27 | +| Service | Status | |
| 28 | +|---------|--------| |
| 29 | +| Amazon EC2 | Not used (Amplify handles compute) | |
| 30 | +| Amazon ECS | Not used | |
| 31 | +| Amazon API Gateway | Not explicitly — Amplify's internal API Gateway handles routing to Lambda | |
| 32 | +| Kiro | Not used | |
| 33 | + |
| 34 | +## Where exactly each Bedrock call happens |
| 35 | + |
| 36 | +1. **AI voice conversation with child** (Step 7 screening + kid chat) — app/api/chat/conversation/route.ts — Nova Lite generates adaptive multi-turn questions across social/cognitive/language/motor domains |
| 37 | +2. **Dynamic word/sentence generation** (speech stages) — app/api/chat/generate-words/route.ts — Nova Lite generates age-appropriate vocabulary |
| 38 | +3. **Parent-friendly summary** (end of screening) — app/api/report/summary/route.ts — Nova Lite translates biomarker scores to plain language |
| 39 | +4. **DSM-5 clinical report** (end of screening) — app/api/report/clinical/route.ts — Command R+ generates full Criterion A/B/Motor/Recommendations report |
| 40 | + |
| 41 | +All 4 Bedrock routes have comprehensive mock fallbacks, so the app is fully functional even with your current quota=0 situation. The on-device ONNX inference (the core screening AI) needs zero cloud — it runs entirely in the browser. |
0 commit comments