AWS veröffentlicht freien lokalen Emulator, komplett von Agenten geschrieben
AWS Emulator ist eine kostenlose, unter CC0 stehende lokale Nachbildung von mehr als 200 AWS-Diensten auf Basis der öffentlichen API-Modelle, gedacht für Test-Schleifen von Coding-Agenten. Nach eigenen Angaben wurde der gesamte Code von Agenten geschrieben und gepflegt.

Ein bestehendes SDK, CLI oder Coding-Agent auf den Emulator zu richten, ist eine Frage von Umgebungsvariablen. Danach, so der Launch-Post von Daniel Abib, "funktionieren Ihre bestehenden Tests, CLI-Skripte und Coding-Agents weiterhin so, wie sie es bereits tun":
export AWS_ENDPOINT_URL=https://127.0.0.1:9297 export AWS_SHARED_CREDENTIALS_FILE=~/.aws/emulator/9297/emulator_credentials export AWS_CONFIG_FILE=~/.aws/emulator/9297/config export AWS_EC2_METADATA_DISABLED=true export AWS_REGION=us-east-1 unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_PROFILE Dieselbe Shell bedient einen Agenten. Im Post wird Kiro gebeten, eine DynamoDB-Tabelle zu erstellen und zurückzulesen; der Agent führt die gewöhnlichen CLI-Aufrufe gegen den lokalen Endpunkt aus:
kiro> Using the local AWS Emulator (the environment variables are already set in this shell), create a DynamoDB table "kiro-demo" with a string key "id", put an item {id: "item-1", msg: "hello from kiro"}, then read it back with get-item. $ aws dynamodb create-table --table-name kiro-demo \ --attribute-definitions AttributeName=id,AttributeType=S \ --key-schema AttributeName=id,KeyType=HASH \ --billing-mode PAY_PER_REQUEST $ aws dynamodb put-item --table-name kiro-demo \ --item '{"id": {"S": "item-1"}, "msg": {"S": "hello from kiro"}}' $ aws dynamodb get-item --table-name kiro-demo --key '{"id": {"S": "item-1"}}' Matt Wood, Chief AI and Technology Officer bei AWS, argumentiert, dass die Schleife wegen dessen entscheidend ist, was ein Agent während einer langsamen Prüfung tut: "Ein Coding-Agent kann eine Menge Software auf Basis einer falschen Annahme bauen." Er benennt auch den Fehlermodus, den ein Emulator einführt:
Ein Agent lernt aus der Umgebung, die er erlebt. Wenn der Emulator Verhalten akzeptiert, das AWS zurückweist, kann das Training einen Fehler verstärken. Ein Agent könnte außerdem eine Abkürzung entdecken, die nur wegen eines Emulator-Defekts funktioniert.
Die Fidelity-Scores existieren, um diese Lücke offenzulegen: Jedes Release veröffentlicht pro Service, wie viele Tests von der Gesamtzahl der gegen echtes AWS verifizierten Tests bestehen, wobei auch die fehlschlagenden Tests öffentlich sind. Abib bittet die Leser, "einen Score als Momentaufnahme eines Produkts zu lesen, das sich verbessert."
Senior Principal Engineer Matthew Goldberg führt das Projekt auf einen dreizeiligen Prompt an Kiro zurück, "den einfachsten Prompt, den ich mir vorstellen konnte, ohne jede Erwartung, dass das funktionieren würde":
Write tests based on the AWS Command Line Interface (CLI) Iterate on those tests until they pass against real AWS Build an in-memory implementation that those same tests pass against Kiro kam nach 15 Minuten mit einer brauchbaren ersten Version eines Amazon Simple Queue Service (Amazon SQS) zurück. Ich verfeinerte meinen Prompt und ließ Kiro übers Wochenende den Rest von AWS bauen. Und es tat das. Es hatte offensichtlich Lücken, aber es war überzeugend genug, dass mein Team an diesem Montag anfing, es zum Testen unserer Software zu nutzen.
Die Produktionsversion wird von drei Agenten-Teams gebaut: "Ein Team verwaltet eine Test-Suite; ein Team findet Fehler im Emulator; und ein Team behebt diese Fehler." Jeder Fix muss ein Gate durchlaufen, das die Änderung kompiliert und Agenten-Reviews für Coding-Standards, Sicherheit und Fidelity-Regressionen ausführt. "Unser Team hat keinen einzigen Code geschrieben oder rezensiert", schreibt Goldberg, und beschreibt, was das Gate beinhaltet:
Wenn eine dieser Prüfungen fehlschlägt, geht die Änderung zur Überarbeitung an den Agenten zurück; wenn alle bestehen, wird sie in die Mainline gemergt. Wir sehen täglich Tausende behobener Fehler, während hunderte Agenten gleichzeitig an der Codebasis arbeiten. Ohne dieses Merge-Gate würden wir dem, was unsere Agenten bauen, nicht vertrauen.
Swami Sivasubramanian erinnert sich in einem Gastbeitrag auf Werner Vogels' Blog daran, wie er mit Kiro eine Replikations-Engine neu baute, die sein Team zuvor in vier Monaten von Hand erstellt hatte:
Ich überwachte den Agenten vier Nächte lang, bevor ich sah, dass er keine Möglichkeit hatte, seine Ergebnisse zu prüfen. Sobald er eine Spezifikation und eine Testumgebung hatte, dauerte der Neuaufbau etwa zwei Stunden.
In seiner Darstellung wird die Aufgabe des Ingenieurs, "die Spezifikationen, Tests und Merge-Gates zu bauen, die entscheiden, wann diese Arbeit korrekt ist."
Die ersten Messungen von außerhalb von AWS stammen von Kento Ikeda, einem AWS Community Builder, der Version 1.0.322 am Tag nach dem Launch in GitHub Actions ausführte. DynamoDB, S3 und SQS bestanden auf Service-Ebene rund 60 bis 70 Prozent ihrer Fidelity-Tests und 80 bis 100 Prozent bei den Operationen, die sein Code aufrief, während CloudFormation bei etwa 20 Prozent lag. Der Emulator stimmte mit AWS' Fehlerformulierungen überein, aber eine neue DynamoDB-Tabelle blieb drei Sekunden im Zustand CREATING und wies bis dahin Schreibvorgänge zurück.
"Allein daraus generiert zu sein, dass die API-Modelle verwendet wurden, bedeutet nur, dass die Form von Requests und Responses zu AWS passt", schreibt er, und ordnet das Tool zwischen Mocks und einer echten Sandbox als dritte Schicht ein, nicht als Ersatz für eines von beiden.
Der Launch-Post zieht die härteste Grenze bei der Sicherheit:
Verwenden Sie den Emulator nicht, um zu prüfen, ob Ihre Anwendung sicher ist. Er bewertet AWS Identity and Access Management (IAM) Policies und ressourcenbasierte Policies nicht so, wie AWS es tut. Ein Request, den AWS ablehnt, könnte im Emulator erfolgreich sein. Halten Sie echte Credentials aus der Umgebung Ihrer Test-Jobs heraus und testen Sie Ihre Sicherheitseinstellungen und Ihre gesamte Anwendung auf AWS, bevor Sie in Produktion gehen.
Nicht implementierte Operationen geben HTTP 501 zurück, Telemetrie ist standardmäßig aktiviert, Throttling, Ausfälle und regionale Unterschiede werden nicht simuliert, und das Repository akzeptiert keine Pull Requests. Auf Hacker News zitierte ein Leser die Zeile auf der Sicherheitsseite, dass der Emulator "einen mit seinem eigenen Schlüssel signierten Request niemals ablehnt", und fragte, warum IAM ausgelassen wurde:
Ich denke, weil die Agenten nur auf der öffentlichen API-Oberfläche aufbauten, ist dieser Teil schwer zu bauen. Aber sie hätten es versuchen und die Agenten lesen lassen sollen, welche Policy-Engines AWS hat. Oder vielleicht ist es ein Weg, zu verhindern, dass jemand trivial aws-emulator als AWSaaS betreibt?
Die erste Frage im Thread war, ob es sich um "nur eine Übung oder ein echtes Produkt handelt, das sie ausliefern und pflegen werden", beantwortet von einem Kommentator, der sich als AWS-Mitarbeiter zu erkennen gab, mit "Es ist ein echtes Produkt, das wir pflegen wollen." Ein anderer zählte "29.684 Commits in einem Repository, das weniger als einen Monat alt ist", und sagte, das verleihe "kein Vertrauen". Auf r/aws nahm der am höchsten bewertete Kommentar Amazons eigene Aussage und nannte Agenten, die Code "ohne menschliches Review" reparieren, eine schreckliche Idee für ein Tool, das zum Testen vor der Produktion eingesetzt wird. Die Antwort war, dass die API-Spezifikationen bereits existieren und die SDKs daraus generiert werden, sodass ein Server, der aus einem festen Vertrag abgeleitet ist, genau der Ort ist, an dem Agenten iterieren können, bis die Tests bestehen.
Das Timing spielt für die Menschen in diesen Threads eine Rolle. LocalStacks kostenloser Hobby-Plan verlangt inzwischen ein Konto und untersagt kommerzielle Nutzung, mit bezahlten Sitzen ab 39 Dollar pro Monat, und mehrere Kommentatoren waren bereits zu Floci gewechselt. Einer von ihnen stellte das AWS-Release in diesen Kontext:
Aber nach LocalStacks Änderungen ist die Landschaft ohnehin voll von Slopware und geringem Vertrauen. Ich glaube nicht, dass das schlechter ist, zumindest im Moment.
AWS' Version kostet nichts und kann von beiden Projekten geforkt werden. Sivasubramanian sagt, AWS werde "im Dezember auf der re:Invent mehr über diese Arbeit teilen".
Finden Sie die Bugs, die Ihre Tests übersehen. Antithesis nutzt deterministische Simulation, um Tausende Fehler-Szenarien zu erkunden, und deckt schwer reproduzierbare Bugs auf, bevor sie die Produktion erreichen. So funktioniert es.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
Pointing an existing SDK, CLI, or coding agent at the emulator is a matter of environment variables, after which the launch post by Daniel Abib says, "your existing tests, CLI scripts, and coding agents keep working the way they already do":
export AWS_ENDPOINT_URL=https://127.0.0.1:9297 export AWS_SHARED_CREDENTIALS_FILE=~/.aws/emulator/9297/emulator_credentials export AWS_CONFIG_FILE=~/.aws/emulator/9297/config export AWS_EC2_METADATA_DISABLED=true export AWS_REGION=us-east-1 unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_PROFILE The same shell serves an agent. In the post, Kiro is asked to create and read back a DynamoDB table and issues the ordinary CLI calls against the local endpoint:
kiro> Using the local AWS Emulator (the environment variables are already set in this shell), create a DynamoDB table "kiro-demo" with a string key "id", put an item {id: "item-1", msg: "hello from kiro"}, then read it back with get-item. $ aws dynamodb create-table --table-name kiro-demo \ --attribute-definitions AttributeName=id,AttributeType=S \ --key-schema AttributeName=id,KeyType=HASH \ --billing-mode PAY_PER_REQUEST $ aws dynamodb put-item --table-name kiro-demo \ --item '{"id": {"S": "item-1"}, "msg": {"S": "hello from kiro"}}' $ aws dynamodb get-item --table-name kiro-demo --key '{"id": {"S": "item-1"}}' Matt Wood, AWS's chief AI and technology officer, argues that the loop matters because of what an agent does while a check is slow: "A coding agent can build a lot of software around an incorrect assumption." He also names the failure mode an emulator introduces:
An agent learns from the environment it experiences. If the emulator accepts behavior that AWS rejects, training can reinforce a mistake. An agent might also discover a shortcut that succeeds only because of an emulator defect.
The fidelity scores exist to expose that gap: each release publishes per service how many tests pass out of how many were verified against real AWS, with the failing tests public too, and Abib asks readers to "read a score as a snapshot of a product that's improving."
Senior principal engineer Matthew Goldberg traces the project to a three-line prompt given to Kiro, "the simplest prompt that I could think of without any expectation that this would work":
Write tests based on the AWS Command Line Interface (CLI) Iterate on those tests until they pass against real AWS Build an in-memory implementation that those same tests pass against Kiro came back after 15 minutes with a passable first version of an Amazon Simple Queue Service (Amazon SQS). I refined my prompt and had Kiro build me the rest of AWS over the weekend. And it did. It obviously had gaps, but it was compelling enough that my team started using it to test our software that Monday.
The production version is built by three agent teams: "One team manages a test suite; one team finds issues in the emulator; and one team fixes those issues." Each fix must pass a gate that compiles the change and runs agent reviews for coding standards, security, and fidelity regression. "Our team hasn't written or reviewed any of the code," Goldberg writes, and describes what the gate carries:
If any of those checks fail, the change is sent back to the agent for rework; if they all pass, it is merged to mainline. We've seen thousands of issues fixed every day as hundreds of agents concurrently work on the codebase. Without this merge gate, we wouldn't trust what our agents are building.
Swami Sivasubramanian, in a guest post on Werner Vogels' blog, recalls rebuilding a replication engine with Kiro that had taken his team four months by hand:
I supervised the agent for four nights before I saw that it had no way to check its results. Once it had a spec and a test environment, the rebuild took about two hours
In his telling, the engineer's job becomes "to build the specs, tests, and merge gates that decide when that work is correct."
The first measurements from outside AWS come from Kento Ikeda, an AWS Community Builder, who ran version 1.0.322 in GitHub Actions the day after launch. DynamoDB, S3 and SQS passed roughly 60 to 70 percent of their fidelity tests at service level and 80 to 100 percent on the operations its code called, while CloudFormation sat near 20 percent. The emulator matched AWS's error wording, but a new DynamoDB table stayed in CREATING for three seconds and rejected writes until then. "Being generated from API models only means the shape of requests and responses matches AWS," he writes, and places the tool between mocks and a real sandbox as a third layer rather than a replacement for either.
The launch post draws its hardest line at security:
Don't use the emulator to test whether your application is secure. It doesn't evaluate AWS Identity and Access Management (IAM) policies and resource-based policies the way AWS does, so a request that AWS denies might succeed in the emulator. Keep real credentials out of the environment of your test jobs, and test your security settings and your whole application on AWS before you go to production.
Unimplemented operations return HTTP 501, telemetry is on by default, throttling, outages and regional differences are not simulated, and the repository does not accept pull requests. On Hacker News, one reader quoted the line on the security page that the emulator "never denies a request signed with its own key" and asked why IAM was left out:
I think because the agents were only building on the public API surface, it's hard to build this part. But they should've tried and let the agents read whatever policy engines AWS has. Or maybe it's a way to prevent someone from trivially running aws-emulator as AWSaaS?
The thread's first question was whether this was "just an exercise or a real product they are going to ship and maintain," answered by a commenter identifying as AWS staff with "It's a real product that we plan to maintain." Another counted "29,684 commits in a repository less than a month old" and said it "does not instill confidence." On r/aws, the most-upvoted comment turned Amazon's own line around, calling agents that fix code "without human review" a terrible idea for a tool used to test before production. The reply was that the API specifications already exist and the SDKs are generated from them, so a server derived from a fixed contract is where agents can iterate until the tests pass.
The timing matters to the people in those threads. LocalStack's free Hobby plan now requires an account and prohibits commercial use, with paid seats from $39 a month, and several commenters had already moved to Floci. One of them put the AWS release in that context:
But in the wake of Localstack's changes, the landscape has been full of slopware and low trust anyway. I don't think this is worse, for now at least.
AWS's version costs nothing and can be forked by either project. Sivasubramanian says AWS "will share more about this work at re:Invent " in December.
Find the bugs your tests miss. Antithesis uses deterministic simulation to explore thousands of failure scenarios, uncovering hard-to-reproduce bugs before they reach production. See how it works.