AWS 终于自己造了个 AWS 模拟器:200 多个服务、29684 次提交、全部由 agent 写成 — HN 讨论摘要
来源:HN 讨论主帖 AWS Finally Built Its Own AWS Emulator(470 分,124 条评论),同话题关联帖 AWS Emulator and the engineer’s job when agents write the code(107 分,13 条评论)。本篇为 cluster 模式。归档快照 2026-11-11 21:46 UTC,主帖入库 100 条评论、关联帖入库 13 条。引文保留 HN 原文的 HTML 实体,逐条与归档评论比对。
原文概要
AWS Emulator 是 AWS 官方在 2026 年 11 月 11 日放出来的本地 AWS 模拟器,代码在 github.com/aws/aws-emulator。README 写得很克制:它是一个在本地提供 AWS API 端点的小程序,把 AWS CLI 或 SDK 的 endpoint 指过去,请求就打到模拟器而不是 AWS,不需要 AWS 账号,没有额外服务费,部署到 AWS 上才付钱。两种用法:server 模式在 127.0.0.1:9297 上跑 HTTPS,用的是自签证书;embedded 模式把它当作 Rust 的 dev-dependency 编译进测试二进制,一个测试一个隔离实例,没有 endpoint、没有证书、没有环境变量要设。许可证是 CC0-1.0(公共领域),只有 vendor/ 目录例外,是 Apache 2.0。仓库不收 PR,只在 issues 里记问题。
真正抓眼球的数字在仓库规模上。README 说从源码构建需要至少 100 GB 空闲磁盘放 target/,因为 workspace 是「一个 AWS 服务一个 crate」,还要 Rust 工具链、C 编译器、多核机器,冷构建会编译每一个服务 crate。评论区有人 checkout 后量了一遍:du --apparent-size 显示 2.2G,其中 .git 占 1.3G;Rust 代码在 /tests/ 目录里 311 MiB,目录外 357 MiB,JSON 117 MiB。提交数是 29,684,GitHub 的 code frequency 页面直接罢工:「There are too many commits to generate this graph.」最早一次提交是两周前。issues/ 目录被拆成两半:things-that-do-not-work 收「还没和真实 AWS 对上」的行为差异,things-that-now-work 收「后来修好了」的。
provenance 是这个项目最反直觉的部分。Amazon 官方博客开门第一句就是:上千个自主 AI agent 写完了 AWS Emulator 的每一行代码。AWS CTO Werner Vogels 在 allthingsdistributed 上写客串文章讲这件事的来龙去脉:提出假设的是 AWS Developer Tools 的 Senior Principal Engineer Matt Goldberg——只要给出「服务应该怎么表现」的书面描述和真实服务本身,agent 就能自己造出一个能用的实现。对 AWS 来说,书面描述就是公开的 Smithy API 模型,真实服务就是 AWS 云自己。agent 从 fidelity test 出发:这类测试是从公开 API 模型推导出的端到端客户场景,比如 SQS 上一条消息在 visibility timeout 到期前对其他读者不可见;agent 先把测试改到能在真实 AWS 上通过,测试就此记录下 AWS 的真实行为,然后 agent 再写模拟器直到同一批测试通过,仍然失败的测试就直接指向模拟器的缺口。Goldberg 最初只做 SQS,一个 prompt 交给 Kiro,约 15 分钟就拿到一个能用的 SQS 模拟器。最终产物覆盖 400 多个 API 模型、200 多个 AWS 服务,所有代码和测试都由 agent 写并测,每次改动都要过 merge gate——一整套自动化检查,外加几个专门做对抗性安全审查的 agent。
Vogels 的客串文章还有一条老线。2004 年,他让当时还在阿姆斯特丹大学读博的 Swaminathan Sivasubramanian(Swami)去研究 Amazon 内部关系型数据库到底怎么用的,结论是 70% 的数据库操作根本不是关系型的——那是 Dynamo 的起点。Swami 后来写了客串文章,讲更早的内部服务 Alf:基于 Paxos 的分布式锁服务,用一个 JVM 里的模拟环境加丢包注入和 TLA+ 形式化推理来测并发。Alf 至今仍是 S3、DynamoDB 这些服务底下的真值存储(不对外提供)。而现在 AWS 有 200 多个服务,手工搭测试环境要好几年,agent 写代码的速度又远超人工检查的速度——于是问题变成了:agent 能不能自己造出这些测试环境。
README 里还有一段不太起眼但很实在的东西:遥测默认开启,会上报给 AWS。官方说法是只做数据最小化、不含请求响应内容、不含代码和凭据、不与第三方共享,但确实默认开着。四种关法:命令行 --telemetry off、环境变量 EMULATOR_TELEMETRY=off、配置文件 ~/.aws/emulator/config.toml 里写 [telemetry] enabled = false、embedded 模式下传 Telemetry::Off。README 末尾还留了一句给工具作者的话:如果你把模拟器打包进自己的工具发布出去,记得告诉用户有遥测,并且给他们关掉的办法。
讨论焦点
一、先说题外:这个标题是编辑过的
主帖标题「AWS Finally Built Its Own AWS Emulator」带着明显的编辑痕迹,评论区有人立刻按规则投诉:
“No idea why there's so much of this lately, but there are way too many editorialized submission titles hitting the front page recently. Please stop doing this.” — cxr [c:50457103] (译文:我也不知道最近为什么这么多这种事,但最近首页上编辑过的投稿标题实在太多了。请停下来。)
akerl_ 搬出了规则条文,tptacek 则给出他觉得中性的写法:
“Because the rules say not to editorialize post titles” — akerl_ [c:50458994] (译文:因为规则里写着不许编辑投稿标题。)
“The title for this story should be "aws-emulator, from AWS".” — tptacek [c:50456820] (译文:这篇故事标题应该叫「aws-emulator,出自 AWS」。)
mh- 顺带把更大的问题也点了出来——被顶起来的违规评论越来越多:
“Almost every large thread has upvoted comments that violate the comment guidelines, now, too. In both cases, not enough people flagging them, I guess.” — mh- [c:50457246] (译文:现在几乎每个大帖子里都有违反评论规范的评论被顶起来。这两种情况都是因为顶的人不够多,我猜。)
二、真产品,还是一次企业内容实验
这是整场讨论的主线。最早的怀疑来自 CharlieDigital,他连替代方案都摆出来了:
“Skeptical of using because it's not clear whether this was just an exercise or a real product they are going to ship and maintain.<p>Floci[0] has been great for me. Use the Testcontainers[1], too.<p>Bonus: works for GCP and Azure, too (so far have only used in limited capacity, though).” — CharlieDigital [c:50456723] (译文:我之所以犹豫用它,是因为不清楚这究竟只是一次练习,还是一个他们真打算发布并长期维护的产品。Floci 我一直用着挺好,Testcontainers 也该用。加分项:GCP 和 Azure 也能用(不过我目前只在有限场景下用过)。)
dogleash 的回复更硬:口头承诺一文不值。
“Nothing personal, but unless you can link us to a public announcement made by Amazon, your statement is worth less than nothing.<p>Official statements made by a company are still poor representations of their current business plans, and don't mean anything 3 months later (no matter how much they pinky promise). But a HN post isn't even that.” — dogleash [c:50456969] (译文:不是针对个人,但除非你能给我们一个 Amazon 的公开公告链接,你这句话一文不值。公司给的官方声明本身也只是其当前业务计划的拙劣代表,三个月后再看毫无意义(不管他们怎么小指勾着承诺)。而一条 HN 评论连这都不如。)
AWS 内部的人亲自下场回应。ID 为 ke4qqq 的这位给了两句最实的话:
“It’s a real product that we plan to maintain.” — ke4qqq [c:50456780] (译文:这是我们计划长期维护的真产品。)
“Additionally Swami, our SVP of AI blogged about it separately and our CTO is tweeting about it - which is more than a number of products get in terms of coverage.” — ke4qqq [c:50457140] (译文:另外,我们的 AI 业务 SVP Swami 单独写了博客,我们的 CTO 也在发推——就曝光度而言,这比很多产品都多。)
但同一批人并不买账,toomuchtodo 的反问是整场讨论最锋利的一句:
“Show me the contract, show me the penalties for failure to abide by the assertion.” — toomuchtodo [c:50456983] (译文:把合同拿给我看,把不履行这个承诺的违约金拿给我看。)
质疑「是不是玩具项目」的一派,核心论据不是 AWS 的历史,而是那份官方博客本身只讲流程不讲维护:
“GP statement still stands, actually being strengthened. This blog post doesn't even mention nor seems to care about maintainability or long-term support or anything that users will care about. Only talks about how cool the team is and how amazing they're at using AI, multi-agent workflows, and this kind of bs. It's funny how author talks so much about testing when they themselves also boast how they haven't written or reviewed any of the code.” — forgotpwd16 [c:50457211] (译文:GP 那句话仍然成立,而且更强了。这篇博客压根没提、看起来也不在乎可维护性、长期支持,或者用户真正在意的任何东西。它只谈这个团队有多酷、多会玩 AI 和多 agent 工作流之类的屁话。作者嘴上一直谈测试,同时又吹嘘自己没写过、没审过这些代码,挺好笑的。)
另一种怀疑来自「这是不是内部冲 KPI 的产物」:
“Will it be maintained? Or was it more of a toy-project for its large scale agentic blogpost?” — ggcr [c:50457290] (译文:它会被维护吗?还是说它只是为了那篇大型 agent 博客帖而做的玩具项目?)
被追问的人补了一条时间线上的信息——仓库虽然年轻,内部的努力已经做了很久:
“Disclosure: I work for Amazon. I'm not directly involved in building this product, but I'm familiar with the product and its development.” — msw [c:50458268] (译文:披露一下:我在 Amazon 工作。我没有直接参与这个产品的构建,但我了解这个产品及其开发过程。产品文档在这里:……GitHub 项目虽然年轻,但内部为此付出的努力已经进行了相当长时间。)
反过来,AWS 老兵普遍表态 AWS 不像 Google:Google 的失败模式是养大一个产品然后抛弃,AWS 的失败模式是把一堆产品扔到墙上、但只认真维护少数几个。
“AWS isn’t Google. They tend to maintain everything they put out and they don’t put out things randomly as a result.” — ttul [c:50458598] (译文:AWS 不是 Google。他们的习惯是把自己放出来的东西都维护好,不会随随便便就往外扔东西。)
“The two have different failure modes.<p>Google builds up a product over time and abandons it. This is annoying for long term adopters.<p>AWS has a habit of throwing a bunch of products at the wall, but only bothering to maintain & build up a few of them. This is annoying for early adopters.” — jghn [c:50457349] (译文:两家的失败模式不一样。Google 会把一个产品养大然后放弃,这对长期采用者很烦。AWS 的习惯是把一堆产品往墙上一扔,但只肯认真维护和打磨其中少数几个,这对早期采用者很烦。)
反对「AWS 出了名的会弃坑」的人也不在少数,其中一位的履历很硬——他把 QLDB 当金融系统的 WORM 审计日志用过,还带过用 Cloud9 的 AWS 课程:
“As someone who used QLDB as a WORM audited log for a financial system, and ran AWS classes that used Cloud9, they do depricate.<p>Not many, and not often but it is annoying.” — happymellon [c:50458737] (译文:作为一个把 QLDB 当金融系统 WORM 审计日志用过、还带过用 Cloud9 的 AWS 课程的人,我确认他们确实会弃坑。不多,也不常,但很烦。)
真正站 AWS 一边的,是内部员工和重度用户。morelandjs 的理由是 agentic 开发本来就逼着你要有一套能模拟外部依赖的东西:
“Fellow Amazonian here. Want to say that I’m grateful you built this and it has tremendous value if pulled off well and properly maintained.<p>Agentic development is all about closing off a system as much possible, then mocking up or simulating any inputs or dependencies that cannot be closed off. At that point, you let Claude crawl over the system and do its thing.<p>This inevitably runs into problems with infrastructure and any tools that help mock up those interfaces will be tremendously valuable. Thank you!” — morelandjs [c:50457202] (译文:我也是 Amazon 员工。想说的是:谢谢你们做这个,如果做扎实并好好维护,它的价值极大。Agentic 开发的本质就是尽可能把系统封闭起来,把没法封闭的输入和依赖 mock 或模拟出来,到这一步你就让 Claude 在系统上爬来爬去。这必然会撞上基础设施的问题,而任何能帮把这些接口 mock 出来的工具都会极有价值。谢谢!)
最后的分歧落到了「打磨」上。CharlieDigital 的批评非常具体:GitHub 仓库连 website 字段都没填,博客只讲过程不讲产品,读起来像科学实验。
“No docs site linked on the GH. 3 weeks old.” — CharlieDigital [c:50457852] (译文:GitHub 上没链文档站。才三周大。)
“Feels more like a science experiment than a product from that announcement.” — CharlieDigital [c:50457852] (译文:比起一个产品,那篇公告更像是场科学实验。)
“There's a right way and a wrong way to assign a website URL in GH.<p>The team didn't even take the time to review these small details of the repo, you know, by editing the repository details to place the docs URL there.” — CharlieDigital [c:50458005] (译文:给 GitHub 仓库填 website URL 有正确做法和错误做法。这个团队连花点时间过一遍仓库这类小细节都没做——你知道,就是去改仓库设置,把文档地址放上去。)
simgoh 的反驳核心是「漂亮不等于好用」:
“No and I think the inverse is also possible and if anything more likely. You can make a website look really pretty, really easily and have the product still suck. This is "product as a slide" in a new age where making visual eye candy with AI has never been easier.” — simgoh [c:50458977] (译文:不,而且我认为反过来同样成立,甚至更可能。你很容易就能把网站做得很好看,产品却依然很烂。在这个用 AI 做视觉糖水从来没这么容易过的年代,这就是「产品即幻灯片」。)
CharlieDigital 之所以拿打磨当尺子,源于他对 AWS 自己的另一件产品有怨气:
“Amazon team killed the Copilot CLI[0] which I thought was the single best thing they ever did for AWS infra. Made it tolerable to deploy on AWS; still salty about this one.” — CharlieDigital [c:50457816] (译文:Amazon 团队把 Copilot CLI 砍了,那本来是他们为 AWS 基础设施做过的最好的一件事。它让往 AWS 上部署变得可忍受;对这件事我到现在还耿耿于怀。)
而 AWS 内部的另一条务实提醒是:光有模拟器没用,还得让各个服务团队真的接进来。jcims 拿五年前 AWS Config 的推广做类比:
“Yeah whatever they did internally to get service teams to actually adopt AWS Config ~5 years ago needs to happen here or it’s going to get stuck with marquee services and that’s it. Especially given this is a much much larger ask of each service.” — jcims [c:50457820] (译文:对,他们五年前为了让服务团队真正用起 AWS Config 而在内部做的那一套,在这里也得重演一遍,否则这东西就会卡在几个招牌服务上、仅此而已。尤其考虑到这次对每个服务的要求要大得多。)
三、这是 AI slop 吗
第二个大主题是「这堆代码到底是谁写的」。Amazon 那篇博客给了最直接的答案:上千个 agent 写的每一行。paavohtl 从代码痕迹里反推模型:
“Looks like this was ~100% generated with Claude within the past month. Interestingly it still has a lot of occurrences of words that Opus used way too much pre 5.5, so maybe they're not using the latest models.” — paavohtl [c:50457154] (译文:这看起来百分之百是过去一个月里用 Claude 生成的。有意思的是,代码里仍然大量出现 Opus 在 5.5 之前用得太多的那些词,所以他们大概没用最新的模型。)
数字上的冲击来自提交量。有人怀疑这是刷 token 冲绩效,还顺带提了 Amazon 两周前刚发过一份劝阻滥用 AI 的备忘录:
“~30K commits in 3w; quality software for sure. Is someone trying to get promotion by tokenmaxxing? Ironic or unlucky coincidence or competitor(s) misdirection, that, only 2w ago, Amazon published memo discouraging AI abuse?” — forgotpwd16 [c:50457091] (译文:三周约 3 万次提交;软件质量那肯定是有的。是不是有人在靠刷 token 冲晋升?讽刺的是,也可能是不巧,或者是竞争对手在带节奏——就在两周前,Amazon 还发过一份劝阻滥用 AI 的备忘录。)
“Repo has 29,684 Commits!<p>Code frequency pages shows:<p>"There are too many commits to generate this graph.” — heliosAtwork [c:50458466] (译文:这个仓库有 29,684 次提交!代码频率页面显示:「提交次数太多,无法生成此图。」)
“First commit two weeks ago. Insane number of commits, even for AI agents. They must be using large fleet of agents.” — stanac [c:50458552] (译文:第一次提交是两周前。提交数多得离谱,就算对 AI agent 来说也离谱。他们肯定用了一支庞大的 agent 舰队。)
singron 把仓库 checkout 下来量了一遍,问题从「质量」转向「方法论是否经济」:
“curious how many versions they made and the token spend on each one. There are a lot of failure modes to projects like these (e.g. gas town endlessly developing itself). Is this more of a sly marketing stunt or a real indication that this methodology is practical and economical?” — singron [c:50458414] (译文:好奇他们做了多少个版本、每个版本烧了多少 token。这类项目有很多种失败模式(比如「gas town 无限地自我开发」)。这是更狡猾的营销噱头,还是这套方法论确实可行且经济的真实证据?)
“311 MiB of rust code in /tests/ directories. 357 MiB of rust code outside of /tests/ directories. 117 MiB of json. 1 MiB of toml.” — singron [c:50458414] (译文:Rust 代码在
/tests/目录里有 311 MiB,在/tests/目录外有 357 MiB。JSON 117 MiB,toml 1 MiB。)
但把 AI 批量生产当成 slop 本身,也有人明确反对。NewsaHacko 的判断是,这恰好是 vibe coding 最擅长的地形:
“To me, something like this is actually what vibe coding thrives the best at; tight, looped, easily verifiable, test-driven dev work. In fact, this is probably the field it can do with little or no intervention, if you're willing to waste tokens.” — NewsaHackO [c:50458006] (译文:对我来说,这样的东西恰恰是 vibe coding 最擅长的领域:闭环紧密、容易验证、测试驱动的工作。事实上,这大概就是它几乎不需要人干预就能做好的领域——只要你愿意浪费 token。)
Eridrus 的提问才是要害:模拟器的准确性由谁担保。
“I think one thing that concerns many people is that this looks like AI slop, which it clearly is according to the blog post.<p>I think this is a super interesting direction, but how can we trust the accuracy of this simulator? Agentic loops are great and all, but they can still miss plenty of things.<p>Or maybe a better question: where is the accuracy of this simulator going to be guaranteed enough that we should trust it?” — Eridrus [c:50457884] (译文:我认为很多人担心的一点是:这看起来就是 AI 垃圾代码,而按博客自己的说法确实如此。我觉得这个方向非常有意思,但我们凭什么相信这个模拟器的准确性?Agent 闭环当然很好,但它们照样会漏掉很多东西。或者换个更好的问题:这份准确性要到什么程度,我们才应该信任它?)
关联帖里那条「谁维护」的预言,被人接成了最狠的一句:
“The entire AWS emulator was written by agents and will be maintained by agents.” — s_dev [c:50457603] [thread 2] (译文:整个 AWS 模拟器是 agent 写的,将来也会由 agent 维护。)
而对照那两千多个 issue 目录,hbcdbff 一眼认出了 slop 的痕迹:
“its “things-that-do-not-work” folder holds the issues describing behaviors the agents found that do not yet match real AWS.<p>Claudeslop snuck in at the very end” — hbcdbff [c:50457261] [thread 2] (译文:它的「things-that-do-not-work」文件夹里放的,就是 agent 发现的那些行为还和真实 AWS 对不上的 issue。<p>Claude 味在最后一段露了马脚。)
pavel_lishin 数了 issue 数量,并且对这份清单的用途提出质疑:
“~6,500 issues that are completely unsorted, btw.<p>(Compared to 12,700 entries in the
things-that-now-work. I'm not sure if that is a list of bugs found that were then fixed, or if the total list of ~20k things is meant to be the list of features they intend to support.)” — pavel_lishin [c:50457304] [thread 2] (译文:顺便说一句,那约 6,500 条 issue 完全没排序。(相比之下things-that-now-work有 12,700 条。我不太确定这到底是一份「被发现然后被修掉的 bug 列表」,还是说这两万来条东西的合集本来就是他们打算支持的功能清单。))
还有两种更冷的解读:要么这工具是给 LLM 训练用的,要么它反而比别家更靠谱,因为 Amazon 往里喂了内部信息。
“I guess they didn't decide this was worth it till they needed it to train an LLM, huh? Not like everyone (inside and outside of AWS) has needed such a test harness for years…” — swiftcoder [c:50457090] (译文:我猜他们是直到需要它来训练 LLM 才觉得这事值得做?好像不是所有人(AWS 内外的人)都需要这种测试环境很多年了吗……)
“Which is why they used AI to mock these APIs for you… too? I'd expect Amazon to feed it a lot of internal information so it has more to work with than anything someone else can cook up.” — Cthulhu_ [c:50457064] (译文:所以他们才用 AI 来替你把这些 API 也 mock 出来?我猜 Amazon 会往里喂大量内部信息,让它的素材比任何人自己做的都多。)
四、模拟得像不像:保真度才是真问题
第三批讨论最技术,也最有信息量。先是找不到兼容度矩阵的抱怨:
“Is there anywhere I can find a matrix of what services are emulated and how complete that emulation is? I tried the docs but just ended up going round in circles.” — sequence7 [c:50457588] (译文:哪里能找到一份矩阵,列出哪些服务被模拟了、模拟得有多完整?我翻了文档,最后只在原地打转。)
tyingq 指了路:每个 release 都发一份 scores.json。随后他用 AI 把 release 里的分数和评估套件的清单对起来,算出了一张表——这是全篇最有价值的数据。
“Sort of. The releases page leads you to a massive blob of json with all the compatibility tests and scores.” — tyingq [c:50457973] (译文:差不多。releases 页面会引出一大坨 JSON,里面是全部兼容性测试和分数。)
“Pass rates from the release's scores.json (commit 7753983), joined with the eval suite's manifest.jsonl. Tests = behavioral checks touching the service. All = overall pass rate.” — tyingq [c:50458390] (译文:数据来自该 release 的 scores.json(commit 7753983),与评估套件的 manifest.jsonl 关联。Tests = 涉及该服务的行为检查数。All = 总体通过率。)
| 服务 | 行为测试数 | 总体通过率 | 录制的请求/响应回放测试通过率 |
|---|---|---|---|
| Data Firehose | 288 | 77% | 24 条 / 62% |
| EventBridge | 889 | 71% | 75 条 / 84% |
| DynamoDB | 1437 | 69% | 243 条 / 62% |
| SQS | 1480 | 68% | 29 条 / 45% |
| S3 | 2488 | 62% | 296 条 / 68% |
| Lambda | 2808 | 53% | 171 条 / 42% |
| EC2 | 2043 | 40% | 429 条 / 33% |
| CloudFormation | 2019 | 36% | 2161 条 / 3% |
| AppSync | 419 | 34% | 91 条 / 13% |
| SSM | 566 | 28% | 175 条 / 11% |
| Athena | 420 | 22% | 37 条 / 0% |
| EC2 Auto Scaling | 440 | 21% | 89 条 / 16% |
这张表把讨论从「AI 写的代码能不能用」拉回到「它到底模拟了什么」。读法很清楚:DynamoDB、SQS、S3 这类数据面服务像样,CloudFormation、Athena、EC2 Auto Scaling 这类控制面或边缘场景基本不能用;2161 条录制的请求/响应回放测试里 CloudFormation 只过了 3%,说明「能调通」和「行为一致」完全是两回事。
jasonseattle 提出的结构性隐患是:谁来跟踪 AWS 自己 API 的变化。
“If its up to this emulator to keep track of changes in Services APIs this is doomed to fail.” — jasonseattle [c:50457704] (译文:如果要靠这个模拟器自己去跟踪各个服务 API 的变化,那它注定要失败。)
jbmchuck 指出了它可能的优势来源——AWS 内部本来就有一份权威的服务 API 规格:
“I believe AWS already autogenerates their API clients (e.g. boto3) based on some authoritative internal service api spec so I imagine that spec could be used upstream of this tool as well.” — jbmchuck [c:50457794] (译文:我相信 AWS 早就是基于某份权威的内部服务 API 规格自动生成客户端的(比如 boto3),所以我猜那份规格同样能被这个工具上游拿来用。)
OptionOfT 则指出了规格本身的缺口——文档里用散文写的约束,没进 schema,于是 Rust 客户端里全是 Option:
“But their auto generated API clients don't have the invariant baked into them, which makes them very rough to use in say Rust.” — OptionOfT [c:50458317] (译文:但他们自动生成的 API 客户端并没有把这些不变量写进去,所以拿来在 Rust 里用就特别难用。)
“So your Rust API is full of Option, and it gets really annoying when you're testing things like say Bedrock, which takes 10 minutes, and then fails because what you submitted 10 minutes before doesn't match their schema.” — OptionOfT [c:50458317] (译文:所以你的 Rust API 里全是
Option,而测试起来非常烦——比如测 Bedrock,要跑 10 分钟,然后失败,因为你 10 分钟前提交的东西不符合他们的 schema。)
billyp-rva 直接上手摸了产品,观察到实现里走了捷径:
“It seems like some reasonable shortcuts are taken, like services reading from each other's states directly instead of using APIs [0]. But then it will go so far as to run an in-process NodeJS emulator for lambda functions, and give it a shim so the code it runs can call other emulated AWS services using the main router [1].” — billyp-rva [c:50457895] (译文:看起来他们取了一些合理的捷径,比如服务之间直接读彼此的状态而不走 API。但它又会走到更远:在进程内跑一个 NodeJS 版 Lambda 模拟器,再给它一个 shim,让它跑的代码可以通过主 router 调用其他被模拟的 AWS 服务。)
Waterluvian 关心的则是能不能拿它跑 CDK 这类基础设施编排:
“If I understand this correctly, it means I can point my entire CDK project to the emulator and test a
cdk deploy?” — Waterluvian [c:50457408] (译文:如果我理解得没错,这意味着我可以把整个 CDK 项目指向模拟器,测一次cdk deploy?)
而对边缘情况的现实预期,cherioo 说得很平实:
“For real edge cases, it will be like any other software. Users get to be the guinea pigs and report bugs as they find them.<p>Hopefully AWS has had enough internal guinea pigs before they published this!” — cherioo [c:50458592] (译文:碰到真正的边缘情况,它会和任何其他软件一样:用户当小白鼠,遇到 bug 就报。希望 AWS 在发布之前已经有足够多的内部小白鼠了!)
至于「AWS 会不会弃坑」这个老问题,在这一节里被换了个问法。jasonseattle 用 Azure 的历史做了对照,结论是 GA 之后云厂商就有公开承诺了:
“I think there was some truth in this in the early days of Azure (and all clouds) as the companies were looking to work out what cloud services were really needed. I don't see this as much any more though esp when a services makes it to GA they have published commitments for service availability and API compatibility. (I was in Azure for 10+ years so definitely let me know if you disagree)” — jasonseattle [c:50457759] (译文:我觉得在 Azure(以及所有云)早期这话有一定道理,因为那时公司还在摸索到底需要哪些云服务。但现在我不这么看了,尤其是当一个服务做到 GA 之后,他们已经就服务可用性和 API 兼容性公开发布过承诺。(我在 Azure 待了 10 多年,如果你不同意请务必告诉我。))
五、替代品:Localstack、Floci、fakecloud 与别家云
第四个主题是它要挤掉谁。Localstack 的定价变化是这波讨论的催化剂:
“Localstack is no longer free and if you’re using it commercially you need to pay for a license. The free plan explicitly states that it is non commercial.” — sequence7 [c:50457548] (译文:Localstack 不再免费了,商业使用需要买 license。免费版明确写了不能商用。)
“Localstack is almost entirely free. I’ve used it at our company for years without paying.” — aabhay [c:50457175] (译文:Localstack 基本一直是免费的。我在公司用了好几年都没付过钱。)
switchbak 则点名了 Floci 的问题——他自己的替代方案是 Testcontainers,而且对新项目宁愿信任 AWS 的:
“In my experience Floci has been the epitome of vibe coded - huge amount of changes, with things breaking randomly between releases. Moved away from it as soon as I could. Still better than Localstack :)<p>I didn't have a good experience with test containers, but perhaps it'd work better with fast starting containers. We run our test fixture with compose, and have the tests manage their data in isolation - so we don't pay the startup penalty in our test suites.<p>I think I'd trust this project at least as much as Floci. Embedded Rust mode also looks very interesting for us.” — switchbak [c:50457253] (译文:以我的经验,Floci 是 vibe coding 的典型——改动巨多,版本之间随机坏掉。我一有可能就离开它了,不过它还是比 Localstack 强 :) 我用 Testcontainers 的体验也不好,但如果启动够快可能就好了。我们用 compose 跑测试夹具,让测试自己隔离管理数据,这样测试套件里就不承担启动开销。我想我至少会跟信任 Floci 一样信任这个项目。embedded 的 Rust 模式对我们也很有意思。)
老牌替代品还包括 fakecloud,只是许可证不同:
“has been a thing for a long time and it's AGPLv3.” — schonfinkel [c:50458276] (译文:已经存在很久了,而且它是 AGPLv3。)
而在云厂商这一侧,关联帖里有人提出了真正的新东西在哪:
“im mostly on cloudflare and wrangler dev/miniflare already gives you local workers, d1, r2 etc, but its hand built. the “agents build it and verify against the real service” approach seems like the actual new thing here. wonder if cf does something similar” — yevmiyeci [c:50457680] [thread 2] (译文:我主要在 Cloudflare 上,wrangler dev/miniflare 已经能给我本地的 worker、D1、R2 之类的东西,只不过是手工写的。「agent 造出来再拿真实服务验证」这个做法,看起来才是这里真正的新东西。不知道 CF 有没有类似的东西。)
至于「这工具来晚了多少年」,tonymet 的说法最直白:
“A mere 20 years too late. Now it’s faster to have AI mock your APIs for you. AI has been a boon for test coverage.” — tonymet [c:50456857] (译文:不过是迟到了 20 年而已。现在让 AI 替你 mock API 比什么都快。AI 对测试覆盖率来说是个福音。)
还有一个悬着的需求:图形界面和真正的容器。
“ok who's gonna build the GUI” — BorisMelnik [c:50456934] (译文:那谁来给这个做图形界面?)
“Any chance it will be able to spawn actual containers in the future?” — selfmodruntime [c:50459083] (译文:以后有没有可能让它真的拉起容器?)
六、工程师的新岗位
关联帖里那条客串文章最后一句,把讨论推向了职业层面:agent 写代码并且自己检查的时候,工程师的活儿变成了「给它们空间,并写好规范、测试和合并门禁」。4ndrewl 立刻反问:这些活儿几十年来都是更便宜的非工程师在做。
“I mean that's a job, but in many orgs it's been done by (cheaper) non-engineers (business analysts, QA professionals) for decades. So what does an engineer do?” — 4ndrewl [c:50458220] [thread 2] (译文:我意思是这确实是一份工作,但在很多组织里,几十年来干这活的一直是(更便宜的)非工程师(业务分析师、QA 专业人士)。那工程师还做什么?)
geraneum 的反驳是:QA 只是整个流程里的一个环节,光靠便宜的人判断不了查询计划、支付网关、鉴权、缓存策略这类东西对不对。
“We haven’t. QA has been part of the process but only one stage of the process mentioned above. How do cheaper non engineers decide if you’ve designed and implemented your query planner, payments gateway, auth, caching strategy, or other similar features correctly?” — geraneum [c:50458531] [thread 2] (译文:我们没有。QA 是流程的一部分,但只是上面提到的那个流程里的一个阶段。更便宜的非工程师要怎么判断你设计的查询计划、支付网关、鉴权、缓存策略之类的东西实现得对不对?)
4ndrewl 的回应很短,但把责任问题推到了终点:
“That's just implementation detail - no engineer is going to be checking the agent's code for all this.” — 4ndrewl [c:50458616] [thread 2] (译文:那只是实现细节——没哪个工程师会去检查 agent 写的这些代码。)
CSSer 顺着这条线给出了最悲观的推论:
“It seems accountability is dead. No wonder it's impossible to get a job or hire for one. Once you're inside some of them, you must be nigh invincible.” — CSSer [c:50459105] [thread 2] (译文:看起来责任制已经死了。难怪现在连找工作、招人都这么难。你一旦进了其中某家,就必须几乎无法被挑毛病。)
jaggederest 提供了另一种思路——把生产流量复制到沙箱里做差分测试,这才是他做了十几年的事:
“This is what I've been trying to do for over a decade - you can go even further with tee-testing by making a copy of the live traffic you run in a sandbox environment and match responses against.” — jaggederest [c:50458316] [thread 2] (译文:这正是我十几年来想做的事——你还可以再往前走一步做 tee-testing:把线上跑的流量复制一份到沙箱环境里,再把响应逐一比对。)
至于客串文章里那个 Paxos 锁服务 Alf,答案简单得让人意外:
“Alf is internal only.” — xendo [c:50458052] [thread 2] (译文:Alf 只在内部使用。)
典型观点一览
| 立场 | 用户 | 一句话 |
|---|---|---|
| 真产品,会维护 | ke4qqq | 是我们计划长期维护的产品,CTO 都在发推 |
| 承诺不算数 | toomuchtodo | 把合同和违约金拿给我看 |
| 只在 HN 评论里说 | dogleash | 连公司官方声明都不如 |
| 博客只讲过程 | forgotpwd16 | 通篇 agent 流程,可维护性一个字没提 |
| AWS 不随便弃坑 | ttul | 他们放出来的东西都会维护 |
| Google 是养大再抛弃 | jghn | 两家的失败模式不一样 |
| 确实会弃坑 | happymellon | QLDB 和 Cloud9 都是教训 |
| 内部努力很久了 | msw | GitHub 年轻,但内部做了很久 |
| 缺打磨 | CharlieDigital | 连仓库 website 字段都没填 |
| 漂亮不等于好用 | simgoh | 这是「产品即幻灯片」 |
| 服务团队要真接 | jcims | AWS Config 的推广怎么做的,这里就得再来一遍 |
| 代码是 Claude 写的 | paavohtl | Opus 5.5 之前的口头禅还在 |
| 提交量不正常 | forgotpwd16 | 三周三万次提交,谁在刷 token |
| 方法论可行 | NewsaHackO | 这正是 vibe coding 最擅长的地形 |
| 准确性无人担保 | Eridrus | 凭什么信这个模拟器 |
| agent 写 agent 维护 | s_dev | 写是 agent 写,坏还得 agent 修 |
| 兼容度矩阵在 release 里 | tyingq | scores.json + 评估套件能算出通过率 |
| 数据面能用,控制面不能 | jasonseattle | API 一变就完蛋 |
| 规格有缺口 | OptionOfT | 不变量没进 schema,Rust 全是 Option |
| 内部实现有捷径 | billyp-rva | 服务间直接读状态,Lambda 跑进程内 NodeJS |
| 边缘情况靠小白鼠 | cherioo | 用户当小白鼠报 bug |
| Localstack 开始收费 | sequence7 | 免费版明确不能商用 |
| 早就存在了 | schonfinkel | fakecloud 是 AGPLv3 |
| 新意在验证机制 | yevmiyeci | agent 造出来再拿真实服务校验 |
| 工程师干什么 | 4ndrewl | 几十年来都是更便宜的人在做 |
| 便宜的人判不了 | geraneum | 查询计划、支付网关他们怎么判 |
| 没人复审 agent 代码 | 4ndrewl | 那只是实现细节 |
| 责任制已死 | CSSer | 进去就得几乎挑不出毛病 |
| 标题该被投诉 | cxr | 首页编辑过的标题太多了 |
总体情绪
这场讨论的分裂点不在「AI 能不能写出像样的 AWS 模拟器」——在场的多数人并不否认这一点,甚至有人已经在用 Claude 容器自己 mock 掉一整套 AWS 服务。分裂点在于「谁来为它的准确性负责」,以及这个问题被拆成了两层:第一层是 AWS 会不会维护它,第二层是 agent 写的代码谁来 review。前一层 AWS 员工和老人给了相对一致的答案(会维护,AWS 不是 Google),后一层则没人接得住。
最能说明这场讨论成色的,是它在两个方向上同时拒绝廉价结论。有人从代码痕迹里读出「这确实是 Claude 写的」,也有人从同一份代码里读出「这正是 vibe coding 最擅长的地形」;有人嫌它打磨粗糙,也有人提醒你,一个漂亮的网站和一个好用的产品之间没有任何关系。双方都没有被说服,但双方都把证据摆到了桌面上——包括一份从 release 产物里算出来的通过率表格。真正的问题被留在了表格里:CloudFormation 36%、Athena 22%,以及 CloudFormation 那 3% 的请求回放通过率。
而职业层面的那条暗线其实更冷。客串文章说工程师的新工作就是「给它们空间,写好规范、测试和合并门禁」,评论区立刻指出这活儿几十年来都是更便宜的人在做,于是问题变成:当没有工程师再去检查这些代码,责任落在谁头上。答案在两个帖子里都没人给。
AWS 用 agent 造出了一个模拟 AWS 的东西,而这个项目真正的验收标准,落在 agent 写代码、agent 测代码、agent 修 bug,而人类工程师仍然要在旁边负责「这些行为跟真 AWS 一致吗」的这道缝上。
引用帖子
| # | 标题 | URL |
|---|---|---|
| 1 | AWS Finally Built Its Own AWS Emulator(HN 主帖) | https://news.ycombinator.com/item?id=50456631 |
| 2 | AWS Emulator and the engineer’s job when agents write the code(HN 关联帖) | https://news.ycombinator.com/item?id=50456740 |
| 3 | aws/aws-emulator(源码仓库,CC0-1.0) | https://github.com/aws/aws-emulator |
| 4 | How we built the agents that built AWS Emulator(Amazon 官方博客) | https://www.aboutamazon.com/news/aws/how-autonomous-ai-agents-built-aws-emulator |
| 5 | AWS Emulator and the engineer’s job when agents write the code(allthingsdistributed,Werner Vogels 客串) | https://www.allthingsdistributed.com/2026/11/aws-emulator-and-the-engineers-job-when-agents-write-the-code.html |
| 6 | AWS Emulator User Guide(官方文档) | https://docs.aws.amazon.com/emulator/latest/userguide/getting-started.html |
| 7 | Localstack 2026 pricing changes(sequence7 在评论中引用) | https://blog.localstack.cloud/2026-upcoming-pricing-changes/ |
| 8 | Ministack 对 AWS Emulator 的对比(pavel_lishin 在评论中引用) | https://ministack.org/blog/aws-emulator |
本摘要由 AI 模型辅助生成:minimax-cn-coding-plan/MiniMax-M3 </div>