README.md1.1 KBView on GitHub # Cedar AWS
This folder contains the AWS infrastructure and deployment surface for Cedar.
## Scope
- environment naming and stack configuration
- app, API, chat, and worker runtime infrastructure
- secrets wiring and deployment helpers
- operating documentation for staging and production
## Stack model
Each environment is split into:
- `Environment`: shared naming and outputs
- `Data`: S3, SQS, DynamoDB, and related primitives
- `Observability`: logs, dashboards, alarms
- `App`: frontend hosting plus API/chat/worker services
## Common commands
```bash
cd aws
pnpm install
pnpm synth:staging
pnpm synth:prod
```
See the docs in this folder for deployment, secrets, and validation details.
## Shared uploads bucket
If you want staging/prod to use one uploads bucket (`AWS_S3_FILES_BUCKET`), set:
```bash
export CEDAR_AWS_SHARED_FILES_BUCKET_NAME="<bucket-name>"
```
Then deploy both environments. The data stack will import that bucket for
`FILES_BUCKET` instead of creating per-environment files buckets.
The deploy script also applies the required CORS policy for browser uploads.