Amazon DocumentDB
Create MongoDB-compatible clusters that Floci runs as real MongoDB containers, and get the connection strings for your apps and for MongoDB Compass or mongosh.
Features
Clusters
- List clusters with status, instance count and endpoint; filter by name
- Create a cluster: identifier, instance class, number of instances (1–16), master username and password
- Delete one or more clusters (their instances are deleted first)
- Cluster page header: status, instance count and engine version
Connectivity tab
- Endpoint, reader endpoint, port and master username, ready to copy
- Link to the cluster's CloudWatch Logs group (
/aws/docdb/cluster/<id>/audit) - Connection string for apps in Docker Compose or Lambda
- A
docker run(socat) command that forwards the cluster to127.0.0.1, plus the connection string for MongoDB Compass or mongosh - Connect card with Node.js (
mongodb) and Python (pymongo) code samples that read the connection string fromDOCDB_URI
Instances tab
- List instances with status, class and endpoint
- Add instance with a suggested identifier and a choice of class
- Delete instances (the cluster and its data stay)
Typical workflow
- On Clusters, choose Create cluster, enter an identifier, master username and password (write the password down), then Create cluster.
- Open the Connectivity tab and copy the connection string under From apps in Docker Compose or Lambda; fill in the password.
- To browse data from your machine, run the forward command shown on the same tab, then connect Compass or mongosh to the local connection string.
Works with
- AWS Lambda: functions connect with the Docker Compose connection string
- Amazon CloudWatch Logs: each cluster links to its log group
Limitations
- Floci runs MongoDB 7.0 whatever engine version the cluster reports, without TLS: remove
tls=truefrom connection strings copied from AWS. - Clusters have no port on your machine; use the forward command on the Connectivity tab.
- A Floci restart deletes the MongoDB container while the cluster still shows Available with its data gone: delete and recreate the cluster.
- On Floci an instance is only a record: the cluster works without instances.
- Deleting a cluster leaves the MongoDB container's volumes behind (
docker volume prune). - The first cluster takes about 30 seconds while Floci downloads MongoDB.
- Snapshots, stop, start and reboot are not supported, and a cluster in a CloudFormation stack is a stub.