
Video-as-code: how I built an AI video studio on AWS
How my team of five developers built Showrunner, an internal web studio MVP on AWS that takes a video from idea to a package ready to post. Agents on Amazon Bedrock AgentCore propose, AWS Step Functions and AWS Lambda execute and check, and a person validates every step. I share the full architecture and how I built it in one month with several coding agents working in parallel.
Solutions Architect Media & Entertainment @ AWS
For the second year in a row, our team at AWS France is publishing an Advent calendar. It is one short video a day, from December 1 to December 24, filmed face to camera and posted on LinkedIn (first). Last year, we did everything by hand. The videos were good, but December was long. Each one needed an edit, captions, an intro, a thumbnail, and the text of a post.
None of us is a video editor. We are Solutions Architects, and increasingly more developers. So for the 2026 season, I did what developers do: I "wrote" code. Or rather, I asked Kiro to write it. In one month, I built Showrunner, an internal web studio MVP where a team takes a video show from the idea to a package ready to post. Agents propose, code executes and checks, and a person validates each step.
In this post, I walk you through the full architecture of Showrunner on AWS and the decisions behind it. I also share how I built it: one developer and several coding agents working in parallel. The code is not public, yet, but everything you need to rebuild the architecture is here.
The problem
I gave my teammates one promise: "You film, you check what you say, and that is all." Behind that promise sit five requirements.
- My teammates have day jobs. A video of 90 to 120 seconds cannot cost half a day of editing.
- One look for 24 videos. Five different people make the videos, and they must share the same intro, colors, fonts, and caption style.
- Accuracy. We speak about AWS in public. A service name on screen must match the documentation, and a number must come from a source.
- Transparency. Every video edited with the help of AI carries an "AI-generated edit" label.
- People stay in charge. What we say, which take we keep, and whether a video is good enough stay human decisions.
The principle: agents propose, code executes, people decide
Editing a video mixes two kinds of work.
- The first kind is judgment: which angle fits the topic, which take is best, which hesitation to cut, what an animation should look like. A language model is good at proposing these choices, and a person should make the final call.
- The second kind is execution: cutting at a precise frame, reframing to 9:16, placing captions, counting the words of a post. This work must be exact, repeatable, and cheap. Code does it better than a model.
The architecture follows that line. The agents run on Amazon Bedrock AgentCore. They read the context and return proposals with an explanation. They never write a video file and never publish anything. Deterministic pipelines on AWS Step Functions and AWS Lambda do all the media work. Between the two, a person accepts, edits, or rejects each proposal.
Why not let one large agent produce the whole episode? Because the same steps run 24 times in a season. A model called for every cut, every render, and every check would be slow, expensive, different on every run, and hard to audit.
The path of an episode
An episode goes through six steps in the studio. A person validates each step, and that opens the next one.
Step | The person | The agents | The code on AWS |
|---|---|---|---|
Idea | Gives the topic and drops notes | The Researcher proposes three angles, with sources read in the AWS documentation and on the web | Builds each source from a tool result; the model never writes a source |
Script | Reads and edits the script | The Scriptwriter writes the hook, the parts, and the call to action | Counts words, computes the duration at 150 words a minute, checks AWS service names |
Shoot | Films on a phone and uploads the takes | None | Makes a 720p/1080p/4k proxy and a word-level transcript with the vocabulary of the script |
Rough cut | Picks another take if needed | The Editor helps fix the cut plan | Aligns every take on the script and proposes the best attempt of each sentence |
Edit | Comments at a precise second | The creative agent can add motion design | Frames the face, burns captions, adds the intro of the day, levels the sound, stamps the AI label, checks the video |
Ready | Reads the post text and posts by hand | The Copywriter writes the post | Builds the export package: video, .srt file, post text, thumbnails in multiple formats |
Publishing stays a human action. The code prepares everything, and each person posts from their own account.
Architecture

Figure 1: the architecture of Showrunner. The solid orange line is the path of an episode.
Everything runs in one AWS account, and almost all of it in the Europe (Ireland) Region. Two parts run in US East (N. Virginia): the edge, because AWS WAF for CloudFront and Lambda@Edge must live there, and the web search tool.
1. The agents: one supervisor, specialists as tools
I wrote the agents with Strands Agents . They run in a single AgentCore runtime , a capability of Amazon Bedrock AgentCore. A supervisor agent receives the request from the screen and hands the work to five specialists: the Researcher, the Producer, the Scriptwriter, the Editor, and the Copywriter. The specialists are tools inside the same runtime, not separate deployments. One runtime means fewer cold starts, fewer IAM roles, and one session context per screen.
Four choices matter here:
- An agent turn is asynchronous. Proposing three angles can take a minute, which is longer than the 30-second limit of an API Gateway HTTP integration. The API function starts an "assistant" Lambda function asynchronously, which calls the runtime with the identity of the person. The screen polls the state of the turn.
- Tools go through AgentCore Gateway , a capability of Amazon Bedrock AgentCore. Web search uses Amazon Nova Web Grounding, reading a link uses a Lambda function, and the AWS documentation comes from the AWS Knowledge MCP Server. A request interceptor and a Cedar policy apply the team of the caller to every tool call.
- Code builds the sources. The model cannot type a URL into the list of sources. Each source comes from a tool result, so the agent only cites what it has read.
- The model proposes, the code counts. The duration of a script, its word count, and the length of a post never come from the model. A computed number is right every time.
Each role has its own model, set in a parameter and never written in the code. Claude Sonnet 5.5 runs the supervisor, Claude Haiku 5.5 handles narrow, high-volume tasks, and Claude Opus 5.5 takes the creative roles. Calls go through the European cross-Region inference profiles of Amazon Bedrock. An Amazon Bedrock Guardrails policy screens prompts that try to override the instructions of the agent. AgentCore memory , a capability of Amazon Bedrock AgentCore, keeps the conversation of each episode.
2. The shoot: takes go straight to Amazon S3
A 4K take from a phone weighs several gigabytes, so it never goes through the API. The API function signs a direct upload to Amazon S3, in parts for large files. The code builds the object key from the team in the token. The browser never chooses where it writes.
3. Ingest and rough cut: code does the precise work
When a take lands in S3, an Amazon EventBridge event starts a Step Functions execution. It does three things.
- AWS Elemental MediaConvert makes a 720p / 1080p / 4k proxy that is lighter to edit.
- Amazon Transcribe transcribes the take in French, with a timestamp on every word and a custom vocabulary built from the validated script. AWS service names come out right more often.
- The code aligns each take on the script, sentence by sentence. It finds every attempt at every sentence across all the takes and proposes the best one. The person sees the script with all the attempts under each sentence, and can pick another with one click.
Only S3 pointers travel through Step Functions. Transcripts and cut plans stay in S3, because the payload of a state cannot exceed 256 KiB.
4. The edit: HyperFrames in a Lambda function
The render uses HyperFrames , an open source framework that turns an HTML page into a deterministic MP4 file. It runs in a Lambda function with Chromium and ffmpeg, without a container.
The edit chains steps of code, and each one gives the same result on every run.
- 9:16 framing. We often film in landscape. Amazon Rekognition (
DetectFaces) finds the face on a few frames of each shot, then the code computes a vertical window that follows it. When there is no face, the window stays centered, and the edit never fails.
- Captions. The spoken word lights up in color, and the line moves with the face so it never covers it.
- Intro and outro. The 24 intros of the calendar come from one HTML file, rendered 24 times with the day number. Changing a color is one line and one command to rebuild all 24.
- Sound. The whole video, intro and outro included, is leveled to -14 LUFS with a true peak under -1 dBTP, the usual target for social networks.
- AI label. The code stamps it on the outro of every video. Nobody has to think about it.
A final check measures format, duration, loudness, and the presence of the AI label. This check taught me a lesson. At first, it rejected a video because the loudness was off, even though the code knows how to fix loudness. I changed the rule: the check never blocks a person for something the code can fix. It fixes first, then checks. What it cannot fix becomes a warning, not a refusal.
5. Motion design: the creative agent
To add animations to an episode, Showrunner calls
Video-as-Code Agent , a creative director agent that I co-built with my colleague Guillaume Marchand . Guillaume explains how it works, from its review loop to its rendering toolbox, on the AWS France blog. You can read his post here: Video-as-Code Agent: your next marketing video is an .html file (in French). Here, I only cover how Showrunner uses it.
Showrunner redeploys the agent in its own account, on its own AgentCore runtime. A Step Functions execution sends it the rough edit, the captions, and the brand kit (colors, fonts, logo, caption style). It also sends the resources of the episode (idea, sources, script) and the official AWS Architecture Icons of the services that the episode names. The agent delivers its video in about 45 minutes. Showrunner then adds the intro, the outro, the sound leveling, and the AI label.
Two choices matter for a team:
- The code of the agent runs isolated. Its AgentCore Code Interpreter session sits in a VPC with no internet access, so the code that the model writes cannot reach the outside world.
- A note does not redo the whole video. A comment at a precise time changes only a short window around that moment. Simple fixes, such as zooming on the face or removing an animation, run as code without the agent, in about a minute.
The services at a glance
Component | Services | Why |
|---|---|---|
Access | AWS WAF, Amazon CloudFront, Lambda@Edge, Amazon Cognito | The whole site sits behind a sign-in gate, and access is by invitation |
API | Amazon API Gateway, AWS Lambda | A JWT checks every call, and the code applies the team, the role, and the step |
Data | Amazon DynamoDB, Amazon S3, AWS KMS | One table, every key starts with the team, everything is encrypted |
Media pipeline | AWS Step Functions, AWS Lambda, AWS Elemental MediaConvert, Amazon Transcribe, Amazon Rekognition | Repeatable code, retries, no cost at rest |
Agents | Amazon Bedrock AgentCore (runtime, Gateway, memory), Amazon Bedrock, Amazon Nova | Isolated sessions, tools in one place, European inference profiles |
Creative studio | AgentCore runtime, AgentCore Code Interpreter, Amazon VPC | Code written by the model runs isolated, with no internet access |
How I built it
The architecture is half of the story. The other half is how it was built: in one month, with several coding agents working at the same time.
One developer, several agents in parallel
I wrote Showrunner with Kiro and several coding agents running in parallel, each on its own issue. Between the first commit on October 24 and November 24, the repository received about 1,400 commits, more than 260 merge requests, and 17 architecture decision records (ADRs).
Several agents in one repository break things fast when nobody sets rules. My rules live in an
AGENTS.md file at the root of the repository, and every agent reads it before it touches the code. Here are some excerpts:- Never edit the main clone. Each agent works in its own git worktree inside the repository.- Stay inside the files you own. Two agents editing the same file is how merges break.- One issue, one branch, one merge request.- Every job of the pipeline blocks the merge. Never mark a job allow_failure, skip a test or loosen an assertion to get a green pipeline: fix the code.- When you add a guard, prove it bites: break the code locally, watch the test fail, restore it, and say so in the MR.- A green pipeline does not prove a screen looks right. Render the screens and look at them at 390 px, 1440 px and 2560 px.- Agents make no AWS calls. Deploys happen only from the main pipeline.
Four habits made the difference:
- One worktree per agent. Each agent works in its own Git working copy, on its own branch. Two agents never edit the same file at the same time.
- Tests that bite. An agent that adds a check must show that the check fails when the code is broken. Otherwise, a green test proves nothing.
- A definition of done. A merge request is done only when the issue is met, the documentation is updated in the same merge request, the tests pass, and the change is verified in production after the deploy.
- Raw ideas stay ideas. When I drop a one-line idea, the agent opens a "Brainstorming" issue with proposals and questions, and does not write code until I pick an option.
What I learned
- Never block a person for something the code can fix. Loudness, format, the AI label: the code fixes first, then checks.
- Test on real footage. Face framing passed every test, then failed on the first real take, filmed at 30 frames per second. The tests now use our real takes.
- Look at every frame. A green pipeline does not tell you whether a video looks good. Before I show a result, I look at the rendered frames, not at the report.
- Give the creative agent room. It has a few hard rules (captions, AI label, order of speech, brand colors and fonts), and everything else is inspiration. The animations adapt to each topic.
The first published videos
The calendar went live on December 1 . Figure 2 shows frames from the first video, by my teammate Pierre, about how Amazon CloudFront delivers a large game download. The face cam alternates with animations, from the game map to the elf on the rooftop.

Figure 2: frames from the day 1 video, as published on LinkedIn.
Figure 3 shows the day 8 video, which I filmed, about how AWS WAF can make AI bots pay to read a website. It airs on December 8, so these frames come from the cut ready for publication. The creative agent added a gauge of bots against humans and an AWS WAF card. It also added a terminal where a bot asks for an article and gets an HTTP 402 Payment Required answer.

Figure 3: frames from the day 8 video, before publication.
What changed for the team
The first edit does most of the work. A person watches it, comments on two or three moments, and the video is ready. The time we spend goes where it matters: the shoot and the message.
Showrunner does not replace a video editor. A real editor would do better, and make it more beautiful. What Showrunner gives us is the chance to make 24 short, clean videos that we would not have made at all, with the tools we already use as developers.
Conclusion
In this post, you saw the architecture of Showrunner. Agents on Amazon Bedrock AgentCore propose, and Step Functions and Lambda pipelines execute and check. A creative director works isolated in a studio with no internet access, and a person decides at every step. You also saw how one developer and several coding agents built this studio in a month, with a short set of rules in one file.
If you build something similar, start with the split between judgment and execution: give the model the choices, and give the code everything that must be exact. Our 2026 Advent calendar started on December 1, and I will share the behind-the-scenes story in a video, with this architecture. Some of my teammates skip the web application and do everything from their own AI assistant. If you want to know how, tell me, and I will cover it in a part 2.
Tell me in the comments which task outside your job you solved with code.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article