https://github.com/solomonsojay/aws-ai-cost-optimizer
AWS AI Cost Optimizer leverages generative AI through AWS Bedrock to analyze cloud infrastructure costs and provide actionable optimization recommendations.
https://github.com/solomonsojay/aws-ai-cost-optimizer
aws bedrock css html javascript lambda lambda-functions marked-js python serverless
Last synced: about 1 month ago
JSON representation
AWS AI Cost Optimizer leverages generative AI through AWS Bedrock to analyze cloud infrastructure costs and provide actionable optimization recommendations.
- Host: GitHub
- URL: https://github.com/solomonsojay/aws-ai-cost-optimizer
- Owner: solomonsojay
- Created: 2025-06-04T20:47:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-04T23:15:50.000Z (about 1 year ago)
- Last Synced: 2025-06-05T02:31:57.808Z (about 1 year ago)
- Topics: aws, bedrock, css, html, javascript, lambda, lambda-functions, marked-js, python, serverless
- Language: HTML
- Homepage: https://staging.dnxvuwy2sif3a.amplifyapp.com/
- Size: 247 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# โ๏ธ AWS AI Cost Optimizer
**AI-Powered Cloud Cost Reduction Solution**
*Reduce AWS bills by 25-40% with generative AI recommendations*
## ๐ Live Demo
[](https://staging.dnxvuwy2sif3a.amplifyapp.com/)
## ๐ Source Code
[](https://github.com/solomonsojay/aws-ai-cost-optimizer)
## ๐ Overview
The AWS AI Cost Optimizer leverages generative AI through AWS Bedrock to analyze your cloud infrastructure costs and provide actionable optimization recommendations. This solution helps businesses reduce AWS spending by 25-40% through AI-powered insights.
## โ๏ธ How AWS Lambda Powers This Solution
AWS Lambda serves as the **core processing engine** of our application:
1. **AI Gateway**: Receives requests from the frontend and communicates with AWS Bedrock
2. **Prompt Engineering**: Generates optimized prompts for Claude AI based on cost data
3. **Response Processing**: Formats AI output into structured markdown recommendations
4. **Error Handling**: Manages timeouts and Bedrock API exceptions
5. **Security Layer**: Validates requests before processing
**Lambda Configuration**:
- Runtime: Python 3.10
- Memory: 512MB
- Timeout: 30 seconds
- Permissions: `AWSBedrockFullAccess`
- Trigger: Lambda Function URL (HTTPS endpoint)
## ๐งช Testing Instructions for Judges
### Option 1: Live Demo Testing (Recommended)
1. Visit our live demo: [https://staging.dnxvuwy2sif3a.amplifyapp.com/](https://staging.dnxvuwy2sif3a.amplifyapp.com/)
2. Click the **"Analyze My AWS Costs"** button
3. Observe the AI processing stages:
- Connecting to AWS Lambda
- Authenticating with AWS Bedrock
- Analyzing with Claude AI
4. View generated recommendations (appears in 5-10 seconds)
### Option 2: Manual Backend Testing
Test the Lambda function directly using curl:
```bash
curl -X POST "https://ebagyvsks5l3rtryodwdzfihte0iolgi.lambda-url.us-east-1.on.aws/" \
-H "Content-Type: application/json" \
-d '{}'