# {{STACK_NAME}} CDK Infrastructure

AWS CDK infrastructure for the AI Chat application.

## Stacks

- **RuntimeInfra**: Base infrastructure (S3, Lambda role)
- **AiChat**: AI Chat resources (DynamoDB sessions, Bedrock permissions)
- **Runtime**: SSR Lambda (optional)
- **RuntimeAwake**: Runtime Lambda Debug (dev only)
- **RuntimeWeb**: Microservices (chat handlers)

## Deployment

```bash
# Deploy all stacks to dev
npm run deploy:dev

# Deploy all stacks to staging
npm run deploy:staging

# Deploy all stacks to production
npm run deploy:prod
```

## Commands

- `npm run build` - Compile TypeScript
- `npm run synth` - Synthesize CloudFormation templates
- `npm run deploy` - Deploy all stacks
- `npm run diff` - Show changes
- `npm run destroy` - Destroy all stacks

## Environment Variables

Set these before deployment:

- `CDK_DEFAULT_ACCOUNT` - AWS account ID
- `CDK_DEFAULT_REGION` - AWS region
- `STAGE` - Deployment stage (dev, staging, prod)
