$ cat posts/floci-local-cloud.md~/scorpse/

Repo Watch 01 — Floci for local cloud development

Linked resource ↗https://github.com/Scorpse/floci/tree/local

The cloud dependency I run into most often during local development is a small one. A service needs a bucket, a queue, or a parameter before it can do anything useful. Multiply that by a few services and an otherwise simple checkout starts to depend on a lot of setup.

Floci gives those services an AWS-compatible endpoint to talk to on the developer machine. For the services we moved onto it, the applications kept their AWS SDK clients. Local configuration pointed them at Floci, and a bootstrap step declared the buckets, queues, and other resources before the services started. A developer can bring up the same setup again for a clean run.

Floci logo

What I changed in the fork

  • PostgreSQL per database instance. I added image profiles so one emulated RDS instance can use PostgreSQL with pgvector while another can use a different image. The PostgreSQL startup path can also initialize the container without docker exec, which matters when the Docker socket is filtered.
  • Lambda across Docker networks. A function container needs to reach the Lambda Runtime API on its own network. The fork chooses the emulator’s address on that network, which fixes a failure that can be easy to miss when everything shares one Docker network.
  • Bedrock proxy coverage. I extended the proxy to forward Converse document blocks and additional model request fields, plus selected Titan and Cohere embedding requests, to an OpenAI-compatible backend. A fixed-response stub is useful for repeatable integration tests. A configured model endpoint is useful when the content of the response matters.

The fork’s main mirrors upstream, and local holds the changes. I revisit the patches as upstream evolves. For example, upstream’s container reconciler made our separate Lambda orphan cleanup redundant. Fork notes and patch branch

Six commits from the Floci fork, grouped by RDS, Lambda, and Bedrock

Two commits per area show where the changes landed in the fork. Compare the fork with upstream

Where it helps

I’d start with one workflow that crosses a service boundary, such as putting a file in a bucket and letting a worker pick up the associated queue message. That exercises the SDK calls, resource names, and wiring together. Cloud IAM, quotas, and managed-service behavior still belong in a small AWS-side test suite.

The main benefit for me is that a developer can start the relevant services together and debug the whole path locally. The emulator becomes part of the dev environment, alongside the application and its test data. Floci upstream · Scorpse fork