| Option | Monthly Cost | Setup Command | Best For |
|---|---|---|---|
| AWS Free Tier (t2.micro) | FREE → $8 | ./deploy_to_ec2_budget.sh |
✅ Recommended |
| AWS Lightsail | $5 | ./deploy_to_lightsail.sh |
Fixed pricing |
| Budget EC2 (t3.nano) | $4-5 | ./deploy_to_ec2_budget.sh |
Ultra-cheap |
| Budget EC2 (t3.micro) | $7-8 | ./deploy_to_ec2_budget.sh |
Good performance |
| Standard EC2 (t3.medium) | $35-40 | ./deploy_to_ec2.sh |
Production ready |
cd backend
./deploy_to_ec2_budget.sh
# Choose option 1: t2.micro (FREE for 12 months!)- Cost: FREE for 12 months
- After: $8/month
- Perfect for: Personal projects, learning, portfolio demos
cd backend
./deploy_to_lightsail.sh- Cost: Fixed $5/month (includes bandwidth)
- Perfect for: Predictable billing, simple management
- Includes: 1 vCPU, 1GB RAM, 40GB storage, 1TB transfer
cd backend
./deploy_to_ec2_budget.sh
# Choose option 2: t3.micro- Cost: $7-8/month
- Perfect for: Better performance than nano, still budget-friendly
cd backend
./deploy_to_ec2.sh- Cost: $35-40/month
- Perfect for: Multiple users, fast optimization, production use
✅ BEST CHOICE for new AWS users
- Cost: FREE for 12 months, then $8/month
- Specs: 1 vCPU, 1GB RAM, 30GB storage
- Performance: Good for personal use
- Limitations: Only for new AWS accounts
- Includes: 750 hours/month (24/7), 30GB storage, 15GB bandwidth
✅ BEST for predictable costs
- Cost: Fixed $5/month
- Specs: 1 vCPU, 1GB RAM, 40GB SSD storage
- Performance: Similar to t2.micro
- Advantages: Fixed billing, includes bandwidth, simple management
- Includes: 1TB data transfer included
✅ MOST flexible
| Instance | vCPU | RAM | Monthly Cost | Performance |
|---|---|---|---|---|
| t3.nano | 2 | 0.5GB | $4-5 | Slow |
| t3.micro | 2 | 1GB | $7-8 | Good |
| t3.small | 2 | 2GB | $16-20 | Fast |
| t3.medium | 2 | 4GB | $35-40 | Very Fast |
cd backend
./deploy_to_ec2_budget.sh
# Choose: t2.micro (FREE for 12 months)cd backend
./deploy_to_lightsail.shcd backend
./deploy_to_ec2_budget.sh
# Choose your preferred instance size- API Response Time: 2-5 seconds
- Portfolio Optimization: 10-30 seconds
- Concurrent Users: 1-3
- Perfect for: Personal use, demos, development
- API Response Time: 1-2 seconds
- Portfolio Optimization: 5-15 seconds
- Concurrent Users: 10+
- Perfect for: Production, multiple users
- ✅ New AWS accounts only
- ✅ 750 hours/month for 12 months
- ✅ 30GB EBS storage included
⚠️ After 12 months: $8/month
- ✅ Automatic deployment
- ✅ CORS configured for Vercel
- ✅ SSL-ready
- ✅ Auto-restart on crashes
- ✅ Easy updates
- ✅ Monitoring capabilities
All deployments can be upgraded later:
# Stop instance
aws ec2 stop-instances --instance-ids YOUR_INSTANCE_ID
# Upgrade to larger size
aws ec2 modify-instance-attribute --instance-id YOUR_INSTANCE_ID --instance-type t3.small
# Start instance
aws ec2 start-instances --instance-ids YOUR_INSTANCE_IDcd backend
./check_ec2_status.shcd backend
./update_ec2.sh./cleanup_lambda_files.shFor most users: Start with the AWS Free Tier (t2.micro) using:
cd backend
./deploy_to_ec2_budget.sh- It's FREE for 12 months
- Perfect for personal portfolio projects
- Easy to upgrade later if needed
- Handles portfolio optimization well for personal use
Only choose paid options if:
- You're not eligible for free tier
- You want predictable billing (Lightsail)
- You need better performance immediately
All scripts are automated and will have your backend running in 10-15 minutes! 🎉