Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fridge Rot 🥬

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.

How It Works

  1. EventBridge Scheduler fires daily at 7:00 AM
  2. Lambda queries DynamoDB for items expiring today or tomorrow
  3. Bedrock (Nova Lite) generates a recipe using those ingredients
  4. SES sends you an email with the recipe and a guilt trip

Architecture

EventBridge (daily) → Lambda (Python) → DynamoDB → Bedrock Nova Lite → SES → Your Inbox

AWS Services Used

  • 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

Deployment

Prerequisites

  • 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)

Deploy

# 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.py

Test Manually

aws lambda invoke \
  --function-name fridge-rot-agent \
  --region us-east-1 \
  output.json && cat output.json

Teardown

./teardown.sh

Project Structure

├── 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

Configuration

Edit deploy.sh to change:

  • SCHEDULE_EXPRESSION - When the agent runs (default: 7 AM UTC)
  • RECIPIENT_EMAIL - Where to send the daily recipe
  • AWS_REGION - Deployment region (default: us-east-1)

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages