
Weekend Annoying Task Challenge: Cross-post Scout
Weekly Lambda that reads my blog's RSS feed and drafts LinkedIn, Dev.to and AWS Builder Center copy for each new post with Bedrock Nova Lite. One CloudFormation stack, no build step. Drafts, never posts.
Vision and what the app does
I have published over 50 technical posts. Every one of them gets cross-posted to LinkedIn, Dev.to and AWS Builder Center, and every one of those three wants different copy. LinkedIn wants a hook and a line break. Dev.to wants a short canonical-repost intro. Builder Center wants a summary that names the services, so other builders can tell in five seconds whether it is relevant to them.
Writing the post is the fun part. Writing the same idea three more ways, on a Saturday, from my phone, is not. What actually happens is that I publish, mean to cross-post, and get to it four days later when the post has gone cold.
Cross-post Scout is a Lambda function that checks my blog once a week, finds posts it has not seen before, and drafts all three versions plus hashtags with Amazon Bedrock. It writes each set to S3 as markdown and emails me a digest with the LinkedIn draft inline, so on a good week the whole task is a copy and a paste.
It does not post anything on my behalf. That was deliberate. I want a draft I can edit, not an agent publishing under my name while I am asleep.

How I built it
The shape is one I have reused a few times: EventBridge on a schedule, one Lambda, Bedrock Nova Lite for the language work, S3 for state and output, SNS for delivery. Build time was about [X] hours, and almost none of it went on the part I thought was interesting.
CloudFormation caps inline Lambda code at 4096 bytes. I wanted a single stack with no build step and no artifact bucket, which means the handler lives in the
ZipFile property. My first working version was 4581 bytes. cfn-lint passes it without complaint, so I found out from the stack rollback. The fix that bought back the most room was moving the entire prompt into an environment variable, which turned out to be a better design anyway: I can retune my own writing voice with a parameter update instead of a code change. The handler now sits at 4062 bytes, which is uncomfortably close to the ceiling and something I will have to deal with the next time I extend it.




AWS services used and architecture overview
Show Image
- Amazon EventBridge fires a scheduled rule,
cron(30 3 ? * SAT *). That is Saturday morning IST, which is when I would be doing this by hand.
- AWS Lambda (python3.13, 512 MB, 300 second timeout) fetches the source over HTTPS, parses it as a feed or scrapes it as HTML, and diffs the post URLs against a state file. For each new post it then fetches the post page itself, so the model gets a real title and description rather than index-card text.
- Amazon Bedrock drafts the copy with Nova Lite through the Converse API. One call per post, capped at two posts per run so a feed change cannot quietly run up a bill.
- Amazon S3 holds the generated markdown under
drafts/and the seen-URL list atstate/seen.json. Versioned, SSE-S3, no public access.
- Amazon SNS emails the digest with the LinkedIn draft inline.
Eight resources, five services, no DynamoDB and no Step Functions. A JSON file in S3 is a fine state store for something that runs 52 times a year, and a table would have been one more resource to explain for no benefit.
What I learned
The model was never the hard part. My first drafts came back as textbook LinkedIn filler: "In my latest blog post, I detail the process of..." and "this was achieved by leveraging AWS Systems Manager". Nova Lite is perfectly capable of not writing that, but only if you say so. Listing banned phrases explicitly, and telling it to open on a fact from the post rather than on the announcement that a post exists, did more for output quality than anything else I tried. Describing my style in the abstract did nothing.
Repo
One
aws cloudformation deploy , three parameters, no build step.Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article