fakecloud
Local AWS cloud emulator for integration tests
TLDR
SYNOPSIS
fakecloud [options]
DESCRIPTION
fakecloud is a single self-contained binary (~19 MB, ~10 MiB RSS, ~500 ms startup) that emulates the most common AWS services locally — S3, SQS, SNS, DynamoDB, Lambda, IAM, and more — so that integration tests do not need cloud credentials or internet access. Point any AWS SDK or the aws CLI at http://localhost:4566 with dummy credentials (access_key=test, secret_key=test) and it responds with the same wire protocol as the real service.First-party test SDKs exist for TypeScript, Python, Go, PHP, Java, and Rust. fakecloud itself has no runtime dependency on Docker, though a container image is provided for CI convenience.
PARAMETERS
--verify-sigv4
Enable cryptographic signature verification so that clients must sign requests exactly as they would for real AWS.--iam MODE
IAM policy enforcement. soft evaluates but does not block; strict denies unauthorized calls. Defaults to off.--port PORT
Listen on an alternate TCP port (default 4566).--host ADDR
Bind to a specific interface (default 127.0.0.1).--data-dir DIR
Directory used to persist emulated state between runs.-h, --help
Show help and exit.-V, --version
Print version and exit.
CONFIGURATION
Typical test configuration in TypeScript:
const s3 = new S3Client({
endpoint: "http://localhost:4566",
region: "us-east-1",
credentials: { accessKeyId: "test", secretAccessKey: "test" },
forcePathStyle: true,
});
CAVEATS
fakecloud covers the common AWS services but is not bit-for-bit identical with production AWS — obscure error codes, quota behaviors, and eventual-consistency edge cases may differ. Only use it for integration tests, not as a production replacement. The project is licensed AGPL-3.0, which matters if you plan to redistribute it as part of a SaaS.
HISTORY
fakecloud was launched by faiscadev in early 2026 after LocalStack announced its shift to a proprietary license, giving teams a free-forever, open-source alternative for fully local AWS testing.
SEE ALSO
aws(1), localstack(1), moto(1), terraform(1)
