AWS Builder Center
Weekend Agent Challenge: MorningWire, the Agent That Writes My Morning Briefing Before I Wake Up

Weekend Agent Challenge: MorningWire, the Agent That Writes My Morning Briefing Before I Wake Up

MorningWire is an always-on AWS agent that wakes on a schedule, gathers weather and news, has Claude write a short briefing, and emails it to me before I wake up. Built on Lambda, EventBridge, SES, and SAM, running on the Free Tier.

  • Vision and What the Agent Does
Every morning used to start the same way: a weather app, a couple of news sites, and ten minutes of scrolling before I had any real sense of the day. It is a small tax, but I paid it daily. So for this challenge I built MorningWire, a personal agent that does that scrolling for me and leaves a short, readable briefing in my inbox before I am even awake.
Here is how it works. Once a day, on a schedule (no button, no app to open), the agent wakes itself up. It pulls today's weather for my city and the latest headlines from a few feeds I follow, hands all of it to Claude, and asks for a tight morning briefing: a one line greeting with the date, a plain weather line, and a short list of the most interesting reads. Then it emails that briefing to me. By the time I pick up my phone, the day is already summarized. The best productivity tool really is the one you never have to open.
I kept the output read only on purpose. MorningWire informs me, it does not post, reply, or act on my behalf. An agent that quietly emails me a summary is useful. An agent that takes actions under my name while I sleep is a different risk profile, and not one I wanted for a weekend build.
  • How I Built It
This was my first fully autonomous agent. A few decisions shaped it.
Decision 1: keep the whole thing on AWS. The tempting shortcut was a hosted agent platform that runs the loop for me. But the challenge is about deploying on AWS, and honestly I wanted to own the moving parts. So the agent is an AWS Lambda function, woken by Amazon EventBridge, sending through Amazon SES, with its config and secret in AWS. The result is a small stack I fully understand.
Decision 2: one model call, not an agent loop. It was tempting to reach for tools and a multi step agent, but the task is really summarization: take today's data, write a clean briefing. So the Lambda makes a single call to Claude with the gathered data and a clear instruction, and returns the text. Simple beats clever, and it keeps latency and cost down for something that runs every day.
Decision 3: the API key never touches the code. The repo is public, so a hardcoded key was never an option. The Anthropic API key lives in AWS Systems Manager Parameter Store as an encrypted SecureString, and the Lambda reads and decrypts it at runtime, caching it across warm invocations. The code references a parameter name, never a value.
Pitfall 1: A green build is not a passing test. My first  sam build  failed with "Cannot find esbuild." SAM builds the function in a clean sandbox that strips dev dependencies, so my local esbuild was invisible to it. Installing esbuild globally fixed the lookup. Then the function built cleanly but crashed the first time it actually ran, with "Dynamic require of node:https is not supported." That one took a minute to understand: the AWS SDK loads some parts with dynamic require calls, which do not exist in an ES module, so an ESM bundle throws the moment it loads. Switching the bundle to CommonJS, where require works natively, fixed it. The lesson stuck: a build passing is not the same as the thing working. The only proof is invoking it.
Pitfall 2: a reserved parameter name. I tried to store the key at /aws-daily-briefing/anthropic-api-key and got "ameter name." It turns out Systems Manager reserves any parameter name that begins with aws or ssm. My path started with aws right after the slash. Renaming it to /daily-briefing/anthropic-api-key fixed it instantly. A fiught me to read the error literally instead of assuming it was a permissions problem.
A design choice worth naming: no database. The common pattern for these agents is to add memory so they do not rerately left that out. A morning briefing is a fresh snapshot of today, so there is nothing to remember between runs. Knowing when not to add state is its own kind of design.
AWS Services Used and Architecture Overview
Amazon EventBridge (a scheduled rule): the alarm clock. A daily cron expression in UTC, cron(0 12 * * ? *), so it with no human involved.
AWS Lambda (Node.js 22, 256 MB, 60 second timeout): the agent itself. It gathers sources, calls Claude, and sends
AWS Systems Manager Parameter Store: the Anthropic API key as an encrypted SecureString, read at runtime.
Amazon SES: sends the finished briefing to my inbox.
AWS IAM: a least privilege role scoped to exactly two things, read one parameter and send email. Nothing else.
AWS SAM and CloudFormation: the whole stack is one template, deployed with a single command and torn down just a
  • The flow:
Amazon EventBridge (daily schedule) invokes AWS Lambda. The Lambda gathers weather from Open-Meteo and headlinesys needed there), reads the Anthropic API key from the SSM SecureString, makes one Claude call that turns the rawdata into a briefing, and sends it through Amazon SES. The email lands in my inbox before I wake up.
  • What I Learned
A single well scoped model call goes a long way. I did not need an agent framework. I needed one good prompt and
Least privilege is a design exercise, not a checkbox. Writing a role that names exactly one parameter and one sew precisely what my agent touches.
Read the error literally. The reserved name issue looked like permissions and was actually a naming rule. The build failure looked like my code and was actually the build sandbox.
Secrets belong outside the code. Parameter Store plus a runtime fetch meant I could make the repo public without
Infrastructure as code makes an agent feel real. One template stands the whole thing up and one command tears ity is what turns a script into something I trust to run on its own.
  • Link to Repo
The repo includes the full Lambda source, the SAM template with the schedule and the least privilege role, and setup instructions if you want to build your own morning reader.
Built once, runs on its own every day, and the only thing I do is read it.
Amazon EventBridge console showing the MorningWire scheduled rule, status Enabled, with the cron expression 0 12 * * ? * and a list of the next ten daily trigger dates at 12:00 UTC.

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article