MiniStack offers a completely free and open-source alternative to LocalStack, enabling developers to emulate AWS services locally without the hassle of accounts or licenses. With quick startup, low resource usage, and compatibility with popular SDKs, MiniStack empowers developers to build and test applications efficiently.
MiniStack is a comprehensive, fully open-source local AWS emulator designed to replace LocalStack, which has transitioned to a paid model. This tool provides a convenient, cost-free alternative for developers needing a local environment to test AWS-compatible applications.
boto3, AWS CLI, Terraform, CDK, and Pulumi.MiniStack is MIT licensed, permitting unrestricted use, forking, and contribution.
To run MiniStack using Docker, execute:
# Preferred method: Pull from Docker Hub
docker run -p 4566:4566 nahuelnucera/ministack
# Alternatively, clone and build from source
git clone https://github.com/Nahuel990/ministack
cd ministack
# Initialize using Docker Compose (with Redis sidecar)
docker compose up -d
# Health check
curl http://localhost:4566/_localstack/health
Configure a local AWS CLI profile and specify the endpoint:
# One-time configuration
aws configure --profile local
# Set up with credentials
# AWS Access Key ID: test
# AWS Secret Access Key: test
# Default region: us-east-1
# Commands with endpoint URL
aws --endpoint-url=http://localhost:4566 s3 mb s3://my-bucket
aws --endpoint-url=http://localhost:4566 s3 cp ./file.txt s3://my-bucket/
aws --endpoint-url=http://localhost:4566 sqs create-queue --queue-name my-queue
Integrate MiniStack with the boto3 library in Python:
import boto3
def client(service):
return boto3.client(
service,
endpoint_url="http://localhost:4566",
aws_access_key_id="test",
aws_secret_access_key="test",
region_name="us-east-1",
)
# Example of S3 operations
s3 = client("s3")
s3.create_bucket(Bucket="my-bucket")
s3.put_object(Bucket="my-bucket", Key="hello.txt", Body=b"Hello, MiniStack!")
MiniStack supports a variety of core and extended AWS services, allowing for comprehensive testing and development workflows without incurring costs associated with cloud services.
MiniStack is geared towards developers requiring a local AWS-compatible environment that is free, efficient, and easy to integrate into existing workflows. With its small image size and extensive service compatibility, it stands out as a leading choice for local AWS emulation.
No comments yet.
Sign in to be the first to comment.