<?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: Lucas Vieira</title>
    <description>The latest articles on DEV Community by Lucas Vieira (@vieiralucas).</description>
    <link>https://dev.to/vieiralucas</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F11402%2F7764293.jpeg</url>
      <title>DEV Community: Lucas Vieira</title>
      <link>https://dev.to/vieiralucas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vieiralucas"/>
    <language>en</language>
    <item>
      <title>Why I'm building a free, open-source AWS emulator</title>
      <dc:creator>Lucas Vieira</dc:creator>
      <pubDate>Mon, 06 Apr 2026 22:27:35 +0000</pubDate>
      <link>https://dev.to/vieiralucas/why-im-building-a-free-open-source-aws-emulator-5gfl</link>
      <guid>https://dev.to/vieiralucas/why-im-building-a-free-open-source-aws-emulator-5gfl</guid>
      <description>&lt;p&gt;A few days ago, our CI started failing. The culprit: &lt;code&gt;localstack:latest&lt;/code&gt; now requires an account and an auth token. Broken builds.&lt;/p&gt;

&lt;p&gt;I'd seen LocalStack creeping toward proprietary for a while, but this was the moment it actually hit. A colleague noticed it at the same time as me, but I was already working on a fix. I patched the build, but the question stuck: how long can we keep using the old version until we start having real problems?&lt;/p&gt;

&lt;h2&gt;
  
  
  I don't trust mocks
&lt;/h2&gt;

&lt;p&gt;I should back up. I care about tests a lot. Enough to become a &lt;a href="https://github.com/chaijs/chai" rel="noopener noreferrer"&gt;maintainer of Chai.js&lt;/a&gt;. Enough that when I build something, the test infrastructure comes first.&lt;/p&gt;

&lt;p&gt;But I have a specific opinion about &lt;em&gt;what kind&lt;/em&gt; of tests matter. I hate mocks. Not the concept — the way most codebases use them. You end up with tests that don't test anything real. You're asserting that you call functions in the right order. You're verifying the plumbing, not the behavior.&lt;/p&gt;

&lt;p&gt;The worst part is when mocked tests give you false confidence. I've seen tests that assert you do the wrong thing successfully — the mock doesn't care, it just returns what you told it to. Your tests pass. Your code has a bug. You ship it.&lt;/p&gt;

&lt;p&gt;If you're building on AWS, you need integration tests that actually talk to something that behaves like AWS. Not a mock. Not a stub that returns 200 to everything. Something that implements the real behavior: if you call API A then API B, and AWS would produce side effect C, then your test environment should produce side effect C too.&lt;/p&gt;

&lt;p&gt;That's what LocalStack used to give us. And that's what I wanted to keep — but free and open source.&lt;/p&gt;

&lt;h2&gt;
  
  
  So I built it
&lt;/h2&gt;

&lt;p&gt;I started fakecloud on April 4th, 2026. Three days later: 13 AWS services, 300+ commits, 1,000+ tests.&lt;/p&gt;

&lt;p&gt;That pace was possible because of two things. First, I used LLMs heavily throughout — not to generate code I don't understand, but as a force multiplier with strong guardrails. Every feature ships with E2E tests. The tests are the guardrails. If the LLM generates something that doesn't match real AWS behavior, the tests catch it.&lt;/p&gt;

&lt;p&gt;Second, Rust. I chose Rust because I love static-typed compiled languages, and Rust's type system is genuinely amazing. You get the performance of no garbage collector without having to manually manage memory. It means fakecloud starts in under 100ms and runs as a single binary — no Docker required, no runtime dependencies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Correctness is the whole point
&lt;/h2&gt;

&lt;p&gt;fakecloud doesn't try to be a scalable production cloud. It's not that. It's a testing tool. And the one thing a testing tool needs to get right is correctness.&lt;/p&gt;

&lt;p&gt;What does that mean in practice? If you call &lt;code&gt;CreateQueue&lt;/code&gt;, then &lt;code&gt;SendMessage&lt;/code&gt;, then &lt;code&gt;ReceiveMessage&lt;/code&gt; on real AWS and get back your message with specific attributes — fakecloud should do exactly the same thing. If it doesn't, that's a fakecloud bug.&lt;/p&gt;

&lt;p&gt;We currently verify this with 280+ E2E tests that use the official &lt;code&gt;aws-sdk-rust&lt;/code&gt; crate and 34,856 auto-generated conformance test variants validated against official AWS Smithy models — covering all 983 API operations across 13 services at 100% conformance. The plan for the near future: set up a real AWS account and run our test suite against both fakecloud and real AWS side by side, so we can verify behavioral parity automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's here today
&lt;/h2&gt;

&lt;p&gt;13 services, 983 API operations, all open source, all free:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;S3&lt;/strong&gt; (107 actions) — objects, multipart uploads, versioning, lifecycle, notifications, encryption&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SQS&lt;/strong&gt; (23 actions) — FIFO queues, dead-letter queues, long polling, batch operations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SNS&lt;/strong&gt; (34 actions) — fan-out to SQS, HTTP delivery, filter policies, platform applications&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EventBridge&lt;/strong&gt; (57 actions) — pattern matching, scheduled rules, connections, API destinations, endpoints&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IAM&lt;/strong&gt; (128 actions) — users, roles, policies, groups, instance profiles, OIDC/SAML providers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;STS&lt;/strong&gt; (11 actions) — assume role, session tokens, federation, credential expiration&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SSM&lt;/strong&gt; (146 actions) — parameters, documents, commands, maintenance windows, associations, automation, sessions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DynamoDB&lt;/strong&gt; (57 actions) — tables, items, transactions, PartiQL, backups, global tables, streaming&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lambda&lt;/strong&gt; (10 actions) — function CRUD, invoke, event source mappings&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Secrets Manager&lt;/strong&gt; (23 actions) — versioning, soft delete, rotation, replication, resource policies&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CloudWatch Logs&lt;/strong&gt; (113 actions) — groups, streams, filtering, deliveries, transformers, anomaly detection&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;KMS&lt;/strong&gt; (53 actions) — encryption, aliases, key management, grants, custom key stores&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CloudFormation&lt;/strong&gt; (8 actions) — template parsing, resource provisioning&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Services talk to each other: S3 notifications deliver to SNS/SQS. SNS fans out to SQS. EventBridge rules fire on schedule and deliver to targets. This is the kind of cross-service behavior that matters in integration tests and that most emulators get wrong or skip entirely.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/faiscadev/fakecloud/main/install.sh | bash
fakecloud
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then point any AWS SDK at &lt;code&gt;http://localhost:4566&lt;/code&gt; with dummy credentials. That's it.&lt;/p&gt;

&lt;p&gt;The code is at &lt;a href="https://github.com/faiscadev/fakecloud" rel="noopener noreferrer"&gt;github.com/faiscadev/fakecloud&lt;/a&gt;. It's AGPL-3.0 — free and open source, including for commercial use.&lt;/p&gt;

&lt;p&gt;If you need a local AWS emulator for your integration tests, give it a try. And if something doesn't behave like real AWS — &lt;a href="https://github.com/faiscadev/fakecloud/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt;. That's a bug, and we'll fix it.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>rust</category>
      <category>testing</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
