Inspiration
W## Inspiration
Many organizations struggle to understand and control cloud costs because Cost Explorer data can be overwhelming. We wanted to build a simple assistant that highlights cost drivers and suggests actionable savings.
What it does
Cloud Cost Copilot is a serverless AWS application that summarizes Cost Explorer data using a large language model and proposes cost‑saving recommendations. It fetches cost and usage reports, groups spend by service and tag, and returns a natural‑language report via a web interface or API.
How we built it
We built the backend with AWS Lambda functions in Python, orchestrated by API Gateway. The functions call the AWS Cost Explorer API to retrieve cost and usage data. We then invoke Amazon Bedrock (Claude 3 Haiku) to summarize the data and generate recommendations. Data is stored in Amazon DynamoDB and S3, and IAM Roles restrict access. The frontend is a simple React SPA hosted on AWS Amplify.
Challenges we ran into
Parsing and aggregating Cost Explorer data across accounts and time periods was tricky. We also had to tune the prompts for Amazon Bedrock to produce concise, accurate summaries. Balancing response latency with the cost of invoking the LLM was another challenge.
Accomplishments that we’re proud of
We delivered a fully serverless, pay‑as‑you‑go solution that integrates multiple AWS services and generative AI. The app provides clear and actionable cost insights without exposing any PII. It’s open source and can be deployed in minutes.
What we learned
We learned how to use Amazon Bedrock’s Claude 3 Haiku model to generate quality summaries, and we gained deeper expertise in AWS cost management APIs. Building this project reinforced best practices around serverless architecture and IAM security.
What’s next
We plan to add budget and forecast integration, Slack notifications, and support for multiple AWS accounts. We’d also like to fine‑tune the prompts further and explore using other foundation models.hat it does
How we built it
Challenges we ran into
Accomplishments that we're proud of
What we learned
What's next for Cloud Cost Copilot
Built With
- amazon-web-services
- bedrock
- lambda
- python
Log in or sign up for Devpost to join the conversation.