Testing an application that calls AWS APIs often means choosing between hand-written mocks and deploying resources to a real AWS account. Mocks are fast, but they can miss request validation and state changes. Real AWS testing is still necessary, but deploying resources for every small change can slow down the development loop.
AWS Emulator offers another option: run AWS APIs locally and point the AWS CLI or an SDK at them, without creating an AWS account or deploying cloud resources.
In this post, we’ll look at how it works, set it up with Docker, and walk through a small S3 example. We’ll also cover where it fits in CI and what you still need to test on real AWS.