Cost Explorer calls from a live dashboard can become a billing problem — built a fix using Lambda + DynamoDB
Cuts down unnecessary Cost Explorer calls, making the dashboard cheaper and more predictable to operate.
Refactored to:
- Scheduled Lambda (EventBridge) to fetch billing data
- Cache snapshots in DynamoDB
- Serve from cache instead of querying Cost Explorer directly
- Deduplicated SNS alerts
Stack: Terraform · Lambda · DynamoDB · API Gateway · S3 · CloudFront · SNS · EventBridge
GitHub: https://github.com/Atharva013/Carbon-Optimizer
Would appreciate feedback on the architecture and alerting approach.