<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AWS Heroes</title>
    <description>The latest articles on DEV Community by AWS Heroes (aws-heroes).</description>
    <link>https://dev.to/aws-heroes</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F2491%2Ff0c1a659-c959-42cd-bb12-cd25909dd9db.png</url>
      <title>DEV Community: AWS Heroes</title>
      <link>https://dev.to/aws-heroes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aws-heroes"/>
    <language>en</language>
    <item>
      <title>Remote KiroCrew running on a Lambda</title>
      <dc:creator>Vivek V.</dc:creator>
      <pubDate>Wed, 25 Nov 2026 23:39:26 +0000</pubDate>
      <link>https://dev.to/aws-heroes/remote-kirocrew-running-on-a-lambda-3jbn</link>
      <guid>https://dev.to/aws-heroes/remote-kirocrew-running-on-a-lambda-3jbn</guid>
      <description>&lt;p&gt;Coding agents burn through a plan quickly. When mine ran out mid-week, I wanted a cheap place to run other agents, away from the laptop. Lambda now has two compute types that fit: Lambda Web Functions, which run an HTTP server behind an endpoint, and MicroVMs, which run a full Linux VM with per-second billing. I used both.&lt;/p&gt;

&lt;p&gt;This post covers what runs where, how the laptop connects without an open port, what the free models do with your data, what it costs, how to tear it down, and what broke.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measure&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenCode ready after a cold start&lt;/td&gt;
&lt;td&gt;4.3 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warm turn on a free model&lt;/td&gt;
&lt;td&gt;1–2 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lambda MicroVM cost at 2 GB&lt;/td&gt;
&lt;td&gt;$0.126/hour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model cost on the free tier&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What runs where
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A Lambda Web Function&lt;/strong&gt; runs &lt;code&gt;opencode serve&lt;/code&gt;, the OpenCode HTTP server, on a free model. It keeps each conversation in S3.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;KiroCrew uses it as its harness.&lt;/strong&gt; KiroCrew can drive another agent through the Agent Client Protocol (ACP). Its Agent Harness setting selects OpenCode, and an environment variable points it at a different OpenCode binary. An ACP-to-HTTP adapter speaks ACP on stdin and stdout, then forwards each prompt to the Lambda Web Function.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Lambda MicroVM&lt;/strong&gt; runs the KiroCrew gateway. The loopback relay signs requests with the VM's IAM role.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your laptop&lt;/strong&gt; connects to that gateway through Settings, Remote Crew, over AWS Systems Manager (SSM).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6iupffq3wsjmnc0xonqb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6iupffq3wsjmnc0xonqb.png" alt="Remote KiroCrew architecture" width="800" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The setup leaves the KiroCrew release unchanged. The CDK app, adapter, launcher and tests are in the &lt;a href="https://github.com/awsdataarchitect/kirocrew-on-lambda" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a Lambda Web Function for OpenCode
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;opencode serve&lt;/code&gt; is a long-lived HTTP server, which is what a Lambda Web Function runs. These limits shaped the design:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Limit&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Containers&lt;/td&gt;
&lt;td&gt;None. The docs and the API show zip packages only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Package size, unzipped&lt;/td&gt;
&lt;td&gt;512 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/tmp&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;512 MB, about 320 MB free once OpenCode has started&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CPU and memory&lt;/td&gt;
&lt;td&gt;2 vCPU, 2 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Request time&lt;/td&gt;
&lt;td&gt;3 to 900 seconds, default 30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time to start listening&lt;/td&gt;
&lt;td&gt;10 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Architecture&lt;/td&gt;
&lt;td&gt;arm64 only&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sources: &lt;a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html" rel="noopener noreferrer"&gt;quotas&lt;/a&gt; and &lt;a href="https://docs.aws.amazon.com/lambda/latest/dg/web-functions-runtimes.html" rel="noopener noreferrer"&gt;runtimes&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;OpenCode is one binary of about 200 MB, so the whole package is 231 MB unzipped and fits. Python runs on the &lt;code&gt;python3.15&lt;/code&gt; Lambda Web Function runtime, which is in public preview. A thin Python app starts the binary and relays requests to it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strands stays on the MicroVM.&lt;/strong&gt; I also installed the Strands harness there and connected it to NVIDIA NIM. That gave me two real harness paths to test: OpenCode through the Lambda Web Function and Strands through the MicroVM. The Lambda Web Function runtime could not install the pinned Strands dependency because its wheel stops at Python 3.14, while Lambda Web Functions offer only Python 3.15.&lt;/p&gt;

&lt;h2&gt;
  
  
  Free models and privacy
&lt;/h2&gt;

&lt;p&gt;OpenCode's free models come with different data terms. This is what the &lt;a href="https://opencode.ai/docs/console/models/" rel="noopener noreferrer"&gt;OpenCode docs&lt;/a&gt; said on 2026-11-23:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Retention and use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;deepseek-v4.1-flash-free, hy4-flash-free&lt;/td&gt;
&lt;td&gt;Zero retention, no training&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;big-pickle, tidepool-alpha-free, iceman-free&lt;/td&gt;
&lt;td&gt;Used to improve the model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;flint-40b-free&lt;/td&gt;
&lt;td&gt;Used to improve the model, retained 30 days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;beam-free&lt;/td&gt;
&lt;td&gt;Not used for training, retained 30 days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;nemotron-3.5 free models&lt;/td&gt;
&lt;td&gt;NVIDIA trial: logged, don't submit confidential data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mimo-v2.6-flash-free&lt;/td&gt;
&lt;td&gt;No terms stated&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I allow only &lt;code&gt;deepseek-v4.1-flash-free&lt;/code&gt; and &lt;code&gt;hy4-flash-free&lt;/code&gt; in the Lambda Web Function. Any other model name is rejected.&lt;/p&gt;

&lt;p&gt;Two more things to expect. The catalog changes: the model I started with was gone nine days later, so read it with &lt;code&gt;opencode models opencode&lt;/code&gt; before you pin one. And the free tier has a cap. After about 100 prompts OpenCode logged "Free usage limit reached" and kept retrying, so my requests hung until the 120-second timeout. A newly deployed MicroVM may receive a separate daily quota to keep you going, but I have not verified that. My wrapper gives up after 40 seconds and returns HTTP 429 instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploy the crew, start it and stop it
&lt;/h2&gt;

&lt;p&gt;Clone the &lt;a href="https://github.com/awsdataarchitect/kirocrew-on-lambda" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt; and install its Node dependencies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/awsdataarchitect/kirocrew-on-lambda.git
&lt;span class="nb"&gt;cd&lt;/span&gt; kirocrew-on-lambda
npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The deploy script builds the Lambda Web Function package, bootstraps CDK if needed and deploys both stacks. From the repository root:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./deploy.sh          &lt;span class="c"&gt;# both stacks, about 8 minutes&lt;/span&gt;
./deploy.sh check    &lt;span class="c"&gt;# live Lambda Web Function check&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Prerequisites: AWS CLI v2 with credentials, Node 22 or newer, &lt;a href="https://docs.astral.sh/uv/" rel="noopener noreferrer"&gt;uv&lt;/a&gt;, and the Session Manager plugin on the laptop. The Strands harness reads a free NVIDIA NIM key from an SSM Standard String parameter. Create it before deployment, without committing the value or using &lt;code&gt;SecureString&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;read&lt;/span&gt; -rsp &lt;span class="s2"&gt;"NVIDIA NIM API key: "&lt;/span&gt; NVIDIA_NIM_API_KEY&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'\n'&lt;/span&gt;
aws ssm put-parameter \
  --name /nim-free/api-key \
  --type String \
  --value &lt;span class="s2"&gt;"$NVIDIA_NIM_API_KEY"&lt;/span&gt; \
  --overwrite \
  --region us-east-1
&lt;span class="kd"&gt;unset&lt;/span&gt; NVIDIA_NIM_API_KEY
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The deploy role needs permission to read that parameter. The CDK stack passes the parameter reference to the MicroVM; the key is not written into the image, repository or logs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;crew/scripts/crew.sh up          &lt;span class="c"&gt;# launch one crew, about a minute to ready&lt;/span&gt;
crew/scripts/crew.sh status      &lt;span class="c"&gt;# phase and installed KiroCrew version&lt;/span&gt;
crew/scripts/crew.sh down        &lt;span class="c"&gt;# stop billing, save state&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The image build runs the official KiroCrew installer (&lt;code&gt;--channel stable&lt;/code&gt;), so each rebuild picks up the latest stable release. The installer checks a signed release feed and the wheel's SHA-256 before it installs anything, and it needs &lt;code&gt;openssl&lt;/code&gt; for that. Read the pinned Strands versions from the installed release instead of copying them, so a newer KiroCrew brings its own.&lt;/p&gt;

&lt;p&gt;The gateway's home folder is copied to S3 every minute and on shutdown, so a new VM continues your sessions. The VM lives at most one hour by default (the platform maximum is 8), and it bills only while it runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Remote Crew deployment options
&lt;/h2&gt;

&lt;p&gt;The familiar Remote Crew choices are a cloud crew, which runs on an EC2 instance in your AWS account, and a local crew, which runs on a machine you already have. This blog adds the Lambda MicroVM option. Fargate provides another remote path when a chat API is enough:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;What it is&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cloud crew&lt;/td&gt;
&lt;td&gt;A managed install on an EC2 instance in your AWS account, billed per second while it runs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local crew&lt;/td&gt;
&lt;td&gt;You set up a crew on a machine you already have&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fargate task&lt;/td&gt;
&lt;td&gt;A chat API on an ECS Fargate task. KiroCrew tunnels to it with &lt;code&gt;aws ssm start-session&lt;/code&gt;; the card shows a URL to call, with no dashboard and no token. It needs the AWS CLI, Session Manager plugin and permission for SSM Session Manager.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Lambda MicroVM (this blog)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A crew on a Lambda MicroVM, billed per second while it runs and wired up with SSM&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The three Remote Crew connection methods are SSH, AWS SSM Session Manager and the Fargate task chat API. This post uses AWS SSM Session Manager for the MicroVM.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the laptop connects over SSM
&lt;/h2&gt;

&lt;p&gt;SSH needs an open port and a key. A MicroVM has neither. SSM works the other way round: the MicroVM calls out to AWS, so nothing listens. The MicroVM registers itself as a managed node, and your laptop asks SSM to run a command on it and to forward a port. Who may do that is an IAM decision.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Before launch, the launcher creates a hybrid activation: a code that registers one machine, single-use, expiring in an hour.&lt;/li&gt;
&lt;li&gt;The launcher passes the activation id and code to the MicroVM in its run payload.&lt;/li&gt;
&lt;li&gt;Inside the MicroVM, the SSM agent registers with that code. The MicroVM appears as a managed node with an id that starts with &lt;code&gt;mi-&lt;/code&gt; and shows Online.&lt;/li&gt;
&lt;li&gt;In Settings, Remote Crew, add a crew: connection method AWS SSM, that &lt;code&gt;mi-&lt;/code&gt; id, remote user &lt;code&gt;crew&lt;/code&gt;, the gateway's port, and the &lt;code&gt;kirocrew&lt;/code&gt; path on the MicroVM. &lt;code&gt;crew.sh remote-config&lt;/code&gt; prints these values.&lt;/li&gt;
&lt;li&gt;When you press Connect, KiroCrew uses your own AWS credentials. Run Command runs &lt;code&gt;kirocrew token&lt;/code&gt; on the MicroVM to mint a login token. Session Manager forwards the gateway's port to your laptop.&lt;/li&gt;
&lt;li&gt;You need &lt;code&gt;ssm:SendCommand&lt;/code&gt;, &lt;code&gt;ssm:GetCommandInvocation&lt;/code&gt; and &lt;code&gt;ssm:StartSession&lt;/code&gt; on that node. There is no key to lose and no inbound rule.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The role the MicroVM assumes only needs the &lt;code&gt;AmazonSSMManagedInstanceCore&lt;/code&gt; managed policy. I did not need Secrets Manager or KMS for any of this. See &lt;a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/activations.html" rel="noopener noreferrer"&gt;hybrid activations&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I verified this path with the final image: the Remote Crew pane connected over SSM, minted a token, opened the gateway and completed a chat turn through the OpenCode Lambda Web Function.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reach it from your phone with Tailscale
&lt;/h2&gt;

&lt;p&gt;KiroCrew's dashboard can be published on a tailnet, and it has a Connect your phone control in the side rail. On the laptop, enable the dashboard's Tailscale access and use the displayed tailnet address. On the iPhone, install and sign in to Tailscale, turn on &lt;strong&gt;Use Tailscale DNS settings&lt;/strong&gt; in the app, then open that address. The phone can reach the same remote crew without exposing the gateway to the public internet.&lt;/p&gt;

&lt;p&gt;The final setup was checked from an iPhone. The screenshot below shows the phone connected to the remote KiroCrew dashboard.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpu5cvr6alyblflae30kx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpu5cvr6alyblflae30kx.png" alt="KiroCrew remote crew on an iPhone over Tailscale" width="420" height="814"&gt;&lt;/a&gt;&lt;br&gt;
&amp;nbsp;&lt;/p&gt;

&lt;h2&gt;
  
  
  What broke
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The SSM agent needs root, and the VM forbids it.&lt;/strong&gt; The VM runs with the no-new-privileges flag, so &lt;code&gt;sudo&lt;/code&gt; refuses to start: "The 'no new privileges' flag is set, which prevents sudo from running as root." The agent runs as root and keeps its credentials under &lt;code&gt;/root&lt;/code&gt; (&lt;a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent-technical-details.html" rel="noopener noreferrer"&gt;docs&lt;/a&gt;), so running it as your app user does not work. I start the container as root and run one small helper. It accepts a single request on a unix socket, checks the region, activation id and code against strict patterns, registers once, and starts the agent. Everything else drops to a normal user.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run Command's PATH is short.&lt;/strong&gt; KiroCrew wraps remote commands in &lt;code&gt;sudo -u crew -i bash&lt;/code&gt;. With a stand-in &lt;code&gt;sudo&lt;/code&gt; in &lt;code&gt;/usr/local/bin&lt;/code&gt;, Run Command answered "sudo: command not found", because its PATH has &lt;code&gt;/usr/bin&lt;/code&gt; but not &lt;code&gt;/usr/local/bin&lt;/code&gt;. Install the stand-in in &lt;code&gt;/usr/bin&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A suspended VM drops your session.&lt;/strong&gt; I had set the idle policy to suspend the VM after 5 minutes, and by the time I pressed Connect it was suspended. A suspended VM freezes the SSM agent, and Session Manager does not wake it, so the port forward timed out after 25 seconds. Set the maximum idle time to the VM's lifetime and let the lifetime cap bound the cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Connect failed with "No such file or directory" for the kirocrew path.&lt;/strong&gt; The Remote Crew entry stores the path to &lt;code&gt;kirocrew&lt;/code&gt; on the remote. An entry left over from an earlier attempt pointed at a path that did not exist on this VM. Set it to the installer's path, &lt;code&gt;/usr/local/bin/kirocrew&lt;/code&gt; here.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Lambda Web Function answered 403 to signed requests.&lt;/strong&gt; The endpoint wants a signed &lt;code&gt;x-amz-content-sha256&lt;/code&gt; header. The JavaScript signer adds it by default and botocore does not. Add the header before you sign.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The prompt is longer than you think.&lt;/strong&gt; KiroCrew sends its whole agent prompt before your message. My first wrapper cut prompts at 2,000 characters, so the model never saw the question and replied to the preamble. Cap at 200,000.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTTP 429 from the endpoint.&lt;/strong&gt; Read the &lt;code&gt;lambda-web-error-type&lt;/code&gt; header. &lt;code&gt;Platform.EndpointMaxEnvThrottle&lt;/code&gt; means the endpoint hit its &lt;code&gt;maxEnvironments&lt;/code&gt; limit. I had it at 2, the lowest allowed. Raise it. See &lt;a href="https://docs.aws.amazon.com/lambda/latest/dg/web-functions-scaling.html" rel="noopener noreferrer"&gt;scaling behaviour&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The server may start your app in more than one process.&lt;/strong&gt; Two &lt;code&gt;opencode serve&lt;/code&gt; processes on one home folder gave "database is locked", and requests failed after waiting 60 seconds. A file lock lets one process start it and the others reuse it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keep the conversation outside the environment.&lt;/strong&gt; Environments scale in and out, and &lt;code&gt;/tmp&lt;/code&gt; is lost with them. I store each conversation as a transcript in S3. A new environment creates a fresh OpenCode session and posts the earlier turns with &lt;code&gt;noReply&lt;/code&gt;, which makes no model call. I tried &lt;code&gt;opencode export&lt;/code&gt; and &lt;code&gt;import&lt;/code&gt; first. Thirty concurrent calls timed out at 30 seconds on 2 vCPU, because each call starts a process. In a test with 36 sessions across two environments, turns that moved between environments came back restored and still knew the code word.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;S3 Files did not fit.&lt;/strong&gt; A Lambda Web Function has no file system setting in its service model. A MicroVM accepts one default-route network connector, and a VPC connector without a NAT gateway could not reach SSM or the model API, so the SSM read timed out. I copy state with the S3 API instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The image build failed.&lt;/strong&gt; The installer needs &lt;code&gt;openssl&lt;/code&gt; to verify its feed, a root-owned uv cache blocked it when it ran as a normal user, and a Strands package spec had its extra in the wrong place (&lt;code&gt;pkg==1.0[extra]&lt;/code&gt; instead of &lt;code&gt;pkg[extra]==1.0&lt;/code&gt;). A failed image build rolls the stack back and deletes its log group, so copy the build log while it runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;Prices are for us-east-1 on Arm, from the &lt;a href="https://aws.amazon.com/lambda/pricing/" rel="noopener noreferrer"&gt;Lambda pricing page&lt;/a&gt; and the Price List API.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MicroVM, 2 GB and 1 vCPU&lt;/td&gt;
&lt;td&gt;$0.0000276944 per vCPU-second plus $0.0000036667 per GB-second, so about $0.126 per hour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lambda Web Function&lt;/td&gt;
&lt;td&gt;$0.30 per million requests, the same vCPU and memory rates, billed on active CPU, not on waiting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MicroVM snapshots&lt;/td&gt;
&lt;td&gt;$0.00155 per GB read at launch, $0.0038 per GB written at suspend, image storage $0.08 per GB-month with a one-week minimum&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon ECR&lt;/td&gt;
&lt;td&gt;No private ECR application image is stored in this design. Lambda builds the MicroVM image from the S3 code artifact; the Dockerfile uses public ECR base images. If you switch to a private ECR base image, standard &lt;a href="https://aws.amazon.com/ecr/pricing/" rel="noopener noreferrer"&gt;Amazon ECR storage and applicable data-transfer charges apply&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Session Manager, Run Command&lt;/td&gt;
&lt;td&gt;$0.05 per connection, $0.002 per command &lt;a href="https://aws.amazon.com/blogs/multicloud/centralize-your-multicloud-management-in-aws-systems-manager-with-automated-onboarding-and-simplified-pricing/" rel="noopener noreferrer"&gt;AWS blog&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Free models, SSM Standard parameter, hybrid activation&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;An example month: a crew for 2 hours a day over 20 days, one Connect per day, 100 turns a day.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;Calculation&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MicroVM&lt;/td&gt;
&lt;td&gt;40 hours at $0.126&lt;/td&gt;
&lt;td&gt;$5.04&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSM&lt;/td&gt;
&lt;td&gt;20 connections at $0.05 and 20 commands at $0.002&lt;/td&gt;
&lt;td&gt;$1.04&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lambda Web Function&lt;/td&gt;
&lt;td&gt;2,000 requests at about $0.0000192&lt;/td&gt;
&lt;td&gt;$0.04&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;about $6.12&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The total includes the MicroVM, Lambda Web Function, SSM connection and command charges in this example. S3 storage, S3 requests and CloudWatch Logs add usage-based charges that depend on retention and traffic, so check those separately in Cost Explorer. The Lambda Web Function figure comes from 648 requests in my logs, which used 442 vCPU-seconds, including cold starts. It leaves out memory, which I did not measure. The MicroVM bills while it runs, so stop it with &lt;code&gt;crew.sh down&lt;/code&gt; when you are done.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tear it down
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;crew/scripts/crew.sh down        &lt;span class="c"&gt;# terminates the VM and deregisters its SSM node&lt;/span&gt;
&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; crew &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; ../node_modules/.bin/cdk destroy&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; webfn &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; ../node_modules/.bin/cdk destroy&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The crew's state bucket is retained on purpose; empty and delete it by hand. Image storage has a one-week minimum. Remove the Remote Crew entry in Settings, since its &lt;code&gt;mi-&lt;/code&gt; id is gone with the VM.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I did not build
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Chat only.&lt;/strong&gt; This adapter forwards messages to OpenCode; it does not forward tool calls, so this path cannot ask for approval before a remote tool runs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One crew at a time.&lt;/strong&gt; Two VMs would write to the same state prefix.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A preview runtime.&lt;/strong&gt; The Lambda Web Function runs on &lt;code&gt;python3.15&lt;/code&gt;, which can change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not measured.&lt;/strong&gt; An 8-hour Lambda MicroVM launch and cost per turn at scale. Only us-east-1 was tested.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A weekend experiment that became a remote crew
&lt;/h2&gt;

&lt;p&gt;What started as a weekend project to test Lambda Web Functions on the new Python 3.15 runtime grew into an experiment in launching KiroCrew from an iPhone while its gateway ran inside Lambda: OpenCode on a Lambda Web Function, Strands with NVIDIA NIM in a MicroVM, SSM access from a laptop, and the same crew reachable from an iPhone over Tailscale.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/awsdataarchitect/kirocrew-on-lambda" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt; contains the complete CDK project, launcher and setup instructions.&lt;/p&gt;

&lt;p&gt;Now, go build!&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>lambda</category>
      <category>microvm</category>
      <category>opencode</category>
    </item>
    <item>
      <title>Rent the Job. Own the Life.</title>
      <dc:creator>Brian Tarbox</dc:creator>
      <pubDate>Mon, 23 Nov 2026 16:57:26 +0000</pubDate>
      <link>https://dev.to/aws-heroes/rent-the-job-own-the-life-12g3</link>
      <guid>https://dev.to/aws-heroes/rent-the-job-own-the-life-12g3</guid>
      <description>&lt;p&gt;I own a house. I've also rented a lot of apartments. I treated them very differently. In my apartments, I paid rent on time. I didn't punch holes in the walls. I got my security deposit back. Mostly. But I never repainted a landlord's kitchen at 11 p.m. on a Sunday.&lt;/p&gt;

&lt;p&gt;I have, however, done the equivalent for employers more times than I can count.&lt;/p&gt;

&lt;p&gt;Here's the metaphor I can't shake. Life is a house you own. Usually forever. Work is an apartment you rent. By definition, it ends. Maybe in two years, maybe in twenty. But it ends.&lt;/p&gt;

&lt;p&gt;That difference should shape where your attention goes. For most of us, it doesn't.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who gets the equity&lt;/strong&gt;&lt;br&gt;
When you pay a mortgage, you build equity. When you pay rent, you build someone else's.&lt;/p&gt;

&lt;p&gt;Your hours work the same way. Time with your kids compounds. So does your health. So do friendships, which turn out to need regular deposits or they quietly go dormant.&lt;/p&gt;

&lt;p&gt;The extra Saturday at the office mostly compounds for the company. That's not evil. It's just whose name is on the deed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You don't renovate a rental&lt;/strong&gt;&lt;br&gt;
Nobody puts a $40,000 kitchen into an apartment they're leaving in three years. That would be a strange gift to a landlord who didn't ask for it and won't remember it.&lt;/p&gt;

&lt;p&gt;Yet plenty of us pour nights and weekends into a job that will forget our name six months after we leave. The Slack channel gets archived. The wiki page goes stale. Someone rewrites your clever module and wonders who on earth wrote it this way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The landlord can sell the building&lt;/strong&gt;&lt;br&gt;
You can be a model tenant for ten years. Quiet. Clean. Rent on time. And still get a letter saying the building is going condo and you have 60 days.&lt;br&gt;
In work terms, that's a reorg. Or an acquisition. Or a spreadsheet in a meeting you weren't invited to. None of it is a referendum on your character. It's a property decision. The landlord was always allowed to make it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your furniture moves with you&lt;/strong&gt;&lt;br&gt;
This is the part that keeps the metaphor from turning cynical.&lt;br&gt;
Not everything in a rental belongs to the landlord. Your furniture is yours. When you move, it comes with you.&lt;/p&gt;

&lt;p&gt;At work, the furniture is your skills, your reputation, and your relationships. The engineer you mentored. The customer who trusts you. The thing you finally understood about distributed systems at 2 a.m. during an outage. None of that stays behind when you hand back the keys.&lt;br&gt;
So invest at work. Absolutely. Just invest in the furniture, not the fixtures.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deferred maintenance&lt;/strong&gt;&lt;br&gt;
Anyone who owns a house knows this one. Ignore the small leak in the roof and it becomes a big leak. Then it becomes a ceiling. Then it becomes a conversation with a contractor that starts with a long exhale.&lt;br&gt;
Health works like that. So do marriages, friendships, and the hobby you swear you'll get back to. You can defer maintenance on your actual house for a while. The bill always comes. It's always bigger.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;"So you're saying don't care about your job?"&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
No. Please don't read this and start leaving dishes in the office sink.&lt;br&gt;
Be a great tenant. Pay your rent, which at work means doing excellent work. Keep the place clean. Be good to the neighbors. Great tenants get great references, and references are how you get the next, better apartment.&lt;br&gt;
Just don't confuse being a great tenant with owning the place. The landlord won't.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;"But I love my work"&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
Good. Many of us do, most days.&lt;br&gt;
Some people genuinely own part of the building. Founders. People with a real vocation. Even then, the company and the person are two different things. Companies get acquired. They pivot. They outlive their founders. Ask anyone who started something and then watched a board hand the keys to someone else.&lt;/p&gt;

&lt;p&gt;Loving your apartment is fine. Lots of people love their apartment. It's still not your house.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Renting isn't bad&lt;/strong&gt;&lt;br&gt;
I want to be clear about this, because the metaphor can sound like a knock on renters. It isn't. Renting is often the smart move. It's flexible. Someone else fixes the boiler. You can leave when something better comes along.&lt;/p&gt;

&lt;p&gt;The mistake isn't renting. The mistake is acting like you own the place, and letting your actual house fall apart while you do it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where the attention goes&lt;/strong&gt;&lt;br&gt;
In a previous post, I wrote about teams stretched like butter scraped over too much bread &lt;a href="https://dev.to/aws-heroes/butter-scraped-over-too-much-bread-55jn"&gt;https://dev.to/aws-heroes/butter-scraped-over-too-much-bread-55jn&lt;/a&gt;. That's a staffing problem, and it's the company's to fix.&lt;/p&gt;

&lt;p&gt;This is the other half. Given whatever butter you have left, where does it go?&lt;/p&gt;

&lt;p&gt;Put it where the equity is. Show up for the rental. Do great work. Collect the furniture. Then go home, to the house you'll live in for the rest of your life, and fix the roof.&lt;/p&gt;

</description>
      <category>career</category>
      <category>productivity</category>
    </item>
    <item>
      <title>See what your CDK app costs at zero traffic, before you deploy</title>
      <dc:creator>kazuho cryer-shinozuka</dc:creator>
      <pubDate>Mon, 23 Nov 2026 08:34:12 +0000</pubDate>
      <link>https://dev.to/aws-heroes/see-what-your-cdk-app-costs-at-zero-traffic-before-you-deploy-4lh0</link>
      <guid>https://dev.to/aws-heroes/see-what-your-cdk-app-costs-at-zero-traffic-before-you-deploy-4lh0</guid>
      <description>&lt;p&gt;Hi, I'm Kazuho. Last week I was named an AWS DevTools Hero in Japan. Most of my community work goes into contributing to the AWS CDK, and I also maintain a few small tools around it. This post is about one of them.&lt;/p&gt;

&lt;p&gt;You deploy a CDK app the usual way, nothing unusual in the code, and then the bill shows a few hundred dollars a month for resources you never meant to create. Has that happened to you?&lt;/p&gt;

&lt;p&gt;NAT Gateways, load balancers, databases and VPC endpoints charge by the hour whether anyone calls them or not. And it's easy to create one without meaning to. A bare &lt;code&gt;new ec2.Vpc()&lt;/code&gt; quietly adds a NAT Gateway in every Availability Zone it uses, and it's common to notice only when the bill arrives.&lt;/p&gt;

&lt;p&gt;I wanted to know what a CDK app costs before deploying it, so I wrote &lt;a href="https://github.com/badmintoncryer/cfn-idle-cost" rel="noopener noreferrer"&gt;cdk-idle-cost&lt;/a&gt;. It reads &lt;code&gt;cdk.out&lt;/code&gt; and prints what the app costs at zero traffic.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/badmintoncryer/cfn-idle-cost" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe26ssi1pwd4a9gykoket.png" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here it is on a small app with a default VPC, a Multi-AZ Postgres and a Fargate service behind an ALB:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ cdk synth
$ npx cdk-idle-cost --suggest
us-east-1 · 1 stack · idle ≈ $536/mo

AppStack                                      $536/mo
  Db                            ×1            $365  db.r5.large postgres Multi-AZ
                                                  → -$36/mo: db.r6g.large (Graviton)
  Db                            ×100 GB gp2    $23  storage
                                                  → -$194/mo: Single-AZ instance and storage, for development stacks: no standby, so an AZ failure or maintenance takes the database down
  Api/Service/Service           ×1 vCPU        $30  Fargate vCPU (2 tasks)
                                                  → -$7.21/mo: ARM64 vCPU and memory (Graviton, RuntimePlatform CpuArchitecture), if the image is built for arm64
  Api/Service/Service           ×2 GB        $6.49  Fargate memory (2 tasks)
  Vpc/PublicSubnet1/NATGateway  ×1             $33  NAT Gateway
  Vpc/PublicSubnet2/NATGateway  ×1             $33  NAT Gateway
                                                  → -$36/mo: one NAT Gateway for the VPC instead of 2 (CDK natGateways: 1); egress then depends on one AZ
  Api/LB                        ×1             $16  Application Load Balancer
  ...

→ 5 suggestions save $282/mo

prices: bundled snapshot 2026-11-16 · on-demand list prices, 730 h/mo, USD, free tier ignored
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each line shows the construct path, so you can tell which code to change. &lt;code&gt;--suggest&lt;/code&gt; adds cheaper settings along with what each one gives up. One NAT Gateway is fine for dev, less so for production.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Prices come from a snapshot of the AWS price list that ships with the package, so it runs offline and doesn't need AWS credentials. It knows about 70+ resource types. Usage-based charges like requests and data transfer are left out on purpose, so think of the number as the floor of your bill. If it can't read a value from the template, it doesn't guess. The resource shows up as "could not estimate" with the reason. Plain CloudFormation templates work too, which is why the repository and the original npm package are named cfn-idle-cost. &lt;code&gt;cdk-idle-cost&lt;/code&gt; is the same tool under a CDK-friendly name.&lt;/p&gt;

&lt;h2&gt;
  
  
  In pull requests
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;--base&lt;/code&gt; compares two synthesized apps and shows only what changed. Say a pull request moves the database from &lt;code&gt;db.t4g.medium&lt;/code&gt; to &lt;code&gt;db.r5.large&lt;/code&gt;, drops &lt;code&gt;natGateways: 1&lt;/code&gt; and adds an interface endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ npx cdk-idle-cost --base cdk.out.main cdk.out
us-east-1 · idle ≈ $214 → $536/mo (+$322)

  ~ AppStack  Db                             $117 →  $388   +$271  db.t4g.medium postgres Multi-AZ + 1 more → db.r5.large postgres Multi-AZ + 1 more
  + AppStack  Vpc/PublicSubnet2/NATGateway  $0.00 →   $33    +$33  NAT Gateway
  + AppStack  Vpc/SecretsEndpoint           $0.00 →   $15    +$15  interface endpoint
  + AppStack  Vpc/PublicSubnet2/EIP         $0.00 → $3.65  +$3.65  public IPv4 address
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's a GitHub Action that posts this as a PR comment and fails the check when the increase goes over &lt;code&gt;max-increase&lt;/code&gt;. If you'd rather catch it at &lt;code&gt;cdk synth&lt;/code&gt;, &lt;code&gt;IdleCost.apply(app, { max: 300 })&lt;/code&gt; from the &lt;code&gt;cfn-idle-cost&lt;/code&gt; package does that.&lt;/p&gt;

&lt;p&gt;To try it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cdk synth
npx cdk-idle-cost
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If a price looks off or a resource you use isn't counted, please &lt;a href="https://github.com/badmintoncryer/cfn-idle-cost/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And if you find it useful, a star on &lt;a href="https://github.com/badmintoncryer/cfn-idle-cost" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; would make my day.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cdk</category>
      <category>finops</category>
      <category>devops</category>
    </item>
    <item>
      <title>Vibe Coding Is 3D-Printed Steak</title>
      <dc:creator>Brian Tarbox</dc:creator>
      <pubDate>Sun, 22 Nov 2026 19:31:03 +0000</pubDate>
      <link>https://dev.to/aws-heroes/vibe-coding-is-3d-printed-steak-i5b</link>
      <guid>https://dev.to/aws-heroes/vibe-coding-is-3d-printed-steak-i5b</guid>
      <description>&lt;p&gt;Somewhere in a grocery freezer in the Northeast there is a box of filet mignon. It's marbled. It's premium. The box says so.&lt;br&gt;
It was printed.&lt;/p&gt;

&lt;p&gt;That's not a metaphor. In September 2026, Steakholder Foods announced that its Perfecta line of plant-based steak, chicken and salmon had reached retail shelves in the Northeastern US. &lt;/p&gt;

&lt;p&gt;The cuts come off industrial 3D printers, one layer at a time, with the "fat" laid down exactly where a cow would have put it. If the cow had read the spec.&lt;/p&gt;

&lt;p&gt;And according to reports, nothing on the package tells you a printer was involved. I live in Massachusetts, one of the states on the distribution list. So this is personal.&lt;/p&gt;

&lt;p&gt;I've been thinking about that steak a lot lately. Mostly because I keep seeing it in pull requests.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It Looks Exactly Like Steak&lt;/strong&gt;&lt;br&gt;
Vibe coding works like this. You describe what you want. The model hands you something. It runs. The UI is clean. The buttons have rounded corners. There is a dark mode you didn't ask for. Someone on your team says "wow."&lt;/p&gt;

&lt;p&gt;This is the marbled filet in the freezer case.&lt;/p&gt;

&lt;p&gt;The demo is the one moment in a program's life where nothing is asked of it. No real users. No bad input. No 3 a.m. traffic spike. No auditor. It just has to sit there under good lighting and look delicious. Generated code is extremely good at sitting under good lighting.&lt;/p&gt;

&lt;p&gt;That is not a criticism of the model. That is a description of what it was asked to do. You asked for something that looks like steak. You got it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Red Is Beets&lt;/strong&gt;&lt;br&gt;
A food printer is a shape machine. It is superb at the outside: the grain, the marbling, the exact silhouette of a filet. What's inside is a different question. Reported ingredients for the printed line are soy, wheat and rice proteins, oils, starches, flavorings, and beetroot powder for color.&lt;/p&gt;

&lt;p&gt;That is not poison. It's just not what the picture promised.&lt;/p&gt;

&lt;p&gt;Vibe-coded apps have beetroot powder too. The outside is perfect. Then you cut in and find:&lt;br&gt;
• Error handling that catches everything and logs nothing&lt;br&gt;
• A retry loop with no backoff, aimed directly at a paid API&lt;br&gt;
• Secrets in a config file, helpfully committed&lt;br&gt;
• A database query inside a loop inside another loop&lt;br&gt;
• Tests that assert the function returns something&lt;br&gt;
• A dependency nobody has heard of, last updated during a previous administration.&lt;/p&gt;

&lt;p&gt;None of this shows up in the screenshot. All of it shows up in production. Usually on a Friday.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You're Supposed to Eat This One&lt;/strong&gt;&lt;br&gt;
The old plastic burger in a restaurant window was honest. Nobody bit it. Everyone understood the deal: a picture of food, made of not-food.&lt;/p&gt;

&lt;p&gt;Printed steak is different. It's meant to be eaten. It sits next to real food, priced like premium food, and the label lists what's in it without mentioning how it was made.&lt;/p&gt;

&lt;p&gt;That is the vibe coding problem exactly. Generated code doesn't stay in the window as a demo. It goes into the kitchen. It gets plated. It gets served to customers. And nothing on the package says "a model wrote this and nobody read it."&lt;/p&gt;

&lt;p&gt;I've been writing software for 45 years. I started in assembly and C, where the machine told you immediately and personally when you were wrong.&lt;/p&gt;

&lt;p&gt;Modern tools are far more polite. They'll let you ship the printed filet with a smile. The feedback loop that used to take one segfault now takes one incident review.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In Fairness to the Printer&lt;/strong&gt;&lt;br&gt;
I'm not anti-printed-food. Food scientists point to real upsides: precise control over texture and nutrition, and help for people with specific dietary needs. Some people will genuinely like it. Taste is personal.&lt;/p&gt;

&lt;p&gt;The printer isn't the villain. The villain is skipping the taste test because it looks right.&lt;/p&gt;

&lt;p&gt;Same with AI-generated code. It shines for prototypes, spikes, internal tools with one user who is also the author, throwaway scripts, and clickable demos that help a stakeholder say "no, not that" in week one instead of month six. With real engineering behind it, it can absolutely become dinner.&lt;/p&gt;

&lt;p&gt;The mistake isn't printing the steak. The mistake is serving it without tasting it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Taste Test&lt;/strong&gt;&lt;br&gt;
Before you serve anything that came out of a prompt, take a bite.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Read it. All of it. If you can't explain a block of code, you don't own it. You're renting it from a model that won't be on call.&lt;/li&gt;
&lt;li&gt; Feed it bad input. Empty strings. Huge strings. Unicode. Nulls. The input real users generate while trying to help.&lt;/li&gt;
&lt;li&gt; Cut into the middle. Look at error paths, retries, timeouts, and logging. That's where generated code is thinnest.&lt;/li&gt;
&lt;li&gt; Read the ingredients. Audit dependencies. Look for secrets. Ask what it can reach and why.&lt;/li&gt;
&lt;li&gt; Write the tests yourself. Or at least the assertions. A model writing its own exam is grading on a very generous curve.&lt;/li&gt;
&lt;li&gt; Put it under load. Everything tastes fine when nobody's hungry.
If it passes, congratulations. You turned a printed shape into a meal. That's real engineering, and the AI genuinely saved you time getting there.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If it fails, also congratulations. You found out in the kitchen instead of the dining room.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Takeaway&lt;/strong&gt;&lt;br&gt;
AI coding tools are incredible at producing things that look done. Looking done and being done have always been different. We used to have a lot of friction that forced us to notice the gap. Now the gap arrives vacuum-sealed, with dark mode.&lt;/p&gt;

&lt;p&gt;So go ahead. Buy the printed steak. Try it. Maybe you'll love it.&lt;br&gt;
Just taste it before you serve it to guests.&lt;/p&gt;

&lt;p&gt;What's the best-looking printed steak you've seen merged? Asking for a friend. The friend is my on-call rotation.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Lambda Is No Longer Just One Function: 10 AWS Changes Before re:Invent 2026</title>
      <dc:creator>Pawel Zubkiewicz</dc:creator>
      <pubDate>Sun, 22 Nov 2026 13:13:00 +0000</pubDate>
      <link>https://dev.to/aws-heroes/lambda-is-no-longer-just-one-function-10-aws-changes-before-reinvent-2026-226b</link>
      <guid>https://dev.to/aws-heroes/lambda-is-no-longer-just-one-function-10-aws-changes-before-reinvent-2026-226b</guid>
      <description>&lt;p&gt;Do you know what your Lambda function is called today?&lt;/p&gt;

&lt;p&gt;Just "Lambda function"? Well, not anymore.&lt;/p&gt;

&lt;p&gt;Event Function. AWS renamed it on October 12, 2026, and you probably haven't even heard about it. 😉&lt;/p&gt;

&lt;p&gt;This rename didn't come out of nowhere. Over the past year AWS shipped plenty of updates for Lambda, API Gateway and EventBridge. We have new kinds of functions, a new event bus, and a few days ago the 15-minute limit many of us lived with for years went away. At least in some cases. &lt;strong&gt;The phrase "Lambda function" no longer means one thing.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I've been writing about serverless on Serverless Polska, my Polish-language blog, since 2018. This isn't a tutorial, so you won't find code or configuration steps here. I want to sort out what Lambda functions are today and what to know before re:Invent 2026 brings the next wave of announcements.&lt;/p&gt;

&lt;p&gt;Three changes get a deeper look and seven a shorter one, each with a date and a link to the AWS source. Accurate as of November 21, 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. A Lambda function is now three things
&lt;/h2&gt;

&lt;p&gt;AWS says it plainly in an &lt;a href="https://aws.amazon.com/blogs/compute/announcing-30-minute-timeout-for-on-demand-aws-lambda-event-functions/" rel="noopener noreferrer"&gt;AWS Compute Blog post from November 19, 2026&lt;/a&gt;: Lambda now has three form factors: Event Functions, Web Functions and MicroVMs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffwk3g893ubvoq6rjlb2z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffwk3g893ubvoq6rjlb2z.png" alt="The three AWS Lambda form factors: Event Functions, Web Functions and MicroVMs (AWS diagram)" width="799" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Source: AWS Compute Blog, &lt;a href="https://aws.amazon.com/blogs/compute/announcing-30-minute-timeout-for-on-demand-aws-lambda-event-functions/" rel="noopener noreferrer"&gt;"Announcing 30-minute timeout for on-demand AWS Lambda Event Functions"&lt;/a&gt;, November 19, 2026.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Event Functions&lt;/strong&gt; are the good old functions we've known for years. They react to events and by default run on demand. &lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/10/aws-lambda-web-functions/" rel="noopener noreferrer"&gt;According to the AWS announcement from October 12, 2026&lt;/a&gt;, only the name has changed. Existing functions don't need rewriting or redeploying.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Web Functions&lt;/strong&gt; arrived in the same announcement, and this is where it gets interesting. Your code listens on a port itself and handles HTTP requests, e.g. in Express or Hono. One environment handles many requests at once, and &lt;a href="https://aws.amazon.com/blogs/aws/announcing-aws-lambda-web-functions-for-fast-consistent-web-app-performance-anywhere/" rel="noopener noreferrer"&gt;AWS describes the billing model&lt;/a&gt; as paying for active CPU time and for the environment's memory. So waiting on a database or another service costs no CPU, but memory is still billed. &lt;strong&gt;For web apps and APIs that mostly wait for responses from other systems, I'd call this the most important change on the whole list.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MicroVMs&lt;/strong&gt; were &lt;a href="https://aws.amazon.com/blogs/aws/run-isolated-sandboxes-with-full-lifecycle-control-aws-lambda-introduces-microvms/" rel="noopener noreferrer"&gt;announced by AWS on June 22, 2026&lt;/a&gt; as a new serverless building block with VM-level isolation. Each user or task gets a separate Firecracker-based environment with its own HTTPS address. State can be preserved, and the environment can be paused and resumed, capped at 8 hours of running and paused time combined. You build the image from a Dockerfile. It's meant for running code written by users or generated by AI.&lt;/p&gt;

&lt;p&gt;What about Lambda on EC2 servers? Easy to get confused here. &lt;a href="https://aws.amazon.com/blogs/aws/introducing-aws-lambda-managed-instances-serverless-simplicity-with-ec2-flexibility/" rel="noopener noreferrer"&gt;Lambda Managed Instances&lt;/a&gt; (announced on November 30, 2025) is not another Lambda form factor. It's simply a way to run Event Functions on managed EC2 instances in your account, through a so-called capacity provider. The environment handles many requests in parallel, and billing is based on EC2 pricing, including Savings Plans and Reserved Instances. There's a catch, though, noted in the &lt;a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-managed-instances.html" rel="noopener noreferrer"&gt;AWS documentation&lt;/a&gt;: a 15% management fee is added to the CPU instance price, and EC2 discounts cover only the instance itself. Since &lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/03/lambda-32-gb-memory-16-vcpus" rel="noopener noreferrer"&gt;March 27, 2026&lt;/a&gt;, functions on Managed Instances can have up to 32 GB of memory and 16 vCPUs (up from 10 GB).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/blogs/aws/aws-lambda-now-supports-gpu-instances-for-event-functions-on-lambda-managed-instances/" rel="noopener noreferrer"&gt;On November 18, 2026, AWS added GPU support&lt;/a&gt; to Lambda Managed Instances: Event Functions can now run on EC2 G-series GPU instances. AWS optimized this for inference rather than training, and for custom models rather than large foundation models already available in services like Amazon Bedrock. You pay the EC2 instance price (eligible for Savings Plans and Reserved Instances), the standard Lambda request fee of $0.20 per million requests, and a management fee, which is 9.75% here, not 15% as on CPU instances. New accounts might start with a G-series instance quota of 0.&lt;/p&gt;

&lt;p&gt;There are also &lt;a href="https://aws.amazon.com/blogs/aws/build-multi-step-applications-and-ai-workflows-with-aws-lambda-durable-functions/" rel="noopener noreferrer"&gt;durable functions&lt;/a&gt;, which I cover later on.&lt;/p&gt;

&lt;p&gt;Here's all of it in one table:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Form factor&lt;/th&gt;
&lt;th&gt;What it's for&lt;/th&gt;
&lt;th&gt;How you pay&lt;/th&gt;
&lt;th&gt;Maximum duration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Event Functions (on demand)&lt;/td&gt;
&lt;td&gt;Reacting to events&lt;/td&gt;
&lt;td&gt;Standard Lambda pricing&lt;/td&gt;
&lt;td&gt;30 minutes (ESM exceptions: 14 minutes, see below)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lambda Managed Instances (Event Functions mode)&lt;/td&gt;
&lt;td&gt;The same functions on EC2 instances in your account&lt;/td&gt;
&lt;td&gt;EC2 price plus 15% management fee for CPU instances&lt;/td&gt;
&lt;td&gt;30 minutes synchronous, 90 minutes asynchronous and with event source mapping (ESM exceptions: 14 minutes, see below)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Web Functions&lt;/td&gt;
&lt;td&gt;Web apps and APIs over HTTP&lt;/td&gt;
&lt;td&gt;Active CPU plus environment memory&lt;/td&gt;
&lt;td&gt;15 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MicroVMs&lt;/td&gt;
&lt;td&gt;Isolated user and AI code&lt;/td&gt;
&lt;td&gt;See AWS pricing (no rates quoted here)&lt;/td&gt;
&lt;td&gt;8 hours (running and paused)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you're planning to migrate to Web Functions or MicroVMs, run the numbers for your traffic on current pricing.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I keep it straight in my head?
&lt;/h2&gt;

&lt;p&gt;Roughly like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reacting to an event from a queue, a stream or another service? Event Functions.&lt;/li&gt;
&lt;li&gt;A web app or API that mostly waits on the database? I'd check Web Functions here.&lt;/li&gt;
&lt;li&gt;Code you don't trust, because a user or an AI model wrote it? MicroVMs.&lt;/li&gt;
&lt;li&gt;Traffic predictable enough that EC2 instances and their discounts are worth thinking about? Only then would I consider Managed Instances.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Fair warning: this is my heuristic, not an official AWS recommendation.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. 15 minutes is no longer the limit
&lt;/h2&gt;

&lt;p&gt;Fifteen minutes. For years, that's how long a Lambda function could run.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/blogs/compute/announcing-30-minute-timeout-for-on-demand-aws-lambda-event-functions/" rel="noopener noreferrer"&gt;On November 19, 2026, AWS doubled that limit&lt;/a&gt; to 30 minutes for on-demand Event Functions. It covers synchronous, asynchronous and event source mapping (ESM) invocations. Pricing is standard, and the change is live in all commercial regions.&lt;/p&gt;

&lt;p&gt;The 15-minute barrier had actually fallen earlier. On &lt;a href="https://aws.amazon.com/blogs/compute/announcing-90-minute-function-timeout-on-aws-lambda-managed-instances/" rel="noopener noreferrer"&gt;September 9, 2026&lt;/a&gt;, AWS introduced a 90-minute limit on Lambda Managed Instances, but only for asynchronous and ESM invocations. Synchronous invocations on Managed Instances stayed at 15 minutes back then. After the November change they get up to 30 minutes, while asynchronous and ESM ones keep 90. Both cases come with exceptions: ESM mappings from Amazon MQ and Amazon DocumentDB, as well as Kafka mappings created before November 19, 2026 without provisioned mode, still have a 14-minute limit.&lt;/p&gt;

&lt;p&gt;What doesn't this change cover? Web Functions, first of all. According to the table in the &lt;a href="https://aws.amazon.com/blogs/compute/announcing-30-minute-timeout-for-on-demand-aws-lambda-event-functions/" rel="noopener noreferrer"&gt;AWS Compute post&lt;/a&gt;, their limit is still 15 minutes. MicroVMs play in a completely different league: 8 hours of running and pausing. Durable execution is a separate category: up to a year for asynchronous invocations (more below).&lt;/p&gt;

&lt;p&gt;So if someone on your team says "Lambda has 30 minutes now", ask which Lambda they mean. The answer depends on the function's form factor, how it's started and the invocation type.&lt;/p&gt;

&lt;p&gt;For me, a longer limit means, above all, fewer workarounds. Some tasks we split into chunks just to fit into 15 minutes can now run in a single invocation. Before you crank up the timeout, though, ask yourself whether this work should take that long at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. EventBridge: a new Custom event bus, and the old one is now "classic"
&lt;/h2&gt;

&lt;p&gt;The second rename in this roundup hits EventBridge. &lt;a href="https://aws.amazon.com/blogs/aws/introducing-enhanced-custom-event-buses-in-amazon-eventbridge-for-enterprise-scale-event-driven-applications/" rel="noopener noreferrer"&gt;On September 24, 2026, AWS announced&lt;/a&gt; a new version of the Custom event bus. The existing bus was renamed "Custom event bus - classic", and per the &lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/09/eventbridge-relaunches-custom-event-buses/" rel="noopener noreferrer"&gt;AWS announcement&lt;/a&gt;, all existing APIs are unchanged.&lt;/p&gt;

&lt;p&gt;What do we get in the new Custom event bus?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;sharing the bus across accounts via AWS RAM,&lt;/li&gt;
&lt;li&gt;strict event ordering,&lt;/li&gt;
&lt;li&gt;the CloudEvents format,&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/09/eventbridge-relaunches-custom-event-buses/" rel="noopener noreferrer"&gt;event retention for 24 hours&lt;/a&gt;, extendable up to a year,&lt;/li&gt;
&lt;li&gt;a new Subscriber resource,&lt;/li&gt;
&lt;li&gt;pricing based on data volume instead of event count.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The new bus is available today in &lt;a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/feature-availability.html" rel="noopener noreferrer"&gt;14 AWS regions&lt;/a&gt;, including Europe (Ireland) and Europe (Frankfurt).&lt;/p&gt;

&lt;p&gt;Let me spend a moment on what you can now send to this bus. An &lt;a href="https://aws.amazon.com/blogs/compute/building-event-driven-applications-at-scale-with-amazon-eventbridge/" rel="noopener noreferrer"&gt;AWS Compute Blog post&lt;/a&gt; lists the CloudEvents (JSON), Avro and Protobuf formats. CloudEvents is an open specification for describing events in a common way, developed under the Cloud Native Computing Foundation (CNCF) and adopted by many systems outside AWS, as &lt;a href="https://aws.amazon.com/blogs/compute/sending-and-receiving-cloudevents-with-amazon-eventbridge/" rel="noopener noreferrer"&gt;another AWS Compute post&lt;/a&gt; explains. You can send an event in this format to the new bus without reworking it, and &lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/09/eventbridge-relaunches-custom-event-buses/" rel="noopener noreferrer"&gt;its schema stays unchanged&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For me, binary formats are the big change here. EventBridge &lt;a href="https://aws.amazon.com/blogs/aws/introducing-enhanced-custom-event-buses-in-amazon-eventbridge-for-enterprise-scale-event-driven-applications/" rel="noopener noreferrer"&gt;converts Avro and Protocol Buffers (Google's protobuf) to JSON&lt;/a&gt; based on a schema from a registry (AWS Glue Schema Registry or Confluent), so a subscriber can filter and route events on their entire content.&lt;/p&gt;

&lt;p&gt;On top of that there's JSONata, which is simply great. In the new bus, a Subscriber can use JSONata expressions to transform an event before it reaches the target: extract fields, rename them or compute new values. It's a separately priced feature, so at high volume, factor it into your math.&lt;/p&gt;

&lt;p&gt;You'll probably come across terms like "the new EventBridge" or "the new bus". Officially, it's an enhanced Custom event bus within Amazon EventBridge, not a separate service. I stick to that name because AWS uses it in its announcements.&lt;/p&gt;

&lt;p&gt;Your current bus didn't automatically turn into the new one. It keeps working as "Custom event bus - classic", with the same APIs. The capabilities in the list above apply to the new, enhanced Custom event bus.&lt;/p&gt;

&lt;p&gt;Before switching, I'd check &lt;a href="https://aws.amazon.com/eventbridge/pricing/" rel="noopener noreferrer"&gt;AWS pricing&lt;/a&gt; first. In the us-east-1 region (as of November 21, 2026), the classic bus costs $1 per million events (every started 64 KB chunk of payload counts as a separate event), and the new bus $0.18 per GB of ingested data in the first tier, plus a fee for delivery to subscribers. Paying for data instead of the number of events changes the math one way for lots of small events and another way for a few large ones. So it depends on your event sizes. Run the numbers for your own traffic before migrating.&lt;/p&gt;

&lt;h2&gt;
  
  
  Seven more changes
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsxf1zaxq89vfl5o2919d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsxf1zaxq89vfl5o2919d.png" alt="Comic: three small robots in an old town market square. One collects envelopes from pigeons at a mailbox, another naps in a hammock next to an hourglass, and the third guards three separate doors with padlocks." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Lambda durable functions
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/blogs/aws/build-multi-step-applications-and-ai-workflows-with-aws-lambda-durable-functions/" rel="noopener noreferrer"&gt;On December 2, 2025, AWS announced&lt;/a&gt; durable functions. A function saves checkpoints (steps and waits), so it can pause for up to a year with no compute charges and, after a failure, resume from the last checkpoint. So you can build multi-step processes and AI workflows in Lambda itself, describing the steps in the function's code. Or, as before, in Step Functions. Personally, I still prefer the latter, especially since they &lt;a href="https://aws.amazon.com/blogs/compute/simplifying-developer-experience-with-variables-and-jsonata-in-aws-step-functions/" rel="noopener noreferrer"&gt;got JSONata&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tenant isolation mode
&lt;/h3&gt;

&lt;p&gt;Since &lt;a href="https://aws.amazon.com/blogs/aws/streamlined-multi-tenant-application-development-with-tenant-isolation-mode-in-aws-lambda/" rel="noopener noreferrer"&gt;November 19, 2025&lt;/a&gt;, you can pass a tenant identifier when invoking a function. Lambda then isolates execution environments per tenant: an environment assigned to one customer won't serve another customer's requests.&lt;/p&gt;

&lt;p&gt;Multi-tenant applications, e.g. SaaS platforms, no longer need a separate function per customer to get this kind of isolation. One codebase, and the identifier in the invocation decides how environments are split. With JSON-formatted logging, &lt;a href="https://aws.amazon.com/blogs/compute/building-multi-tenant-saas-applications-with-aws-lambdas-new-tenant-isolation-mode/" rel="noopener noreferrer"&gt;Lambda adds this identifier to the function logs&lt;/a&gt;. I think this could also help with per-tenant cost allocation, although AWS doesn't say so directly.&lt;/p&gt;

&lt;p&gt;One caveat: this is about execution environment isolation. Separating customers' data and permissions remains, in my opinion, the job of your application's architecture.&lt;/p&gt;

&lt;h3&gt;
  
  
  Response streaming in REST APIs
&lt;/h3&gt;

&lt;p&gt;On &lt;a href="https://aws.amazon.com/blogs/compute/building-responsive-apis-with-amazon-api-gateway-response-streaming/" rel="noopener noreferrer"&gt;November 19, 2025&lt;/a&gt;, Amazon API Gateway started sending REST API responses progressively, as they become ready. The integration can run for up to 15 minutes, and the response can exceed 10 MB.&lt;/p&gt;

&lt;p&gt;So two classic limitations are gone: buffering the entire response and the 10 MB limit. For AI applications that generate a response piece by piece, that makes a big difference.&lt;/p&gt;

&lt;p&gt;The announcement covers REST APIs. Note the 15 there: that's how long the integration can run with streaming, and a service that invokes a function synchronously applies its own limit. So my takeaway: the new 30 minutes for Event Functions doesn't mean 30 minutes on the request path.&lt;/p&gt;

&lt;h3&gt;
  
  
  Native JWT authorizer in REST APIs
&lt;/h3&gt;

&lt;p&gt;Since &lt;a href="https://aws.amazon.com/blogs/compute/securing-rest-apis-with-jwt-authorizers-in-amazon-api-gateway/" rel="noopener noreferrer"&gt;November 17, 2026&lt;/a&gt;, REST APIs in API Gateway have had a new authorizer type. It validates JWT tokens (OIDC, OAuth 2.0) directly in the gateway, without a Lambda authorizer.&lt;/p&gt;

&lt;p&gt;Got a function whose only job is validating a token? Now you can remove it from your architecture. Less code to maintain and one less element on the request path. Because, as always: the best code is no code.&lt;/p&gt;

&lt;p&gt;The boundary is simple: the authorizer validates tokens. If your authorization contains custom business logic, a Lambda authorizer may still make sense. That's my assessment, so check it against your own use case.&lt;/p&gt;

&lt;h3&gt;
  
  
  API Gateway execution logs up to 1 MB
&lt;/h3&gt;

&lt;p&gt;On &lt;a href="https://aws.amazon.com/blogs/compute/customize-amazon-api-gateway-destinations-for-execution-logs/" rel="noopener noreferrer"&gt;September 9, 2026&lt;/a&gt;, the REST API execution log limit went from 1 KB (anything longer got truncated) to 1 MB per event. You can send them to your own CloudWatch Logs, S3 or Firehose, even to several at once.&lt;/p&gt;

&lt;p&gt;Troubleshooting will get much simpler. Less guessing about what was in the cut-off part of the log.&lt;/p&gt;

&lt;p&gt;And what isn't included? Free logging. These logs are billed as vended logs, and a single event can now be about a thousand times larger. From a FinOps perspective, this is the first line item I'd check on the bill after enabling it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Webhook Events in EventBridge
&lt;/h3&gt;

&lt;p&gt;On &lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-eventbridge-webhook-events" rel="noopener noreferrer"&gt;November 20, 2026&lt;/a&gt;, the Custom event bus got a managed HTTPS endpoint for receiving webhooks. SaaS applications, AI agents and your own integrations can send events to it, and EventBridge verifies them with HMAC, a token or basic auth.&lt;/p&gt;

&lt;p&gt;The popular "API Gateway plus Lambda just to accept a webhook and put it on the bus" pattern is often no longer needed.&lt;/p&gt;

&lt;p&gt;Here's the catch: this is about the new Custom event bus. Still on the "classic" version? Then this doesn't apply to you.&lt;/p&gt;

&lt;h3&gt;
  
  
  EventBridge Scheduler: 589 new API actions
&lt;/h3&gt;

&lt;p&gt;The same day, &lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/11/eventbridge-scheduler-new-api-actions/" rel="noopener noreferrer"&gt;November 20, 2026&lt;/a&gt;, EventBridge Scheduler expanded its integrations with 589 new API actions across 81 AWS services. A schedule can now directly call many more operations, and the new Custom event bus got a templated target that makes scheduled sends to the bus easier.&lt;/p&gt;

&lt;p&gt;Fewer Lambda functions that only "wake up at midnight and call one API".&lt;/p&gt;

&lt;p&gt;The templated target, however, applies only to the new Custom event bus, not "classic".&lt;/p&gt;

&lt;p&gt;Also, API Gateway got &lt;a href="https://aws.amazon.com/blogs/compute/improve-api-discoverability-with-the-new-amazon-api-gateway-portal/" rel="noopener noreferrer"&gt;Portals&lt;/a&gt;, i.e. managed developer portals, and &lt;a href="https://aws.amazon.com/blogs/compute/bring-your-own-client-certificate-for-backend-mtls-in-amazon-api-gateway/" rel="noopener noreferrer"&gt;backend mTLS&lt;/a&gt;, while Lambda now &lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/11/aws-lambda-function-state-events/" rel="noopener noreferrer"&gt;publishes Event Functions state change events to EventBridge&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where these changes come from and what's next
&lt;/h2&gt;

&lt;p&gt;As I see it, these changes come partly from the growth of AI and agents, and partly from a long-term, strategic rebuild of the AWS Lambda service itself. We'll see the next chapter at re:Invent 2026, where AWS will surely announce plenty of big changes to Lambda and other serverless services.&lt;/p&gt;

&lt;p&gt;I remember the days when a Lambda function was very simple and had just one knob for setting RAM. You couldn't even invoke it automatically from SQS. Of course, it was much less convenient to use back then, but its costs were also much simpler to calculate.&lt;/p&gt;

&lt;p&gt;Today, with all these new models, Lambda costs feel incredibly hard to work out, even for me, a self-proclaimed AWS cost expert. Each kind of Lambda has a completely different pricing model: Web Functions charge for active CPU and memory, and Managed Instances for the EC2 price plus 15% (on CPU instances).&lt;/p&gt;

&lt;p&gt;I hope AWS simplifies this someday.&lt;/p&gt;

&lt;p&gt;Which of these changes actually matters for your project? Let me know in the comments.&lt;/p&gt;

</description>
      <category>serverless</category>
      <category>lambda</category>
      <category>aws</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Migrate GPU Podcast rendering from EC2 to Serverless on Lambda Managed Instances (LMI) with 90 min async runs</title>
      <dc:creator>Vivek V.</dc:creator>
      <pubDate>Sun, 22 Nov 2026 02:05:31 +0000</pubDate>
      <link>https://dev.to/aws-heroes/migrate-gpu-podcast-rendering-from-ec2-to-serverless-on-lambda-managed-instances-lmi-with-90-min-118g</link>
      <guid>https://dev.to/aws-heroes/migrate-gpu-podcast-rendering-from-ec2-to-serverless-on-lambda-managed-instances-lmi-with-90-min-118g</guid>
      <description>&lt;p&gt;Every week an AI agent renders our video podcast. An episode is 384 lip-synced video clips, and each clip needs a GPU. We moved that job to Lambda Managed Instances (LMI), the Lambda capacity type that gained GPU support in November.&lt;/p&gt;

&lt;p&gt;The first version ran on an NVIDIA L4 and held the GPU for about 5.2 hours, roughly $4.60 an episode. After a day of measuring and tuning, the same episode projects to about 1.1 hours and $2.20. This post covers how the pipeline is built, what surprised us, and how we stopped the agent from starting the GPU on its own.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch:&lt;/strong&gt; &lt;a href="https://youtu.be/zyH1n4cIMrY" rel="noopener noreferrer"&gt;Video Podcast Generator Demo on YouTube&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;GPU time per episode, first version&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;5.2 h&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;projected now&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;~1.1 h&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;per clip, g5 to tuned g6e&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;30 s → 9.9 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How it fits together
&lt;/h2&gt;

&lt;p&gt;LMI runs your function on EC2 instances in your own account, so it needs a network. You give the capacity provider a VPC: subnets and a security group. For cost optimization when experimenting, you can run in public subnets with no NAT gateway: just an internet gateway and a security group that allows outbound traffic only. The instance pulls its image from ECR and the model files from S3 over its public address.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwpzbgsgt999lb8uwi32z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwpzbgsgt999lb8uwi32z.png" alt="Weekly GPU render on Lambda Managed Instances" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The GPU function sits at zero environments between runs. A Step Functions state machine does everything in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The agent (OpenClaw) uploads the script and starts the execution.&lt;/li&gt;
&lt;li&gt;Speech is generated on CPU Lambdas and written to S3 with a manifest that lists every clip.&lt;/li&gt;
&lt;li&gt;The state machine stops and waits for a human to approve. The agent can't answer this step.&lt;/li&gt;
&lt;li&gt;A control Lambda scales the GPU function from zero to one.&lt;/li&gt;
&lt;li&gt;The GPU function renders clips one by one into S3, and the state machine re-invokes it each time it hits the 90-minute async limit.&lt;/li&gt;
&lt;li&gt;The control Lambda scales back to zero and checks that the instance is really gone.&lt;/li&gt;
&lt;li&gt;The agent downloads the clips, merges them with ffmpeg and publishes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Anything that fails after step 4 still goes through step 6.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating function with Zero Capacity is not free
&lt;/h2&gt;

&lt;p&gt;We expected a function at 0/0 to cost nothing. It took four surprises to learn otherwise.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;By default, creating a GPU function starts an instance.&lt;/strong&gt; &lt;code&gt;PublishToLatestPublished&lt;/code&gt; defaults to true, so creating the function published a version and a g5.xlarge started. Publishing version 1 with a 0/0 scaling config started a g6.xlarge too, because the scaling config only applies once the version is active. Together that was 11 to 17 minutes of instance time. We now explicitly set this to false as a best practice:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Best practice: set to false to prevent GPU launch on creation&lt;/span&gt;
&lt;span class="n"&gt;publishToLatestPublished&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;code&gt;describe-instances&lt;/code&gt; can't see the GPU by default.&lt;/strong&gt; Lambda Managed Instances run in Lambda's control plane, not directly in your EC2 account, so a plain &lt;code&gt;describe-instances&lt;/code&gt; call won't show them. A plain call returned our CPU host and nothing else while a g5 was running. You need to explicitly include managed resources:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;ec2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;describe_instances&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nc"&gt;IncludeManagedResources&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# Required to see Lambda-managed instances&lt;/span&gt;
    &lt;span class="nc"&gt;Filters&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"instance-state-name"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Values"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pending"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"running"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;code&gt;applied=0&lt;/code&gt; is not "stopped".&lt;/strong&gt; The scaling API reported zero 81 to 88 seconds before the instance was gone, and once it took six minutes to go from terminating to terminated. Our check now needs two things: applied scaling is zero and EC2 shows no managed instance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scale to zero and 0/0 are different.&lt;/strong&gt; With a minimum of 0 and a maximum above 0, an invoke wakes the function. With both at 0 the version is deactivated and an invoke doesn't wake it. We rest at 0/0, so only the control Lambda, after a human approves, can start a GPU.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the CPU work off the GPU
&lt;/h2&gt;

&lt;p&gt;Initially, we generated speech inside the GPU invocation. When retries failed, the GPU sat idle while waiting. Now CPU Lambdas generate speech in parallel (four at a time), write a manifest to S3, and the GPU function reads from that frozen manifest, keeping the GPU busy only on rendering.&lt;/p&gt;

&lt;p&gt;For 90-minute runs, each invocation carries a unique attempt ID. The function writes this ID into its completion marker, and the state machine ignores markers from other attempts. This prevents the orchestrator from confusing handoffs with actual completion.&lt;/p&gt;

&lt;h2&gt;
  
  
  What made it cheaper
&lt;/h2&gt;

&lt;p&gt;We timed the same 30-second job on every GPU type we could get. The instance type mattered far more than any cold-start trick.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Instance&lt;/th&gt;
&lt;th&gt;GPU&lt;/th&gt;
&lt;th&gt;Seconds per clip on LMI&lt;/th&gt;
&lt;th&gt;Episode, GPU time and cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;g6.xlarge&lt;/td&gt;
&lt;td&gt;L4&lt;/td&gt;
&lt;td&gt;38&lt;/td&gt;
&lt;td&gt;4.0 h, $3.58&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;g5.xlarge&lt;/td&gt;
&lt;td&gt;A10G&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;3.2 h, $3.53&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;g6e.xlarge&lt;/td&gt;
&lt;td&gt;L40S&lt;/td&gt;
&lt;td&gt;13.0&lt;/td&gt;
&lt;td&gt;1.4 h, $2.83&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;g6e, tuned&lt;/td&gt;
&lt;td&gt;L40S&lt;/td&gt;
&lt;td&gt;9.9&lt;/td&gt;
&lt;td&gt;1.1 h, $2.16&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Rates are on-demand list prices plus the 9.75% LMI fee, and the episode figures are the per-clip time scaled to 384 clips, so they leave out cold start and handoffs.&lt;/p&gt;

&lt;p&gt;The L40S costs more per hour but finishes in a third of the time. The L4 was slow partly because it ran at a 72 watt power limit and its clock dropped from 2,040 to about 1,300 MHz.&lt;/p&gt;

&lt;p&gt;Lambda picks the newest generation in your list that has the smallest GPU meeting &lt;code&gt;AcceleratorMemorySize&lt;/code&gt;. Ask for 24 GB and it never reaches g6e. We ask for 48 GB, which also gives up the g6 and g5 fallbacks, and capacity providers can't be edited, so this is a new provider. &lt;strong&gt;Best practice: configure multiple fallback instance types in your capacity provider&lt;/strong&gt; to handle &lt;code&gt;InsufficientInstanceCapacity&lt;/code&gt; errors, as availability varies by zone and time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The tuning that paid off was in the model.&lt;/strong&gt; A clip is five denoising steps, and each step runs a second guidance pass. Skipping that pass on the last four steps took the clip from 13.0 s to 9.9 s. We rendered six clips at every setting with the same audio, image and seeds, and compared them to the baseline:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Second pass skipped on&lt;/th&gt;
&lt;th&gt;Time saved&lt;/th&gt;
&lt;th&gt;PSNR vs baseline&lt;/th&gt;
&lt;th&gt;SSIM&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;last 1 step&lt;/td&gt;
&lt;td&gt;5.9%&lt;/td&gt;
&lt;td&gt;40.6 dB&lt;/td&gt;
&lt;td&gt;0.980&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;last 2 steps&lt;/td&gt;
&lt;td&gt;11.8%&lt;/td&gt;
&lt;td&gt;37.9 dB&lt;/td&gt;
&lt;td&gt;0.974&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;last 4 steps&lt;/td&gt;
&lt;td&gt;23.8%&lt;/td&gt;
&lt;td&gt;33.1 dB&lt;/td&gt;
&lt;td&gt;0.949&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;None of these is bit-identical to the baseline, so "no visible difference" is a judgement, and it was ours: we watched the videos side by side and shipped the fastest setting. It is one environment variable that fails the function at startup on any value we didn't review.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What didn't help.&lt;/strong&gt; Cold start optimizations saved cents, not dollars. Init-time model loading plus bf16 CLIP weights saved ~30s. &lt;a href="https://github.com/awslabs/soci-snapshotter" rel="noopener noreferrer"&gt;SOCI lazy loading&lt;/a&gt; reduced time-to-active by ~20s but not time-to-first-clip. The &lt;a href="https://github.com/aws/aws-cli/issues/10912" rel="noopener noreferrer"&gt;AWS Common Runtime (CRT)&lt;/a&gt; gave no speed-up; downloads are disk-bound, not S3-bound. PyTorch's S3 connector streams into memory and saved ~14s per episode. Combined savings: under $0.10 per episode.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping the agent off the GPU
&lt;/h2&gt;

&lt;p&gt;An OpenClaw cron job starts the weekly podcast with a prompt like "Render this week's episode." But a prompt that says "don't start the GPU" is just a suggestion. We wanted the agent &lt;strong&gt;unable&lt;/strong&gt; to spend on GPU.&lt;/p&gt;

&lt;p&gt;The agent's IAM policy allows starting Step Functions executions, reading status, uploading scripts, reading rendered clips, and writing the final video. It &lt;strong&gt;denies&lt;/strong&gt; approving runs, scaling the GPU function, invoking the GPU Lambda directly, and overwriting clips.&lt;/p&gt;

&lt;p&gt;Sample policy structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"Version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2012-10-17"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Statement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"Effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Allow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"Action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"states:StartExecution"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"states:DescribeExecution"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"Resource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"arn:aws:states:REGION:ACCOUNT:stateMachine:YOUR-STATE-MACHINE"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"Effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Allow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"Action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"s3:GetObject"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"s3:PutObject"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"Resource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s2"&gt;"arn:aws:s3:::YOUR-BUCKET/podcast/scripts/*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"arn:aws:s3:::YOUR-BUCKET/podcast/episodes/*/final.mp4"&lt;/span&gt;
      &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"Effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Deny"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"Action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lambda:InvokeFunction"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"lambda:PutFunctionScaling*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"Resource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"*"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Two IAM lessons:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dry-run as admin proves nothing.&lt;/strong&gt; Admin is never denied. Use &lt;code&gt;iam:SimulateCustomPolicy&lt;/code&gt; to test against the actual policy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test policies on the role, not in isolation.&lt;/strong&gt; An explicit deny (like a guardrail) beats any allow. Simulate with the role's full policy set before attaching.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A guard Lambda checks for stray GPU capacity during podcast generation and after any failed execution, ensuring no instance runs unintended.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploying a GPU function with CloudFormation
&lt;/h2&gt;

&lt;p&gt;Three things bit us here.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CloudFormation waits for the GPU you are trying to turn off.&lt;/strong&gt; A GPU version only becomes active by getting an instance, and CloudFormation waits for that. Our safety watcher set the version to zero meanwhile, so two deploys failed with "did not stabilize" and rolled back. The version resource already asks for zero, and the instance ends within about two minutes of going active, so deploys need a watcher that only observes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A stale reference can wedge the stack.&lt;/strong&gt; After we moved the function to a new capacity provider, &lt;code&gt;$LATEST.PUBLISHED&lt;/code&gt; still pointed at the old one, and the stack sat in "cleanup in progress" for three hours. The only exit was deleting the function.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A fixed function name can't be replaced.&lt;/strong&gt; CloudFormation creates the replacement before deleting the old resource, so recreating the function under the same name failed. It has a new name now.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Pin base images by digest.&lt;/strong&gt; A newer &lt;code&gt;transformers&lt;/code&gt; version broke our model code. We now pin the digest and smoke-test before push.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test it with 30 seconds first
&lt;/h2&gt;

&lt;p&gt;Before trusting a full run, we render a 30-second script through the real client, state machine, GPU function and merge. It is 12 clips and costs about 8 minutes of a g6e, roughly $0.30. The check is six assertions: the clip count matches the manifest and the completion marker, video and audio lengths match the audio, they end within half a second of each other, there is one h264 and one aac stream, every frame is kept, and the GPU is back at zero. It passed on the final configuration.&lt;/p&gt;

&lt;p&gt;A render has a fixed cost of about nine minutes of instance time, five from launch to the first clip and four from the last clip to the instance being gone. In the mock that is most of the bill. In a full episode it is under 5%.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;p&gt;Moving from EC2 to Lambda Managed Instances cut our weekly podcast render from 5.2 hours to 1.1 hours: a &lt;strong&gt;79% reduction in GPU time&lt;/strong&gt;. Cost dropped from ~$4.60 to ~$2.16 per episode, and we gained serverless scaling with zero infrastructure to manage. The g6e L40S delivers clips in 9.9 seconds each, compared to 30 seconds on our original g5 setup.&lt;/p&gt;

&lt;p&gt;The IAM-enforced agent boundary ensures the AI can orchestrate the pipeline but cannot directly spend on GPU. Human approval remains the gate.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Try it yourself:&lt;/strong&gt; Our &lt;a href="https://aws.amazon.com/marketplace/pp/prodview-uxuqnq7c2prv4" rel="noopener noreferrer"&gt;Video Podcast Generator on AWS Marketplace&lt;/a&gt; currently runs on GPU containers. We're updating it to use Lambda Managed Instances soon, so you can deploy the same serverless GPU pipeline in your own AWS account.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>gpu</category>
      <category>lambda</category>
      <category>openclaw</category>
    </item>
    <item>
      <title>Just Because Your Agent Could Doesn't Mean It Should</title>
      <dc:creator>Allen Helton</dc:creator>
      <pubDate>Thu, 19 Nov 2026 15:07:14 +0000</pubDate>
      <link>https://dev.to/aws-heroes/just-because-your-agent-could-doesnt-mean-it-should-7p9</link>
      <guid>https://dev.to/aws-heroes/just-because-your-agent-could-doesnt-mean-it-should-7p9</guid>
      <description>&lt;p&gt;I made a big mistake. I checked in over 2 GB of images into GitHub. Not on purpose, it just happened over time.&lt;/p&gt;

&lt;p&gt;I've been building &lt;a href="https://github.com/allenheltondev/kids-and-dragons" rel="noopener noreferrer"&gt;Kids and Dragons&lt;/a&gt;, a role-playing adventure game for kids, with coding agents, and it generates &lt;em&gt;a lot&lt;/em&gt; of art. Like, thousands of assets. And because I've been trying to go "hands-free" with its development, every painting, every sound file, and every revision of them went into Git. Which seemed fine at first, but by the time I thought to do an audit, a clone of the repository was 3.4 GB! 😬&lt;/p&gt;

&lt;p&gt;That won't scale, plus it takes up way too much disk space and memory on cloud agent environments. I had to do something. My plan was to move 2,722 files into S3, keep content hashes in a lock file, and make future clones lightweight. I documented the migration plan and handed it over to Fable 5.2.&lt;/p&gt;

&lt;p&gt;I'd built an MCP server to let agents upload art to S3, and the migration was going great! For 17 seconds. 🙃&lt;/p&gt;

&lt;p&gt;The upload key could add write-once objects. Overwriting a painting, deleting art, and changing other AWS resources were outside its scope. I'd thought pretty hard about what I gave Claude access to. But unfortunately I'd completely forgotten about how fast it could touch it.&lt;/p&gt;

&lt;p&gt;File uploads were already done. The migration tool was just checking whether each blob was there by hitting the API that serves the game. It was making about 56 requests per second against a limit of 50. After processing 959 files, it got an HTTP 429 (Too Many Requests) and stopped.&lt;/p&gt;

&lt;p&gt;I don't know whether any player requests got rejected in those 17 seconds. But I do know my art migration was competing with kids trying to play the game. And that makes me uncomfortable.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Before I continue, thank you to &lt;a href="https://fandf.co/3WuMtqg" rel="noopener noreferrer"&gt;Teleport&lt;/a&gt; for sponsoring this post. Opinions are my own.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Allowed doesn't mean appropriate
&lt;/h2&gt;

&lt;p&gt;In my migration, the upload-and-verify workflow competed with live traffic. To work around it, I just had to pace requests, back off on throttling, and retry. The next run took several minutes instead of a few seconds, and it completed successfully.&lt;/p&gt;

&lt;p&gt;But if you zoom in on the agent behavior from the first run, you get into the scary bits. The "permission vs objective" piece of it. The objective I gave it was to move the storage location of the art and keep the game working. The permission to check and upload files didn't indicate how fast those requests should arrive or what else shares the endpoint (which I totally overlooked, and that's part of what makes it so scary).&lt;/p&gt;

&lt;p&gt;After the migration, I made a long-lived upload key for Codex so it could keep adding art after the cutover. I ran the smoke test and everything passed. Then I looked at the new key's usage record and saw it had never been used. 🫠&lt;/p&gt;

&lt;p&gt;My terminal still had an older smoke-test key in its environment. The upload worked, but it was using the wrong identity. That's one of the (many) &lt;a href="https://readysetcloud.io/blog/allen.helton/local-agents-scare-me/" rel="noopener noreferrer"&gt;problems with giving agents long-lived keys&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There were other &lt;em&gt;whoopsie doodles&lt;/em&gt; throughout the day. The first Git history-rewrite plan removed image and audio files, but left 572 MB of unused animated rigs because the file patterns I was matching on forgot to include them. An offline-backup check exited before its checksum step ran, but the wrapper showed as successful. Another verification script initially reported thousands of missing non-media objects, but I just had a bug in the script. I had to double-check the passes and failures because I couldn't trust either one.&lt;/p&gt;

&lt;p&gt;When you think about it, all of these are examples of the misalignment of what the system permits, what the agent thinks it did, and what I wanted to happen. Which if applied in a more serious use case could wreak havoc on a business.&lt;/p&gt;

&lt;h2&gt;
  
  
  Permissions need boundaries
&lt;/h2&gt;

&lt;p&gt;Let me tell you more about this asset migration. I was proud of the process I came up with. It included deploying a new infrastructure stack (asset-hosting S3 bucket and ACLs), archiving the media files from disk, changing the deployment path to use the new infrastructure, removing thousands of files from Git's index, and rewriting Git history across 114 branches. Not bad for a day's work, right? 😜&lt;/p&gt;

&lt;p&gt;Each phase left me with varying amounts of discomfort. I was fine letting the tooling upload assets into S3. But I wasn't comfortable letting an agent decide on its own when to rewrite the project's history. I backed up the repository offline and proved to myself I could restore it. I compared rewritten branches and file versions against an untouched clone. I checked a second fresh clone before pushing the rewritten history. I manually changed GitHub's branch-protection settings for the narrow window needed to complete the history rewrite, then restored them.&lt;/p&gt;

&lt;p&gt;This was a big realization I had. The "&lt;em&gt;can write objects&lt;/em&gt;" permission is super broad compared to an objective like "&lt;em&gt;archive these exact files and verify their hashes."&lt;/em&gt; And the "&lt;em&gt;can push a branch&lt;/em&gt;" permission has no idea you're about to do a horrifying operation like rewriting the Git history of 114 branches. The permissions have unbounded scope. But if I had told the agent to ask me for permission before every single upload and push, I would have quickly gotten decision fatigue and just hit "accept all." And keeping the agent out of it entirely would have meant scripting and babysitting thousands of uploads myself. Which is the entire reason I wanted to use an agent in the first place.&lt;/p&gt;

&lt;p&gt;If I were to start over and redesign my approach, I'd do it in phases. Inspect and archive, verify, change the deploy, remove tracked media, and then request approval to rewrite history. If an agent wanted to touch unrelated cloud resources, delete objects, or expand the scope, I would need to make explicit decisions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Boundaries establish trust
&lt;/h3&gt;

&lt;p&gt;Eventually, the migration finished. A fresh clone of the repo went from about 3.4 GB to 99 MB 🤯. The live game stayed on its existing deployed assets throughout the cutover and went without disruption (well, except that one time) during the process.&lt;/p&gt;

&lt;p&gt;I did have some saving grace moments. The agent tools I built did have several boundaries that made me feel better about it not running away with power. I needed to trust that what I wrote was going to work. Kinda like when you surround a SQL query with &lt;code&gt;BEGIN TRANSACTION&lt;/code&gt; and close it with &lt;code&gt;ROLLBACK TRANSACTION&lt;/code&gt; before running a script on prod (please, you should always do that).&lt;/p&gt;

&lt;p&gt;I built a write-once, content-addressed storage path that limited what an upload could corrupt. I also wrote auth scoping into the MCP server I made to limit what the agent could touch. Auth provenance told me which key and agent (Claude or Codex, in my case) submitted a blob. I added a budget alarm so I'd get a heads-up if storage or CDN costs started climbing, like if an agent got stuck uploading art in a loop. Backup bundles made the history rewrite recoverable. And a lock file and verification gate kept deployments from assuming artwork was there when it really wasn't.&lt;/p&gt;

&lt;p&gt;Each one of these creates a permission boundary. Of course things can still go wrong, like a scoped upload key can still generate unwanted traffic and costs or a passing smoke test might use the wrong credential. But having the trust and confidence that my agent can't get coerced somehow into deleting my production resources goes a long way.&lt;/p&gt;

&lt;h2&gt;
  
  
  When it all goes off the rails
&lt;/h2&gt;

&lt;p&gt;We need to talk about agent security. We've been dancing around it with our talk on where credentials live or whether an agent is making authenticated tool calls, but we haven't gotten into the meat of connecting agent tasks to what the agent is authorized to do.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fandf.co/3WuMtqg" rel="noopener noreferrer"&gt;Beams by Teleport&lt;/a&gt; is a trusted runtime for agents you bring yourself. The agent gets its own delegated identity and runs with the roles approved for a specific job. It can propose a plan and tell me what access it needs up front. I can review that before everything starts, then let it get to work. If the plan needs to change partway into the job, the agent can come back with another request for updated permissions.&lt;/p&gt;

&lt;p&gt;For my migration, I could have approved archiving the files and verifying their hashes in one shot. It likely would have found 572 MB of old animation rigs that the plan didn't account for. I would have needed to decide if I was ok stripping those out of Git history and keeping them only in the offline backup. I'd review the revised plan before giving the go-ahead to rewrite those 114 branches.&lt;/p&gt;

&lt;p&gt;Beams also records what the agent does, ties the activity back to whoever delegated access (gotta point the finger of blame), and flags behavior that veers from the approved objective. I could give the agent access to specific cloud resources through its own identity without relying on an API key. And if I needed to stop the run, I could terminate the agent and cut off its access in one step.&lt;/p&gt;

&lt;p&gt;I'd still have to pace requests to my API. I'd still have to check that my backup script ran the checksum. However, I would have a way to see what the agent did with the access I approved and cut that access off if I needed to.&lt;/p&gt;

&lt;p&gt;I don't want to approve 2,722 uploads by hand (and I won't). I also don't want to hand an agent a credential and hope it remembers everything I asked and does it the way I expect. A safe middle ground is giving it enough leeway to finish the job while keeping the high-impact decisions visible.&lt;/p&gt;

&lt;p&gt;An agent can make a valid API call to do things it shouldn't with the permissions you give it. And that's getting easier and less visible every day. Security is a day one problem. Especially with agents. Be sure your plan takes the tools, boundaries, runtimes, and identity into consideration from the very beginning.&lt;/p&gt;

&lt;p&gt;If you're figuring out how much access to give an agent in production, &lt;a href="https://fandf.co/3WuMtqg" rel="noopener noreferrer"&gt;take a look at Beams by Teleport&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

</description>
      <category>aiagents</category>
      <category>security</category>
      <category>ai</category>
    </item>
    <item>
      <title>I Asked Claude to Rebuild a 1977 Wargame. It Took 20 Minutes.</title>
      <dc:creator>Brian Tarbox</dc:creator>
      <pubDate>Mon, 16 Nov 2026 18:04:08 +0000</pubDate>
      <link>https://dev.to/aws-heroes/i-asked-claude-to-rebuild-a-1977-wargame-it-took-20-minutes-5a5b</link>
      <guid>https://dev.to/aws-heroes/i-asked-claude-to-rebuild-a-1977-wargame-it-took-20-minutes-5a5b</guid>
      <description>&lt;p&gt;Thirty years ago I lost a lot of evenings to a game called Empire. Last week I lost a lot more. This time I didn't have to find a DOS box. I just asked Claude to build it.&lt;/p&gt;

&lt;p&gt;This is the story of how that went. Short version: one prompt, about 20 minutes, under 600 lines of HTML, and a game I have now played for hours. Longer version below.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A quick history lesson&lt;/strong&gt;&lt;br&gt;
Empire was written by Walter Bright in 1977. Yes, the same Walter Bright who later created the D programming language. It is one of the original turn-based strategy wargames and a direct ancestor of Civilization and the whole 4X genre.&lt;/p&gt;

&lt;p&gt;The rules are simple. You start with one city on a randomly generated map you can't see. Your cities build units. Armies capture cities. Ships carry armies across oceans. Fighters scout and strike but run out of fuel. The computer is doing the same thing somewhere out in the fog. Whoever holds every city wins.&lt;/p&gt;

&lt;p&gt;The version I remembered was Empire Deluxe from 1993. A while back I went looking for it. You can run it in DOSBox, which is great, until the game asks you for copy-protection codes from a printed manual I last saw during the first Clinton administration. I turned the sound off and moved on. Then I had a better idea.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The prompt&lt;/strong&gt;&lt;br&gt;
Here is the entire prompt. I am not leaving anything out.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Please read this link for description of the game I used to play called Empire. Can you make a version of this, please?&lt;br&gt;
&lt;a href="https://en.wikipedia.org/wiki/Empire" rel="noopener noreferrer"&gt;https://en.wikipedia.org/wiki/Empire&lt;/a&gt;&lt;/em&gt;(1977_video_game)_&lt;/p&gt;

&lt;p&gt;That's it. No spec. No list of units. No architecture. No "you are an expert game developer." I pointed at a Wikipedia article and said please. My mother would be proud.&lt;/p&gt;

&lt;p&gt;I have spent a lot of my career writing careful prompts for production agent systems. This was the opposite. I wanted to see what happened when the model had to fill in the gaps itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Claude did with it&lt;/strong&gt;&lt;br&gt;
Claude read the article, pulled out the rules, and then made a lot of decisions I never asked it to make. Most of them were the decisions I would have made. A few were better.&lt;/p&gt;

&lt;p&gt;It picked a format. One self-contained HTML file. All the CSS and JavaScript inline. Open it in any browser and play, even offline. The only external dependency is a pair of Google Fonts, and it falls back gracefully without them.&lt;/p&gt;

&lt;p&gt;It picked an aesthetic. The game looks like a beige video terminal from the era, with the map as the glowing screen inside a dark bezel. The title and map use VT323, a pixel terminal font. There is an orange "return" key. I did not ask for any of this. It is exactly right.&lt;/p&gt;

&lt;p&gt;It got the units right. Armies, fighters, destroyers, submarines, transports, cruisers, carriers, and battleships, each with its own speed, hit points, and build time. A battleship takes 40 turns to build and absorbs 10 hits. Fighters carry 32 fuel and crash when it runs out. Transports hold 6 armies. Carriers hold 8 fighters. Ships repair one hit per turn in port.&lt;/p&gt;

&lt;p&gt;It got the rules right. Each attempt by an army to take a city succeeds half the time, and the army is used up either way. Combat runs in rounds, and each round one side, chosen at random, deals its damage. There is real fog of war. Terrain you have seen but can't currently see is drawn faded, so you remember the coastline but not what's sitting on it.&lt;/p&gt;

&lt;p&gt;It kept the original keys. Q W E / A D / Z X C move your unit in eight directions, just like 1977. S is sentry, Space skips, G is go-to, B boards a transport, Enter ends the turn. My fingers remembered them before my brain did.&lt;/p&gt;

&lt;p&gt;It built an opponent. This is the part I expected to be weak. It isn't. The computer expands across its own island first, then builds transports and comes looking for you. It sends fighters and warships too. In Claude's own test games where the human side did nothing at all, the AI held almost every city on the map by turn 180 to 200. So don't sit around admiring the font.&lt;/p&gt;

&lt;p&gt;It handled the little things. The game saves itself every turn in the browser, so you can close the tab and come back. Tapping a distant square sends a unit there over several turns. Tapping a stack cycles through it, which is how you unload armies from a transport. There is a help screen with the full unit table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Under 600 lines&lt;/strong&gt;&lt;br&gt;
The whole thing is less than 600 lines of HTML. That number keeps surprising me.&lt;/p&gt;

&lt;p&gt;The code is easy to find your way around. The unit stats live in a single table called UT at the top. Map generation is in genMap(), where you can change the map size, the share of land, and the number of cities. The computer opponent is a family of functions starting with ai, mainly aiProd, aiArmy, and aiTransport. Combat is fight().&lt;/p&gt;

&lt;p&gt;When I asked for the source, Claude handed me the file and a short map of exactly that. If you want a bigger world or meaner battleships, you know where to look.&lt;/p&gt;

&lt;p&gt;Here's the part that really gets me. Back in the day I wanted to write my own version of Empire. I had a specific question I wanted answered. Are expensive, specialized combat units actually worth it? Take a stealth fighter that costs three times as much as a regular fighter but can't be seen until it strikes. Does it win wars? Or does it just tie up your cities while the other side cranks out cheap armies by the dozen? I never got around to building it. Life happened. Jobs, kids, a few decades.&lt;/p&gt;

&lt;p&gt;Now the experiment is one new line in the UT table. Give the unit a name, a speed, hit points, a build time, and a note. Reload the page. Go find out. The stealth part might take a few more lines, but I know exactly who to ask. Forty years of curiosity, settled over a weekend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One honest caveat&lt;/strong&gt;&lt;br&gt;
The computer opponent can see the whole map. You have fog of war. It doesn't. That is a classic way to make a simple AI competitive, and plenty of commercial games did the same thing. Claude told me about it up front rather than letting me discover it the hard way, which I appreciated. I am choosing to think of it as historical accuracy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it realistic?&lt;/strong&gt;&lt;br&gt;
I have been playing for hours. It feels like Empire. The pacing is right. The early land grab is right. The moment you realize the enemy has transports and your coast is undefended is exactly as unpleasant as I remember.&lt;/p&gt;

&lt;p&gt;That is the real test for a remake. Not whether it matches a spec, but whether it gives you the same feeling. This one does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I took away from this&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Context beats instructions. I gave Claude almost no instructions and one good piece of context. The Wikipedia article did the work a spec would normally do. For a well-documented domain, pointing at the source can be better than paraphrasing it.&lt;/p&gt;

&lt;p&gt;Small is a feature. A single 600-line file is something I can read in an evening, modify, and keep forever. No build step. No framework. No node_modules folder the size of a small moon.&lt;/p&gt;

&lt;p&gt;The interesting part is the judgment. Writing code that moves a unit across a grid isn't impressive anymore. Deciding that a 1977 wargame should look like a 1977 terminal, keep the 1977 keyboard layout, and warn the player that the AI cheats is judgment. That's what made it feel like a collaborator and not an autocomplete.&lt;/p&gt;

&lt;p&gt;I used to spend evenings with Empire on a PC that weighed more than my dog. Now I spend them with Empire in a browser tab, built in less time than it takes to reconfigure DOSBox.&lt;/p&gt;

&lt;p&gt;Some progress is just better.&lt;br&gt;
Want to try it? &lt;a href="https://dev.togames"&gt;https://github.com/btarbox/retrogames&lt;/a&gt;. If you build your own version, or beat the AI faster than I did, let me know in the comments.&lt;/p&gt;

&lt;p&gt;Another Game: AI  Invaders&lt;br&gt;
The classic Space Invaders but updated for our agentic world.  Invaders get faster and stronger and you're protected by PTO!&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbjffudubxgd8zzavxca3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbjffudubxgd8zzavxca3.jpg" alt=" " width="800" height="848"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>retrogame</category>
    </item>
    <item>
      <title>Using AI for Anonymity</title>
      <dc:creator>Brian Tarbox</dc:creator>
      <pubDate>Sun, 15 Nov 2026 17:22:07 +0000</pubDate>
      <link>https://dev.to/aws-heroes/using-ai-for-anonymity-1adb</link>
      <guid>https://dev.to/aws-heroes/using-ai-for-anonymity-1adb</guid>
      <description>&lt;p&gt;Using GenAI to sound like literally anyone but you.&lt;/p&gt;

&lt;p&gt;Everyone knows the trick. You paste three of your old blog posts into an LLM and say "write like me." Thirty seconds later you get an article that sounds like you on a good day. Fewer typos. Better transitions. Somehow funnier. It's a little insulting, honestly.&lt;/p&gt;

&lt;p&gt;But my friend Morgan Creighton had a saying "&lt;em&gt;The opposite of a Good Idea is Often Also A Good Idea&lt;/em&gt;".&lt;/p&gt;

&lt;p&gt;What if you need to write something that sounds like nobody? Not "neutral corporate voice." Nobody. Text with no fingerprints. Text that could have been written by anyone in the building, anyone on the planet, or a reasonably literate golden retriever.&lt;/p&gt;

&lt;p&gt;When would you need that? Two scenarios come to mind:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; The annual anonymous employee engagement survey.&lt;/li&gt;
&lt;li&gt; A ransom note.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I want to be clear that I only have experience with one of these. I also want to be clear that the survey is the one where I'm worried about getting caught.&lt;/p&gt;

&lt;p&gt;The "Anonymous" Survey Problem&lt;br&gt;
HR says the survey is anonymous. This is technically true. Your name is not attached to it.&lt;/p&gt;

&lt;p&gt;Then you hit the free-text box. "Anything else you'd like to share?" Of course you have something to share. You have been saving it up since Q2.&lt;/p&gt;

&lt;p&gt;Here's the thing. Your manager reads those answers. Your manager has also read roughly four hundred of your Slack messages. You type "our sprint planning lacks a coherent theory of mind" and you might as well have signed it in blood. Notarized.&lt;/p&gt;

&lt;p&gt;Everyone has tells. Mine are well documented. I write short sentences. I make a joke and then explain the joke. I say "Here's the thing." (See above. I literally can't stop.) I refuse to use em-dashes on principle. And somewhere around 2009 I lost the ability to write a paragraph without mentioning that I used to program in assembly. I used to program in assembly.&lt;/p&gt;

&lt;p&gt;There's a whole field for this. It's called stylometry, the statistical analysis of writing style. Scholars used it in the 1960s to work out which of the disputed Federalist Papers Madison wrote. In 2013 it helped unmask J.K. Rowling as "Robert Galbraith." If a couple of linguists with word-frequency tables can catch one of the most famous authors alive, Karen from People Ops can absolutely catch you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reverse Style Transfer&lt;/strong&gt;&lt;br&gt;
The normal prompt goes like this:&lt;br&gt;
Here are samples of my writing. Write like me.&lt;/p&gt;

&lt;p&gt;The new prompt goes like this:&lt;br&gt;
Here are samples of my writing. Write like literally anyone else.&lt;/p&gt;

&lt;p&gt;Here's the version I actually used:&lt;br&gt;
Here are five samples of my writing. Study them carefully.&lt;br&gt;
Identify my verbal tics, sentence rhythm, favorite words,&lt;br&gt;
punctuation habits, and the jokes I think are funnier&lt;br&gt;
than they are.&lt;/p&gt;

&lt;p&gt;Now rewrite the survey response below so that none of&lt;br&gt;
those features survive. It should read like it was&lt;br&gt;
written by a mid-level employee in a different department&lt;br&gt;
who has never met me and has strong opinions about the&lt;br&gt;
parking garage.&lt;/p&gt;

&lt;p&gt;My original survey answer:&lt;br&gt;
Our deploy process has more manual gates than a medieval castle. I've counted. It's eleven. One of them is Dave.&lt;/p&gt;

&lt;p&gt;The anonymized version:&lt;br&gt;
I believe there may be opportunities to streamline our deployment workflow, as it currently involves several manual approval steps. Also, the lighting on level 3 of the parking garage has been out since July.&lt;br&gt;
Perfect. Nobody will ever suspect me. I don't even park on level 3.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Things That Went Wrong First&lt;/strong&gt;&lt;br&gt;
It took a few tries. Science is iterative. So is crime. (Survey crime. Theoretical survey crime.)&lt;/p&gt;

&lt;p&gt;Attempt 1: "Make it sound like someone else." The model wrote it as Shakespeare. "Forsooth, the deploy pipeline doth tarry." Technically not my voice. But there is exactly one person in the company who would think that was funny enough to submit. Me. Traceable.&lt;/p&gt;

&lt;p&gt;Attempt 2: "Remove all personality." I got text so bland it was suspicious. No human writes like that. Except Legal. Legal is now under investigation, and I feel a little bad about it.&lt;/p&gt;

&lt;p&gt;Attempt 3: "Write as a completely different person." The model invented a persona named Gary. Gary had a backstory, a beagle, and a grievance about the coffee machine on four. Gary had more personality than I do. HR reached out to Gary for a follow-up conversation. There is no Gary.&lt;/p&gt;

&lt;p&gt;The lesson: you are not aiming for different. Different is memorable. You are aiming for median. The statistical center of all office writing. The beige of prose. The sentence equivalent of a navy fleece vest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Ransom Note Use Case (Purely Theoretical)&lt;/strong&gt;&lt;br&gt;
The classic ransom note was cut out of magazines. Every letter a different font, so nobody could trace your handwriting. That was analog style obfuscation, and honestly it was ahead of its time. Labor intensive, though. And you needed magazines. Who has magazines?&lt;/p&gt;

&lt;p&gt;So, in theory, GenAI is cut-out letters for the 21st century. In practice there are three problems.&lt;/p&gt;

&lt;p&gt;Problem one: it won't do it. I asked (theoretically). It politely declined and gently suggested I talk to someone. Fair.&lt;/p&gt;

&lt;p&gt;Problem two: the logs. Your prompt history is the least anonymous thing you own. It has your account, your timestamps, and every embarrassing question you've asked about sourdough. (So do all this on your personal GenAI account on your personal laptop).&lt;/p&gt;

&lt;p&gt;Problem three, the big one: the AI has a voice too. Hide your style behind an LLM and you don't get no style. You get its style. Your ransom note comes out like this:&lt;/p&gt;

&lt;p&gt;_Ransom Terms: A Comprehensive Overview&lt;br&gt;
Great question! We have your cat. Here's what you need to know:&lt;br&gt;
• Payment: $1,000,000 in unmarked bills&lt;br&gt;
• Timeline: 48 hours&lt;br&gt;
• Location: The bench by the duck pond&lt;/p&gt;

&lt;p&gt;It's worth noting that the cat is safe and, frankly, thriving. Let's delve into next steps together.&lt;/p&gt;

&lt;p&gt;I hope this helps! Let me know if you'd like a version with a more urgent tone._ &lt;/p&gt;

&lt;p&gt;You have successfully replaced "I know who wrote that" with "I know what wrote that." Congratulations. You are now the most identifiable kidnapper in history.&lt;/p&gt;

&lt;p&gt;(Please do not write ransom notes. Not with AI. Not with magazines. The cat has done nothing to you.)&lt;/p&gt;

&lt;p&gt;A Practical Recipe (For Surveys Only, Thank You)&lt;br&gt;
Okay. Here's what actually worked.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Ask for your tics first. Feed the model your samples and ask it to list your habits before it rewrites anything. The list is horrifying. It is also the most useful writing feedback you will get all year.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ban both voices. Tell it to avoid your tics and its own. No "delve." No "it's worth noting." No bullet points where a sentence would do. No cheerful sign-off.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Aim for the median. Ask for the reading level and tone of a typical employee at your company. Not a poet. Not a robot. Somebody who says "circle back" without irony.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Scrub the content, not just the style. Style isn't your only fingerprint. If you're the only person who counted the eleven manual gates, it doesn't matter how beige the sentence is. Specifics leak.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Read it out loud. If it sounds like you, try again. If it sounds like a press release, try again. If it sounds like a coworker you mildly dislike, ship it.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
For years we've used AI to sound more like ourselves. It turns out it's just as good at making us sound like nobody at all. There's something philosophically unsettling in that. I studied Wittgenstein in college, so I'm contractually obligated to mention him once per article. He said the limits of my language mean the limits of my world. He did not say what happens when you outsource the language. I assume it's the parking garage.&lt;/p&gt;

&lt;p&gt;Anyway, I filled out the survey. Fully anonymized. Median voice. No Gary.&lt;br&gt;
The next morning my manager stopped by my desk. "Thanks for the feedback about the parking garage," she said.&lt;br&gt;
I asked how she knew it was me.&lt;br&gt;
"You're the only one who filled out the survey."&lt;br&gt;
Stylometry is impressive. A sample size of one is undefeated.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>writing</category>
    </item>
    <item>
      <title>Supercharge AWS Emulator for AWS CDK Development with cdkd</title>
      <dc:creator>Kenta Goto</dc:creator>
      <pubDate>Sun, 15 Nov 2026 06:36:20 +0000</pubDate>
      <link>https://dev.to/aws-heroes/supercharge-aws-emulator-for-aws-cdk-development-with-cdkd-2bbd</link>
      <guid>https://dev.to/aws-heroes/supercharge-aws-emulator-for-aws-cdk-development-with-cdkd-2bbd</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;When you use AWS Emulator for development with AWS CDK, combining it with cdkd gives you the following benefits:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;cdkd automatically configures the connection to AWS Emulator, and environment variables for Lambda and other resources are resolved automatically from your CDK code, so you don't need a &lt;code&gt;.env&lt;/code&gt; file&lt;/li&gt;
&lt;li&gt;You can freely switch the connection target per service, for example using real AWS for secrets and reference data/files while having the app write to AWS Emulator (no need to recreate real AWS data locally)&lt;/li&gt;
&lt;li&gt;Application code such as Lambda functions runs directly from source without being deployed to AWS Emulator, so you can try out changes right away without redeploying&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  AWS Emulator and cdkd (CDK Direct)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/aws/aws-emulator" rel="noopener noreferrer"&gt;AWS Emulator&lt;/a&gt; is a tool released in November 2026 that emulates AWS APIs locally. It is an emulator that lets you use various AWS resources virtually, without creating them in real AWS.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/go-to-k/cdkd" rel="noopener noreferrer"&gt;cdkd (CDK Direct)&lt;/a&gt;, on the other hand, is a tool that &lt;strong&gt;deploys CDK apps quickly by calling the AWS SDK directly, without using CloudFormation&lt;/strong&gt;. It is an alternative to the CDK CLI for deploying to real AWS environments, but it also provides a subcommand called &lt;code&gt;cdkd local&lt;/code&gt;, which lets you run application resources defined in your CDK app, such as Lambda, ECS, API Gateway, CloudFront, and Bedrock AgentCore, locally. For more details on cdkd, see the following article.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/aws-heroes/i-built-cdkd-deploy-your-existing-aws-cdk-code-up-to-15x-faster-4amg"&gt;I Built cdkd: Deploy Your Existing AWS CDK Code Up to 15x Faster&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With the &lt;code&gt;cdkd local&lt;/code&gt; command, only the application code runs locally. For the AWS resources the app accesses, you can either use your own emulators or mocks, or connect to resources in a real AWS environment. The latter works because &lt;strong&gt;cdkd automatically retrieves and resolves information about the resources the app accesses from your CDK code and deployed stacks&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Two Ways to Use AWS Emulator
&lt;/h2&gt;

&lt;p&gt;There are two main ways to use AWS Emulator. One is to create Lambda functions and other compute inside AWS Emulator and run them there. The other is to run the application code locally and have it access resources, such as tables and buckets, created inside AWS Emulator.&lt;/p&gt;

&lt;p&gt;With the former, Lambda in AWS Emulator runs on a built-in implementation rather than the official AWS runtime, so its behavior may differ from real Lambda. Also, although deployments themselves are fast, you have to redeploy to AWS Emulator every time you change the code. With the latter, on the other hand, you need to pass the connection settings for AWS Emulator and information such as the names of the tables to access to the app via environment variables.&lt;/p&gt;

&lt;p&gt;When you combine AWS Emulator with cdkd, you use the latter approach, and the responsibilities are split as follows: cdkd creates the resources inside AWS Emulator, and the application code runs in the &lt;code&gt;cdkd local&lt;/code&gt; runtime. The results of trying the former approach are summarized in the appendix at the end.&lt;/p&gt;




&lt;h2&gt;
  
  
  How to Use AWS Emulator + cdkd
&lt;/h2&gt;

&lt;p&gt;In this article, as an example, we use a stack &lt;code&gt;MyStack&lt;/code&gt; consisting of a Lambda function that reads from and writes to a DynamoDB table and an S3 bucket, with an API Gateway in front of it.&lt;/p&gt;

&lt;p&gt;We use AWS Emulator v1.0.322 and cdkd (&lt;code&gt;@cdkd/cli&lt;/code&gt;) v0.349.0. You can install cdkd with the following command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install -g @cdkd/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 1: Start AWS Emulator
&lt;/h3&gt;

&lt;p&gt;This step has nothing to do with cdkd. It covers installing and starting AWS Emulator itself (exactly as described in the official documentation).&lt;/p&gt;

&lt;h4&gt;
  
  
  Linux
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSLo aws-emulator.deb \
  https://downloads.aws.com/aws-emulator/packages/aws-emulator/LTS/latest/aws-emulator_amd64.deb
sudo apt-get install -y ./aws-emulator.deb

aws-emulator -b 0.0.0.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  macOS
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="c"&gt;# Dockerfile (use aws-emulator-x86_64.rpm on Intel Macs)&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; public.ecr.aws/amazonlinux/amazonlinux:2023-minimal
&lt;span class="k"&gt;ADD&lt;/span&gt; https://downloads.aws.com/aws-emulator/packages/aws-emulator/LTS/latest/aws-emulator-aarch64.rpm /tmp/aws-emulator.rpm
&lt;span class="k"&gt;RUN&lt;/span&gt; rpm -i /tmp/aws-emulator.rpm &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; rm /tmp/aws-emulator.rpm \
    &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; mkdir -p /home/emulator &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; chown 1000 /home/emulator
&lt;span class="k"&gt;USER&lt;/span&gt; 1000
&lt;span class="k"&gt;ENV&lt;/span&gt; &lt;span class="nv"&gt;HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/home/emulator
&lt;span class="k"&gt;EXPOSE&lt;/span&gt; 9297
&lt;span class="k"&gt;ENTRYPOINT&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"aws-emulator"&lt;/span&gt;, &lt;span class="s2"&gt;"-b"&lt;/span&gt;, &lt;span class="s2"&gt;"0.0.0.0"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker build -t aws-emulator .
mkdir -p ~/.aws/emulator
docker run --rm -p 127.0.0.1:9297:9297 \
  -e &lt;span class="nv"&gt;HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$HOME"&lt;/span&gt; -v &lt;span class="s2"&gt;"$HOME/.aws/emulator:$HOME/.aws/emulator"&lt;/span&gt; \
  aws-emulator -p 9297
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Create Resources in AWS Emulator
&lt;/h3&gt;

&lt;p&gt;To prepare for running the app code with &lt;code&gt;cdkd local&lt;/code&gt; in Step 3, create the resources the app uses inside AWS Emulator. AWS Emulator is empty right after it starts, so you need to create the tables, buckets, and other resources your code reads from and writes to in advance.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cdkd deploy --aws-emulator
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To use AWS Emulator, you would normally need to set a number of environment variables for the connection, such as the endpoint, credentials, and certificates (see the &lt;a href="https://docs.aws.amazon.com/emulator/latest/userguide/point-sdk-to-emulator.html#point-sdk-env" rel="noopener noreferrer"&gt;official documentation&lt;/a&gt; for details). &lt;code&gt;--aws-emulator&lt;/code&gt; takes care of all of these settings automatically.&lt;/p&gt;

&lt;p&gt;In addition, when you pass &lt;code&gt;--aws-emulator&lt;/code&gt;, bootstrapping AWS Emulator is also done automatically under the hood, so you don't need to run &lt;code&gt;cdkd bootstrap&lt;/code&gt; (when deploying with cdkd to a real AWS environment instead of AWS Emulator, you need to run &lt;code&gt;cdkd bootstrap&lt;/code&gt; once beforehand).&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Run the App with cdkd local
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;cdkd local&lt;/code&gt; synthesizes the CDK app, then loads the application code from your local source and runs it. It also reads handlers and API routes automatically from your CDK code, so no dedicated configuration file is needed. By passing &lt;code&gt;--aws-emulator&lt;/code&gt;, AWS calls from the app are sent to AWS Emulator.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# To start an API server (API Gateway) on localhost&lt;/span&gt;
cdkd &lt;span class="kd"&gt;local&lt;/span&gt; start-api --from-state --aws-emulator
curl &lt;span class="s1"&gt;'http://127.0.0.1:3000/notes?id=hello'&lt;/span&gt;

&lt;span class="c"&gt;# To invoke a Lambda function on its own&lt;/span&gt;
cdkd &lt;span class="kd"&gt;local&lt;/span&gt; invoke MyStack/Handler --from-state --aws-emulator --event event.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In practice, the AWS resources a Lambda function accesses are often defined in its environment variables. However, in CDK code (or in a CloudFormation template), those environment variables usually contain references (such as CloudFormation &lt;code&gt;Ref&lt;/code&gt; or &lt;code&gt;GetAtt&lt;/code&gt;) rather than the actual values of the target AWS resources (the real ARNs or URLs).&lt;/p&gt;

&lt;p&gt;So when you specify &lt;code&gt;--from-state&lt;/code&gt;, cdkd automatically resolves these references to their actual values using the information recorded in the cdkd stack state during the deployment in Step 2. In other words, &lt;strong&gt;developers don't need to define the information about the resources the app accesses in environment variables themselves&lt;/strong&gt; to run the app locally against the emulator.&lt;/p&gt;




&lt;h2&gt;
  
  
  Benefits of AWS Emulator + cdkd
&lt;/h2&gt;

&lt;p&gt;From here, I'll explain the three points listed at the beginning (&lt;code&gt;TL;DR&lt;/code&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Connection Settings Are Configured Automatically, and Environment Variables for Lambda and Others Are Resolved from CDK Code, So No &lt;code&gt;.env&lt;/code&gt; Is Needed
&lt;/h3&gt;

&lt;p&gt;As briefly mentioned in Step 2 above, to use AWS Emulator, you need to set credentials, certificates, and other settings for connecting to it via environment variables (see the &lt;a href="https://docs.aws.amazon.com/emulator/latest/userguide/point-sdk-to-emulator.html#point-sdk-env" rel="noopener noreferrer"&gt;official documentation&lt;/a&gt; for details).&lt;/p&gt;

&lt;p&gt;With cdkd, you just add &lt;code&gt;--aws-emulator&lt;/code&gt; to &lt;code&gt;cdkd deploy&lt;/code&gt; or &lt;code&gt;cdkd local&lt;/code&gt;, and cdkd configures all of these automatically.&lt;/p&gt;

&lt;p&gt;Furthermore, as mentioned in Step 3 above, cdkd also automatically resolves the values of environment variables for application resources such as Lambda and ECS.&lt;/p&gt;

&lt;p&gt;If you run your app code locally without cdkd, you need to look up auto-generated resource names, ARNs, and so on, copy them into a &lt;code&gt;.env&lt;/code&gt; file, and rewrite it every time you recreate the resources. &lt;code&gt;cdkd local&lt;/code&gt; reads handlers and environment variables from your CDK code, and with &lt;code&gt;--from-state&lt;/code&gt;, it automatically converts references such as table names into their actual values.&lt;/p&gt;

&lt;p&gt;Thanks to this mechanism, using cdkd eliminates the need to prepare a &lt;code&gt;.env&lt;/code&gt; file. Even if you pass values such as passwords directly via environment variables, cdkd fetches them from Secrets Manager and injects them before startup, so you don't have to keep secret values in local files.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Freely Switch Between AWS Emulator and Real AWS Per Service
&lt;/h3&gt;

&lt;p&gt;With &lt;code&gt;cdkd local&lt;/code&gt;, you can switch the connection target for each AWS service or database the app accesses. That is, you can achieve flexible setups locally: everything on AWS Emulator, only some resources on real AWS, or all resources on real AWS with only the app code running locally.&lt;/p&gt;

&lt;p&gt;Passing &lt;code&gt;--aws-emulator&lt;/code&gt; makes every AWS service the app accesses point to AWS Emulator. On top of that, for only the services you want to connect to real AWS, set the value of &lt;code&gt;AWS_ENDPOINT_URL_{resource type}&lt;/code&gt; to &lt;code&gt;"real-aws"&lt;/code&gt; in the JSON file specified with &lt;code&gt;--env-vars&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For example, in the following example, only Secrets Manager and Cognito use real AWS resources, while DynamoDB, SQS, SNS, S3, and others keep accessing AWS Emulator. You can also split the settings per Lambda function or other unit (write the function name as the key instead of &lt;code&gt;Parameters&lt;/code&gt;).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"Parameters"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"AWS_ENDPOINT_URL_SECRETS_MANAGER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"real-aws"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"AWS_ENDPOINT_URL_COGNITO_IDENTITY_PROVIDER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"real-aws"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As explained earlier, with &lt;code&gt;--from-state&lt;/code&gt;, table names, database endpoints, secret ARNs, and so on are resolved according to the connection target of each service. In the example above, information such as secret ARNs is resolved automatically from real AWS, while table names, queue names, and so on are resolved from AWS Emulator.&lt;/p&gt;

&lt;p&gt;Therefore, when you specify &lt;code&gt;"real-aws"&lt;/code&gt;, you need to run &lt;code&gt;cdkd deploy&lt;/code&gt; against real AWS as well beforehand and set up information such as secrets in advance.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Deploy the stack to both AWS Emulator and real AWS&lt;/span&gt;
cdkd deploy --aws-emulator
cdkd deploy &lt;span class="c"&gt;# After deploying, set values such as secrets&lt;/span&gt;

cdkd &lt;span class="kd"&gt;local&lt;/span&gt; invoke MyStack/Handler --from-state --aws-emulator --env-vars routing.json --event event.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In fact, by using &lt;code&gt;--from-cfn-stack&lt;/code&gt; instead of &lt;code&gt;--from-state&lt;/code&gt;, you can retrieve information from a CloudFormation stack deployed with the regular CDK CLI (&lt;code&gt;cdk deploy&lt;/code&gt;) rather than a stack deployed with cdkd. This is for those who have just installed cdkd and want to retrieve information from stacks they have been deploying and operating with the regular CDK CLI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cdkd &lt;span class="kd"&gt;local&lt;/span&gt; invoke MyStack/Handler --from-cfn-stack --aws-emulator --event event.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With this resource switching feature, cdkd enables setups such as the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Switch the database between local and a development RDS

&lt;ul&gt;
&lt;li&gt;Keep separate JSON files for connecting to a local MySQL (Docker container) and to a development RDS, and switch between them with &lt;code&gt;--env-vars&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;To connect to something other than AWS resources, such as a local MySQL, write its endpoint in the &lt;code&gt;--env-vars&lt;/code&gt; file&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Use real AWS only for secrets

&lt;ul&gt;
&lt;li&gt;Read API keys for external services such as Stripe or OpenAI from Secrets Manager in real AWS&lt;/li&gt;
&lt;li&gt;No need to put the actual keys in &lt;code&gt;.env&lt;/code&gt; or load them into AWS Emulator, and no hassle of reloading them every time you restart AWS Emulator&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Use real AWS only for test data and test users

&lt;ul&gt;
&lt;li&gt;Use Cognito test users and S3 files from real AWS&lt;/li&gt;
&lt;li&gt;Write to DynamoDB and SQS on AWS Emulator&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Use real models with AI agents

&lt;ul&gt;
&lt;li&gt;Conversation state in DynamoDB (AWS Emulator), models in Bedrock (real AWS)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Currently, switching is done per AWS service, so you can't split it per table within the same DynamoDB. Also, connecting from your local machine to an RDS instance in a private subnet requires a separate tunnel, such as SSM port forwarding.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. No Redeployment Needed When You Modify App Code
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;cdkd local&lt;/code&gt; reads handlers, environment variables, API routes, and so on directly from your CDK code, and runs application code such as Lambda functions directly from source in Docker, without deploying it to AWS Emulator.&lt;/p&gt;

&lt;p&gt;When you emulate Lambda functions entirely inside AWS Emulator, they run on a copy of the code taken at deploy time, so you need to redeploy every time you make a fix. With &lt;code&gt;cdkd local&lt;/code&gt;, that isn't necessary, so you can rerun immediately after making changes.&lt;/p&gt;




&lt;h2&gt;
  
  
  Details of cdkd local + AWS Emulator
&lt;/h2&gt;

&lt;p&gt;For a more detailed explanation of the AWS Emulator integration, see the official cdkd documentation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://cdkd.dev/aws-emulator/index.html" rel="noopener noreferrer"&gt;AWS Emulator integration - cdkd documentation&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  You Can Do the Same with cdk-local
&lt;/h2&gt;

&lt;p&gt;The feature of &lt;code&gt;cdkd local&lt;/code&gt; that runs your code locally is also published as a standalone tool, &lt;a href="https://github.com/go-to-k/cdk-local" rel="noopener noreferrer"&gt;cdk-local&lt;/a&gt; (command name: &lt;code&gt;cdkl&lt;/code&gt;). If you use the CDK CLI and not cdkd, you can use this tool with AWS Emulator in the same way.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install -g cdk-local

cdkl invoke MyStack/Handler --from-cfn-stack --aws-emulator --event event.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Resources are created with the regular &lt;code&gt;cdk deploy&lt;/code&gt;, and with &lt;code&gt;--from-cfn-stack&lt;/code&gt;, environment variables are resolved automatically from the deployed CDK stack (CloudFormation stack).&lt;/p&gt;




&lt;h2&gt;
  
  
  Appendix: Running Lambda Inside AWS Emulator
&lt;/h2&gt;

&lt;p&gt;Inside AWS Emulator, you can create and invoke Lambda functions, and you can also send HTTP requests to an API Gateway inside it (you specify the API with the &lt;code&gt;Host&lt;/code&gt; header, like &lt;code&gt;curl --cacert ~/.aws/emulator/9297/ca.pem -H 'Host: &amp;lt;api-id&amp;gt;.execute-api.&amp;lt;region&amp;gt;.amazonaws.com' https://127.0.0.1:9297/prod/...&lt;/code&gt;). However, those Lambda functions could not connect to anything other than the AWS services provided by AWS Emulator. It currently seems to be designed so that they can't connect to external APIs, local databases, or real AWS.&lt;/p&gt;

&lt;p&gt;In addition, as far as I tested with AWS Emulator 1.0.322, the following did not work either:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Container image Lambda functions

&lt;ul&gt;
&lt;li&gt;The AWS Emulator registry does not accept image pushes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;ECS tasks and services, and AgentCore agents

&lt;ul&gt;
&lt;li&gt;The containers are not executed&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Some standard features of languages (runtimes), such as Node.js &lt;code&gt;fetch&lt;/code&gt;, &lt;code&gt;node:zlib&lt;/code&gt;, and &lt;code&gt;https&lt;/code&gt;, and Python &lt;code&gt;asyncio&lt;/code&gt; and &lt;code&gt;ssl&lt;/code&gt;

&lt;ul&gt;
&lt;li&gt;Lambda in AWS Emulator runs on a built-in implementation rather than the official AWS runtimes&lt;/li&gt;
&lt;li&gt;Also, there is only one built-in implementation per language, not one per version (confirmed for Python, and probably the same for Node.js)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Some CDK custom resources (&lt;code&gt;Custom::S3AutoDeleteObjects&lt;/code&gt; from &lt;code&gt;autoDeleteObjects: true&lt;/code&gt;, &lt;code&gt;BucketDeployment&lt;/code&gt;, and &lt;code&gt;cr.Provider&lt;/code&gt;)

&lt;ul&gt;
&lt;li&gt;The Lambda functions that perform the processing fail to load Node.js &lt;code&gt;https&lt;/code&gt; or Python &lt;code&gt;_signal&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;However, when you deploy with &lt;code&gt;--aws-emulator&lt;/code&gt;, cdkd runs these Lambda functions on the official runtimes in local Docker instead of inside AWS Emulator, so they work as is (Docker is required)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These findings are as of the time of writing (2026/11/13). All of AWS Emulator's code is written by autonomous AI agents, and development moves so fast that thousands of issues are fixed per day (&lt;a href="https://www.aboutamazon.com/news/aws/how-autonomous-ai-agents-built-aws-emulator" rel="noopener noreferrer"&gt;reference&lt;/a&gt;), so this may well change in the future.&lt;/p&gt;




&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;When you use AWS Emulator for development with AWS CDK, combining it with cdkd gives you the following benefits (repeated from above):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;cdkd automatically configures the connection to AWS Emulator, and environment variables for Lambda and other resources are resolved automatically from your CDK code, so you don't need a &lt;code&gt;.env&lt;/code&gt; file&lt;/li&gt;
&lt;li&gt;You can freely switch the connection target per service, for example using real AWS for secrets and reference data/files while having the app write to AWS Emulator (no need to recreate real AWS data locally)&lt;/li&gt;
&lt;li&gt;Application code such as Lambda functions runs directly from source without being deployed to AWS Emulator, so you can try out changes right away without redeploying&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;cdkd has not only fast deployment but also local execution features, so combining it with AWS Emulator makes it even more powerful and extremely convenient.&lt;/p&gt;

&lt;p&gt;I also plan to keep adding new features whenever I come up with good ideas.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>awscdk</category>
      <category>cdk</category>
      <category>awsemulator</category>
    </item>
    <item>
      <title>modules.tf now reviews Terraform module pull requests</title>
      <dc:creator>Anton Babenko</dc:creator>
      <pubDate>Wed, 04 Nov 2026 17:49:25 +0000</pubDate>
      <link>https://dev.to/aws-heroes/modulestf-now-reviews-terraform-module-pull-requests-k4k</link>
      <guid>https://dev.to/aws-heroes/modulestf-now-reviews-terraform-module-pull-requests-k4k</guid>
      <description>&lt;p&gt;Reviewing pull requests for terraform-aws-modules has always taken a lot of my time. It was a problem for a very long time, and I recorded &lt;a href="https://www.youtube.com/@AntonBabenkoLive" rel="noopener noreferrer"&gt;livestreams&lt;/a&gt; of myself doing it. I cannot skip it: merging something that is not great is a way to disaster and lost trust.&lt;/p&gt;

&lt;p&gt;AI lets everyone write code now, and coding agents open pull requests for Terraform modules. A person still reads each one.&lt;/p&gt;

&lt;p&gt;A model already knows how to write good Terraform. For that part I maintain &lt;a href="https://github.com/antonbabenko/terraform-skill" rel="noopener noreferrer"&gt;terraform-skill&lt;/a&gt;, a skill for Terraform and OpenTofu with testing, module, CI/CD and production patterns. What a model does not know is what we allow and expect in the modules. Can a module create a KMS key? Which regions may examples use? Does this addition belong in the module at all? terraform-aws-modules has no written scope policy, so the model guesses and I read the guess.&lt;/p&gt;

&lt;p&gt;I released the pieces that write it down and apply it. &lt;a href="https://github.com/modulestf/modulestf" rel="noopener noreferrer"&gt;modulestf&lt;/a&gt; is four agent skills for Claude Code and Codex, with a profile of the rules. &lt;a href="https://github.com/modulestf/facts" rel="noopener noreferrer"&gt;mtf-facts&lt;/a&gt; is the command-line tool that decides the rules a parser can decide. Both are Apache-2.0. The skills run in your agent, on your machine, with your own GitHub login. This is the beginning of the work, and the last section says what I need from other maintainers and contributors.&lt;/p&gt;

&lt;p&gt;The name modules.tf is older than this. In November 2018 I &lt;a href="https://dev.to/modules-tf-convert-visual-aws-diagram-into-terraform-configuration/"&gt;announced it&lt;/a&gt; as a converter from Cloudcraft diagrams to Terraform. That code is on the &lt;code&gt;legacy&lt;/code&gt; branch of the modulestf repository, and the name now belongs to the review tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  A profile writes down what the modules allow
&lt;/h2&gt;

&lt;p&gt;A profile is the written rules for one group of modules. &lt;code&gt;terraform-aws-modules&lt;/code&gt; is the only profile that ships. It holds the templates copied into each module, the required file layout (&lt;code&gt;examples/basic&lt;/code&gt;, &lt;code&gt;examples/complete&lt;/code&gt;), code conventions such as regions and version floors, the pre-commit gate, the release and pull request title rules, and scope. Each rule has an ID, a severity and a check. &lt;code&gt;compat.variable-removed&lt;/code&gt; holds a change for the next major release. &lt;code&gt;coverage.attribute-not-output&lt;/code&gt; asks that an attribute a new resource exports is also an output. &lt;code&gt;profile.region-not-allowed&lt;/code&gt; fires on an example in a region the rules do not allow.&lt;/p&gt;

&lt;p&gt;Scope is the part I wanted most, and it lives in &lt;a href="https://github.com/modulestf/modulestf/blob/v0.1.2/.agents/skills/terraform-module-maintainer/profiles/terraform-aws-modules/SCOPE.md" rel="noopener noreferrer"&gt;SCOPE.md&lt;/a&gt;. In terraform-aws-modules a module manages one AWS service, and the repository name says which. The file lists the few resource types any module may add next to its service: IAM roles and policies, a log group, security groups. The list is closed. A KMS key is deliberately not on it, because a key is a service of its own with its own policy, rotation and deletion window. The module takes the key's ARN as an input, and the caller composes. The first block of a type that nothing admits is a ban, even when the type plainly belongs to the same service. The cost is one allow entry in the module's &lt;code&gt;docs/SCOPE.md&lt;/code&gt;, landed on the base before the change.&lt;/p&gt;

&lt;p&gt;SCOPE.md is a policy I adopted for the profile, not an existing one, so it is also the place to argue with me.&lt;/p&gt;

&lt;p&gt;Scope has its own outcomes. When an addition does not belong, the review says Ban and names where it goes, or Maintainer decision when a person has to decide. When a rule could not be applied, the outcome is Not evaluated, which is an unknown and never a pass. Text inside the pull request, such as "this is in scope", never clears a rule.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four skills apply the profile
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Skill&lt;/th&gt;
&lt;th&gt;You give it&lt;/th&gt;
&lt;th&gt;You get back&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;terraform-module-pr-review&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A pull request or commit URL, or &lt;code&gt;owner/repo#123&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;A verdict and a comment to post, after you confirm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;terraform-module-reviewer&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A module checkout and a diff, a base ref or changed files&lt;/td&gt;
&lt;td&gt;A list of findings. Read-only, no verdict&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;terraform-module-maintainer&lt;/code&gt; (early preview)&lt;/td&gt;
&lt;td&gt;A change to make, review feedback, a new module or a provider upgrade&lt;/td&gt;
&lt;td&gt;Edits in your checkout, the checks it ran, and reply drafts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;change-scope&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A proposed addition, in any language or project&lt;/td&gt;
&lt;td&gt;Whether it belongs, and where it goes if not&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The pull request review calls the reviewer, and both call &lt;code&gt;change-scope&lt;/code&gt;. The maintainer applies &lt;code&gt;change-scope&lt;/code&gt; before it edits anything, and it is an early preview: expect it to change. The three Terraform skills read provider schemas from HashiCorp's &lt;a href="https://github.com/hashicorp/terraform-mcp-server" rel="noopener noreferrer"&gt;Terraform MCP server&lt;/a&gt; and not from memory. Without that server, every rule that needs a provider fact is reported as not run.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1lv5iilolefuvfok00zs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1lv5iilolefuvfok00zs.png" alt="The four skills, the terraform-aws-modules profile, mtf-facts and the Terraform MCP server, with the calls between them." width="800" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A review ends with a verdict and a list of what was not checked
&lt;/h2&gt;

&lt;p&gt;On 4 November I asked my agent to run the &lt;code&gt;terraform-module-pr-review&lt;/code&gt; skill on &lt;a href="https://github.com/terraform-aws-modules/terraform-aws-vpc/pull/1270" rel="noopener noreferrer"&gt;a pull request&lt;/a&gt; that adds a Regional NAT Gateway mode to terraform-aws-vpc. It came back with two HIGH findings, eight MEDIUM and one LOW, and I posted the result as &lt;a href="https://github.com/terraform-aws-modules/terraform-aws-vpc/pull/1270#pullrequestreview-5764266880" rel="noopener noreferrer"&gt;changes requested&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;One HIGH finding is a route that counts one gateway while the module makes a route table per private subnet, so only the first table gets the DNS64 route. The other is an example that uses a region the rules do not allow for examples. The last line of the verdict is the one I care about most:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Behaviour evidence: 56 changes classified: 0 verified, 3 covered by a plan, 0 inert, 0 refuted, 53 not verified
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The review counts what it could not check, and it does not count a gap as a pass.&lt;/p&gt;

&lt;p&gt;The verdict has no judgement of its own. A fixed ladder of seven rules turns the findings and the state of the pull request's checks and threads into one verdict, and the first rule that matches wins. Any HIGH finding gives the verdict Block, which is why #1270 got changes requested. When something could not be checked the verdict is Inconclusive, unless a finding or a failing check already decides it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdmhdx09ljawmhbmonub7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdmhdx09ljawmhbmonub7.png" alt="A review flows from a pull request reference through a sandboxed checkout, mtf-facts, the reviewer, the verification ladder and a computed verdict to a comment that is posted only after you confirm." width="800" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The skill clones the pull request into a temporary directory and runs &lt;code&gt;terraform init -backend=false&lt;/code&gt; and &lt;code&gt;terraform validate&lt;/code&gt; in each example, the ones the change touches first. AWS, GitHub, Terraform and SSH credentials are removed from that environment, the home directory is empty and there is no backend. &lt;code&gt;terraform init&lt;/code&gt; downloads the providers and modules the change pins, and &lt;code&gt;terraform validate&lt;/code&gt; runs those provider plugins, so a passing &lt;code&gt;terraform validate&lt;/code&gt; is evidence, not proof. The skill posts nothing until you confirm the comment and the review event.&lt;/p&gt;

&lt;h2&gt;
  
  
  mtf-facts decides what a parser can decide
&lt;/h2&gt;

&lt;p&gt;modules.tf is built so that an AI spends its effort where it helps. A variable with no type, a missing &lt;code&gt;versions.tf&lt;/code&gt; and a removed output are facts about files, and a model should not spend tokens finding them. &lt;code&gt;mtf-facts&lt;/code&gt; is a Go command-line tool that reads module files and reports those facts: rule results, candidate findings with evidence, interface and schema diffs. It makes no network call and runs no Terraform.&lt;/p&gt;

&lt;p&gt;What it hands the model is small on purpose. &lt;code&gt;lint --json --ai&lt;/code&gt; writes one line with only the parts a reviewer decides on, and leaves out the file index, the interface diff and the schema coverage. &lt;code&gt;bundle&lt;/code&gt; turns the full report into the text the reviewer reads, capped at 48 KiB. Over the cap it sheds sections from the lowest priority up, and never the findings or the candidates. I have not published a measured token saving, so treat this as the design and not as a benchmark.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;modulestf/tap/mtf-facts
mtf-facts lint ./my-module &lt;span class="nt"&gt;--base&lt;/span&gt; ../base-tree
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three commands are for the person writing a module: &lt;code&gt;lint&lt;/code&gt;, &lt;code&gt;ledger&lt;/code&gt; for provider coverage, and &lt;code&gt;schema-diff&lt;/code&gt; for provider upgrades. The rest are for the review pipeline: &lt;code&gt;affected&lt;/code&gt;, &lt;code&gt;depth&lt;/code&gt;, &lt;code&gt;bundle&lt;/code&gt;, &lt;code&gt;merge&lt;/code&gt;, &lt;code&gt;behaviour&lt;/code&gt;, &lt;code&gt;claims-eval&lt;/code&gt; and &lt;code&gt;fixture-check&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;lint&lt;/code&gt; exits 0 when there are no findings and every rule was decided. It exits 1 on findings and 2 on an error. It exits 3 when there are no findings but at least one rule was not evaluated, so an incomplete check is never reported as a success. Candidates are unconfirmed, and they never change the exit code.&lt;/p&gt;

&lt;p&gt;The facts repository walks through &lt;a href="https://github.com/modulestf/facts#example-review-a-pull-request" rel="noopener noreferrer"&gt;a real pull request&lt;/a&gt; command by command.&lt;/p&gt;

&lt;h2&gt;
  
  
  Behaviour changes are verified with escalating evidence
&lt;/h2&gt;

&lt;p&gt;Dropping &lt;code&gt;compact()&lt;/code&gt; around a list looks harmless in a diff. Whether it changes anything depends on values the diff does not show. &lt;code&gt;mtf-facts behaviour&lt;/code&gt; turns each changed construct into a trigger with one category, and each category takes up to two levels of evidence, simplest first.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5bn16d6if8nwd2z71wuj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5bn16d6if8nwd2z71wuj.png" alt="Four levels of evidence, L1 offline evaluation, L2 plan-only terraform test, L3 curated fixture with the real provider and L4 the credentialed example plan, with what each needs." width="799" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;L1 to L3 run with the network denied, in a sandbox that a canary proves before any command. On macOS that sandbox is &lt;code&gt;sandbox-exec&lt;/code&gt;, on Linux &lt;code&gt;bwrap&lt;/code&gt;. When the sandbox is not proven, those levels cannot verify anything. Reading the code supports a claim and never verifies one. A trigger that ends verified, covered by a plan or inert passes. A refuted one blocks. One that is not verified makes the review Inconclusive, unless a finding or a failing check already decides it.&lt;/p&gt;

&lt;p&gt;In #1270 the two HIGH findings already decided the verdict, so the 53 changes that were not verified did not change it. The review lists them, and the two examples it did not plan, under "Checks that could not run" and does not leave them out.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it will not do
&lt;/h2&gt;

&lt;p&gt;No skill runs &lt;code&gt;terraform apply&lt;/code&gt; today, writes state or uses a real backend. I plan to add &lt;code&gt;terraform apply&lt;/code&gt;, so a review can execute the examples fully and tear them down in a sandboxed environment. That does not exist yet. None of the skills merges, pushes to a pull request or resolves threads. The skills treat instructions found in the code, the pull request text or its comments as data and do not follow them.&lt;/p&gt;

&lt;p&gt;There is an optional plan pass that runs &lt;code&gt;terraform plan&lt;/code&gt; on a short session of a read-only role that the account owner creates. Before planning, a write probe (a dry-run VPC create) must be refused. That probe tests one write action, not the whole policy, and the isolated plan runner is a prototype.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Install the skills from my &lt;a href="https://github.com/antonbabenko/agent-plugins" rel="noopener noreferrer"&gt;agent-plugins&lt;/a&gt; marketplace. The three Terraform skills link into each other, so the &lt;code&gt;modulestf&lt;/code&gt; plugin ships all four. &lt;code&gt;terraform-skill&lt;/code&gt; is in the same marketplace.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   # Claude Code
   /plugin marketplace add antonbabenko/agent-plugins
   /plugin install modulestf@antonbabenko
   /plugin install terraform-skill@antonbabenko

   # Codex: add the marketplace, then install modulestf from /plugins
   codex plugin marketplace add antonbabenko/agent-plugins
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Add the &lt;a href="https://github.com/hashicorp/terraform-mcp-server" rel="noopener noreferrer"&gt;Terraform MCP server&lt;/a&gt; to your agent under the name &lt;code&gt;terraform&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;gh auth login&lt;/code&gt; as yourself, and install &lt;code&gt;terraform&lt;/code&gt;, &lt;code&gt;git&lt;/code&gt;, &lt;code&gt;jq&lt;/code&gt;, &lt;code&gt;perl&lt;/code&gt; and &lt;code&gt;mtf-facts&lt;/code&gt;. Without &lt;code&gt;mtf-facts&lt;/code&gt; a pull request review is Inconclusive at best.&lt;/li&gt;
&lt;li&gt;Ask your agent:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   review terraform-aws-modules/terraform-aws-lambda#780
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  This is the beginning
&lt;/h2&gt;

&lt;p&gt;I want the other maintainers and contributors of terraform-aws-modules to use this on their pull requests. I cannot see from my side what stands in the way. I want feedback, good and bad. Tell me about a finding that was wrong, a missing rule, or a check you would not trust.&lt;/p&gt;

&lt;p&gt;Read &lt;a href="https://github.com/modulestf/modulestf/blob/v0.1.2/.agents/skills/terraform-module-maintainer/profiles/terraform-aws-modules/SCOPE.md" rel="noopener noreferrer"&gt;SCOPE.md&lt;/a&gt; for a module you maintain and tell me where it is wrong. It may need an allow entry I did not think of. Open an &lt;a href="https://github.com/modulestf/modulestf/issues" rel="noopener noreferrer"&gt;issue&lt;/a&gt; with the pull request link and the rule ID.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>terraform</category>
      <category>codereview</category>
      <category>modules</category>
    </item>
    <item>
      <title>Cleanup, not a rebuild - the fastest way to save on AWS</title>
      <dc:creator>Pawel Zubkiewicz</dc:creator>
      <pubDate>Wed, 04 Nov 2026 11:29:19 +0000</pubDate>
      <link>https://dev.to/aws-heroes/cleanup-not-a-rebuild-the-fastest-way-to-save-on-aws-9kj</link>
      <guid>https://dev.to/aws-heroes/cleanup-not-a-rebuild-the-fastest-way-to-save-on-aws-9kj</guid>
      <description>&lt;p&gt;Do you know how much of your AWS bill goes to resources nobody on your team remembers anymore? I'll give you a moment to think... Done? After years of cost audits, I know one thing: usually more than anyone assumes. But to back it up with numbers: I often see 14%–22% of the monthly bill, and sometimes as much as 44%!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The biggest savings in AWS rarely require rebuilding the architecture.&lt;/strong&gt; Usually a cleanup is enough: an EBS volume that hasn't been attached to anything for a year, snapshots of a machine that no longer exists, a NAT Gateway with no traffic flowing through it. I tell my clients this straight: it's like cleaning the Augean stables, not rewriting the system. For 5 years I've been building a tool that does that first review of an account, and its version 2.0 has just been released. It's my tool, so read this with a healthy dose of skepticism 😉&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the money usually sits
&lt;/h2&gt;

&lt;p&gt;The list from my audits repeats so often that I could recite it from memory. Besides what I mentioned above, it includes load balancers without a single working target, unassociated Elastic IP addresses, and RDS databases that nobody connects to or that are oversized. Rightsizing is a classic: EC2 instances, including those in Auto Scaling groups, running at a fraction of the capacity you pay for. A separate category is extended support charges: in RDS and in EKS clusters on an old Kubernetes version. And finally, Provisioned Concurrency in Lambda, configured and idle.&lt;/p&gt;

&lt;p&gt;None of these items requires rewriting the system. To be clear: I'm not telling you to shorten the retention of production logs. I mean resources nobody will need in five years. One such cleanup, &lt;a href="https://dev.to/aws-builders/reduce-aws-cost-how-ive-saved-18890-monthly-on-ebs-drives-528a"&gt;cleaning up EBS volumes&lt;/a&gt;, has its own write-up.&lt;/p&gt;

&lt;h3&gt;
  
  
  If it's that simple, why does nobody clean it up?
&lt;/h3&gt;

&lt;p&gt;From my audits, I know two reasons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The team is afraid that the review will expose neglect, so the initiative dies before anyone looks into the account.&lt;/li&gt;
&lt;li&gt;In many people's heads, cost optimization means migration, so the fear of a "big rebuild" wins over the wish to save money.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hence my Augean stables. Cleanup is boring, minimally invasive, and that's exactly why it works.&lt;/p&gt;

&lt;p&gt;Of course, rewriting the system and changing the architecture have huge savings potential. However, it's a very big investment that carries risk, and in practice few people decide to rewrite a system unless they have their back against the wall, meaning the system costs more than it earns. Companies simply prefer to deliver new features rather than optimize and rewrite what already works.&lt;/p&gt;

&lt;p&gt;So it's not that I ignore architecture topics. Quite the opposite. I've even given talks about it at several conferences, but day-to-day work shows me that few people make such a change. Realistically, few people even clean up their AWS accounts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I started in the first place
&lt;/h2&gt;

&lt;p&gt;In 2021 I was working with an AWS account that had access to cost information, but I couldn't give simple answers to the question of where that money was being wasted. Cost Explorer showed me the bill, and I needed a list of things to fix. Instead of clicking through service after service and console after console, I started writing my own application, and over the following years I kept adding patterns from client audits to it. And as always, the best list is the one you don't have to make by hand. I described the whole story in the article &lt;a href="https://dev.to/aws-heroes/why-aws-cost-explorer-isnt-enough-the-story-of-my-own-pain-and-how-cloudpouch-was-born-23m3"&gt;Why AWS Cost Explorer Isn't Enough&lt;/a&gt;, so here is just a summary. Today CloudPouch has more than 80 public releases behind it, the first one in November 2021, and emails are still answered by the same person. Yes, that's me.&lt;/p&gt;

&lt;h2&gt;
  
  
  CloudPouch 2.0 launch
&lt;/h2&gt;

&lt;p&gt;I wrote a new version, CloudPouch 2.0, and it has a ton of new features. I'm very excited and I want to show them to you!&lt;/p&gt;

&lt;p&gt;If you know CloudPouch from version 1.x, there is one key change: instead of running the analysis service by service, &lt;strong&gt;you run one scan of all supported services&lt;/strong&gt;. And &lt;strong&gt;you can connect your AI agent&lt;/strong&gt; to the results, more on that in a moment.&lt;/p&gt;

&lt;h3&gt;
  
  
  New Free plan
&lt;/h3&gt;

&lt;p&gt;It's completely free, forever, and you get the full scan. Download the app from &lt;a href="https://cloudpouch.dev/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=cp20-launch&amp;amp;utm_content=darmowy-plan" rel="noopener noreferrer"&gt;cloudpouch.dev&lt;/a&gt; and create an account.&lt;/p&gt;

&lt;p&gt;Free is a fair price 😃&lt;/p&gt;

&lt;h2&gt;
  
  
  What one scan does in 2.0
&lt;/h2&gt;

&lt;p&gt;One Savings Scan checks all supported AWS services in a single pass. While it runs, a progress panel shows which service the scan is on right now, and you can stop it at any time. The result opens with four cards: how much you can save monthly and yearly, how many items the scan found, and which type of finding (improvement opportunity) gives the most. Only below the cards will you find a diagram that shows where the money goes, and a table with all findings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2uv67v2b6v9hewz16qw7.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2uv67v2b6v9hewz16qw7.webp" alt="The Overview tab in CloudPouch 2.0: cost, potential savings, and a flow diagram from finding through resource type to recommended action." width="800" height="549"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You choose the diagram layout from seven ready-made presets. The screenshot shows three stages: finding, resource type, and recommended action. I click one item to see what's behind it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A claim is not evidence
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Every finding has evidence.&lt;/strong&gt; "This volume must be deleted" is a claim, and evidence is something else: the metrics, configuration, or reference data that CloudPouch based the recommendation on, plus the recommended action and the monthly savings where they can be estimated. An example? For an EKS cluster that fell into extended support, the evidence lists the Kubernetes version and the extra charge, and the action is an upgrade to a version covered by standard (free) support.&lt;/p&gt;

&lt;p&gt;Let's take the finding from the screenshot below, an EBS volume type change. I do with it what I do in an audit: I check what CloudPouch reads from the AWS API (type, size, attached instance), what this volume actually did over 14 days according to CloudWatch metrics, and where the amount comes from, meaning the current cost, the cost after the change, and the estimated savings. Only with that evidence do I go to the team.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff9czljb8y6rl4envsl0z.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff9czljb8y6rl4envsl0z.webp" alt="An expanded finding in CloudPouch 2.0: the recommended action for an EBS volume, the current configuration from the AWS API, and the cost basis." width="800" height="549"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Why do I insist on this? Because in an audit, every recommendation goes to someone who knows the resource better than I do, and it has to defend itself to that person. A recommendation without evidence is an opinion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Agentic FinOps: what your AI agent does
&lt;/h2&gt;

&lt;p&gt;For me, the most interesting new feature in release 2.0 is Agentic FinOps, a modern approach that this version finally makes possible. &lt;strong&gt;CloudPouch's algorithms do the math, your AI agent works on the results (explains, prioritizes, turns them into next steps), and you get a verified solution: what to fix, why, and how much it's worth.&lt;/strong&gt; Why this split? Because a model that guesses your AWS bill gives a confident answer, and confident does not mean correct.&lt;/p&gt;

&lt;p&gt;The MCP server is built into the app, so Claude Code, Claude Desktop, Cursor, Codex, or Kiro can ask CloudPouch any question about AWS costs and savings. For example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Which findings give the biggest savings, and what is the evidence for the first one?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For questions like this, the answer comes from your numbers, not from the model guessing. You'll find a ready-made configuration for each of these assistants in the app settings.&lt;/p&gt;

&lt;p&gt;Findings in the app are sorted by estimated savings. The agent can do more, because it knows your context from the conversation. I asked Claude Code which three recommendations would give the biggest savings with the least work or risk. It queried CloudPouch seven times. The result is below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/gvyg98pmq98ov6aqovev.webp" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzkez3kqly7vhd6doczul.webp" alt="Claude Code answers based on CloudPouch data: three recommendations ranked by savings, effort, and risk." width="800" height="651"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;CloudPouch supplies the risk level and the metrics, for example a volume at 6,450 IOPS with a peak of 3 IOPS. The rest is the agent's work: it didn't double-count two alternatives for the same volume, it only inspected one of the ten NAT Gateways and says so openly, and it added partner allowlists and route tables to the pre-deletion checks. This is exactly the part of an audit I do sitting down with the team, after the list is generated.&lt;/p&gt;

&lt;p&gt;In May I wrote about how much time it took me to connect AWS MCP Server to Codex through an AWS profile. Here the assistant doesn't get your credentials at all. It only asks CloudPouch, and CloudPouch uses the profiles you already have. This built-in server is disabled by default, runs only on your computer, and never modifies your AWS resources.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to get started, step by step
&lt;/h2&gt;

&lt;p&gt;The app runs on your computer, on the AWS profiles you already have: keys from AWS CLI and SSO, and since 2.0 also aws-vault and aws login. Cost data is never sent to CloudPouch servers, and you don't install anything into your AWS account. From audits I know that the slowest step is often just letting someone into the account. Here you don't have to let anyone in.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/ihOb84PN048" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install the app: on macOS from the DMG file or with &lt;code&gt;brew install cloudpouch&lt;/code&gt;, on Windows from the EXE installer, on Linux from the AppImage. You need macOS 12 or newer, or Windows 10 or newer.&lt;/li&gt;
&lt;li&gt;On the login screen, choose Pro trial: you enter your email, accept the terms, type in the 6-digit code from the email, and the license key appears in the app automatically.&lt;/li&gt;
&lt;li&gt;Choose an AWS profile. Cmd/Ctrl + K opens the profile search.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Savings&lt;/strong&gt; (Cmd/Ctrl + S) and click &lt;strong&gt;Run Savings Scan&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Open the &lt;strong&gt;Opportunities&lt;/strong&gt; tab and click the top finding. You'll see the evidence and the recommended action.&lt;/li&gt;
&lt;li&gt;Enable the server in Settings (the &lt;strong&gt;MCP Server&lt;/strong&gt; section), then in the &lt;strong&gt;AI assistants&lt;/strong&gt; section choose your assistant and copy the ready-made configuration. For assistants that use a config file, the &lt;strong&gt;Open config file&lt;/strong&gt; button opens the right file, and you paste the entry yourself.&lt;/li&gt;
&lt;li&gt;Ask the agent your first question, for example the one from the previous section.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How much does it cost
&lt;/h2&gt;

&lt;p&gt;Pro trial gives you full Pro for 7 days, counted from registration, with no credit card, so you can check the list of findings with evidence and actions on your own account before you pay. After that, every scan you run is saved on your computer, separately for each profile, so after a cleanup you open the previous result and see whether the number really went down.&lt;/p&gt;

&lt;p&gt;The price is fixed per license and doesn't grow with your AWS bill (unlike most FinOps apps), and one license covers any number of AWS accounts (again, competitors usually charge per account). Free costs nothing, Pro is $39 per month or $399 per year. Need Pro for the whole team? Team starts at $87 per month for 3 people. Details in the &lt;a href="https://cloudpouch.dev/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=cp20-launch&amp;amp;utm_content=cennik#pricing" rel="noopener noreferrer"&gt;pricing on cloudpouch.dev&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Invitation
&lt;/h2&gt;

&lt;p&gt;If you want to run the first review of your account, the same one I start an audit with, download CloudPouch 2.0 for macOS, Windows, or Linux: &lt;a href="https://cloudpouch.dev/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=cp20-launch&amp;amp;utm_content=zaproszenie" rel="noopener noreferrer"&gt;cloudpouch.dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What was the weirdest thing you found in your AWS account that nobody remembered anymore? Let me know in the comments. I'm curious what the scan will find in yours.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>finops</category>
      <category>mcp</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
