An always-on agent that checks your fridge inventory daily, finds what's about to expire, and uses AI to suggest recipes so you stop wasting food.
- EventBridge Scheduler fires daily at 7:00 AM
- Lambda queries DynamoDB for items expiring today or tomorrow
- Bedrock (Nova Lite) generates a recipe using those ingredients
- SES sends you an email with the recipe and a guilt trip
EventBridge (daily) → Lambda (Python) → DynamoDB → Bedrock Nova Lite → SES → Your Inbox
- Amazon EventBridge Scheduler - Daily cron trigger
- AWS Lambda - Python 3.12 runtime
- Amazon DynamoDB - Grocery inventory storage
- Amazon Bedrock - Nova Lite model for recipe generation
- Amazon SES - Email delivery
- AWS CLI configured with appropriate credentials
- AWS account with Bedrock access (Nova Lite model enabled in us-east-1)
- A verified email address in SES (sandbox mode is fine)
# Set your email address
export FRIDGE_ROT_EMAIL="your-email@example.com"
# Deploy all infrastructure
./deploy.sh
# Seed the database with sample items
python3 seed_data.pyaws lambda invoke \
--function-name fridge-rot-agent \
--region us-east-1 \
output.json && cat output.json./teardown.sh├── README.md
├── deploy.sh # Creates all AWS infrastructure
├── teardown.sh # Removes all AWS infrastructure
├── seed_data.py # Populates DynamoDB with sample groceries
├── lambda_function/
│ └── lambda_function.py # The agent logic
└── email_template.html # Email formatting template
Edit deploy.sh to change:
SCHEDULE_EXPRESSION- When the agent runs (default: 7 AM UTC)RECIPIENT_EMAIL- Where to send the daily recipeAWS_REGION- Deployment region (default: us-east-1)