S
Saurav Danej
90-Day AI/ML LinkedIn Content System
← All days
84
Day 84 of 90Automation

Serverless automation + week 12 wrap

POST 1 of 5 MorningAutomationConcept

Lambda + EventBridge = a serverless cron

For automation that should run without a server you maintain:

- AWS Lambda — runs your Python on demand
- EventBridge schedule — triggers Lambda on cron expressions

No VM. No cron. Pay per execution (free tier covers most personal use). Cold starts (~500ms) are fine for scheduled jobs.

GCP Cloud Functions + Cloud Scheduler is the same idea. Cloudflare Workers Cron is the lowest-overhead option for HTTP-shaped tasks.
#Automation#Python#WebScraping#AI#100DaysOfCode#Lambda
POST 2 of 5 MiddayAutomationDeep dive

Deploy with SAM, AWS CDK, or Serverless Framework

Don't click in the AWS console — version control everything.

- SAM (AWS Serverless Application Model) — YAML, simple, tight to AWS
- AWS CDK — Python / TS, programmatic infra, more flexible
- Serverless Framework — multi-cloud, mature, plugin ecosystem

For personal automations, SAM is fastest (one yaml + one python file). For team / production, CDK gives more leverage.
#Automation#Python#WebScraping#AI#100DaysOfCode#IaC
POST 3 of 5 AfternoonAutomationCode

Lambda handler — minimum viable

lambda_handler(event, context) is the entrypoint. Wrap your existing function. Read secrets from env vars (set in console / SAM template). Log to CloudWatch.

SAM template attaches a schedule. Deploy with sam deploy. 10 minutes from script to scheduled cloud function.
#Automation#Python#WebScraping#AI#100DaysOfCode#Lambda
POST 4 of 5 EveningAutomationTip

Watch for Lambda's hidden costs

Lambda is cheap until it isn't.

Watch for:
- Long timeouts → memory * duration explodes
- Calling other paid APIs in a loop
- CloudWatch log retention (default = forever, costs add up)
- VPC-attached Lambdas (cold starts + ENI creation)

Set a CloudWatch budget alarm at $5/month. If a runaway hits, you find out before the bill does.
#Automation#Python#WebScraping#AI#100DaysOfCode#AWS
POST 5 of 5 NightCareerRecap

Week 12 done — automation that runs itself

Week 12 done. 84 days, 420 posts in.

This week:
- HTTP scraping done politely
- Playwright when JS demands
- cron / APScheduler / Airflow
- Slack + email notifications
- PDF + Excel automations
- API integrations with retries
- Serverless cron with Lambda

Next week (final): build, ship, career. The 6-day wrap-up to land what you've learned.
#Automation#Python#WebScraping#AI#100DaysOfCode#90DaysOfAI