Floci Deep Dives
What is Floci?
Floci is an open-source local cloud emulator that allows developers to run AWS-compatible services locally without using a real AWS account. It is often positioned as an alternative to LocalStack.
Why was it created?
The project aims to provide:
No authentication tokens No paid feature gates Local AWS service emulation Fast startup and low memory usage CI/CD-friendly local testing environments Architecture Deep Dive Application ↓ AWS SDK / CLI ↓ localhost:4566 ↓ Floci ↓ Emulated AWS Services
Your application continues to use standard AWS SDK calls, but instead of hitting AWS, it talks to Floci running locally.
Example:
aws --endpoint-url http://localhost:4566 s3 ls Supported AWS Services
Floci supports dozens of AWS services including:
S3 DynamoDB Lambda ECS EC2 EKS ECR RDS IAM STS SQS SNS CloudFormation Secrets Manager Step Functions CloudWatch API Gateway
and many others.
Why DevOps Engineers Use It
- Local Development
Instead of: Developer ↓ AWS Account ↓ Pay AWS Costs
You use: Developer ↓ Floci ↓ Local AWS Environment
This reduces costs and speeds up testing.
- CI/CD Pipeline Testing
Example GitHub Actions:
services: floci: image: floci/floci:latest ports: - 4566:4566
Now integration tests can run against local AWS services without provisioning real cloud resources.
- Terraform Testing
You can test Terraform locally:
terraform init
terraform plan
terraform apply
while pointing providers to Floci endpoints instead of AWS.
ECS/EKS Deep Dive
One interesting aspect is that Floci uses real Docker-backed execution for some services rather than simple mock responses.
Examples include:
Lambda ECS EKS RDS ElastiCache OpenSearch
This provides higher-fidelity testing compared with basic API stubs.
Installation
Run with Docker:
docker run --rm -p 4566:4566 floci/floci:latest
Then configure AWS CLI:
aws --configure
Test:
aws --endpoint-url=http://localhost:4566 s3 mb s3://test-bucket
Floci vs LocalStack Feature Floci LocalStack Open Source Yes Limited community edition Auth Token Required No Often required Startup Speed Very fast Slower Memory Usage Lower Higher Docker-backed Services Yes Some Cost Free Freemium
According to Floci's published benchmarks, it focuses heavily on startup speed and low resource consumption.
