Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.
Python awsaws-emulatoraws-localaws-sdkdevtoolsdockerdynamodbec2emulatorlambdalocalstacklocalstack-alternativeministackmock-awsopen-sourcepythons3sqsterraform
v1.2.9: .py init scripts, bundled AWS CLI, health log noise fix (#295)
Nahuel Nucera3f1755f135d6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 64c69730..246abb8d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,18 @@ Versioning follows [Semantic Versioning](https://semver.org/).---+## [1.2.9] — 2026-04-13++### Added+- **AWS CLI bundled in Docker image** — `aws` command now available inside the container for init scripts. Uses AWS CLI v1 via pip (Apache 2.0). Image size increases from 242MB to 269MB. Contributed by @AdigaAkhil (#272)+- **`.py` init scripts** — ready.d and boot.d directories now support Python scripts in addition to shell scripts. Files ending in `.py` are executed with the container's Python interpreter. Contributed by @AdigaAkhil (#272)+- **Init script environment defaults** — init scripts automatically receive `AWS_ACCESS_KEY_ID=test`, `AWS_SECRET_ACCESS_KEY=test`, `AWS_DEFAULT_REGION`, and `AWS_ENDPOINT_URL` so `aws` CLI and boto3 work out of the box without manual configuration.++### Fixed+- **Health check log noise** — health endpoint access logs (`/_ministack/health`, `/_localstack/health`, `/health`) are now suppressed at `LOG_LEVEL=INFO`. Visible at `LOG_LEVEL=DEBUG`. Reported by @McDoit++---+## [1.2.8] — 2026-04-13### Addeddiff --git a/README.md b/README.mdindex 4616df1b..6ae482cf 100644--- a/README.md+++ b/README.md@@ -639,10 +639,19 @@ MiniStack supports two types of init scripts, with LocalStack-compatible paths:Scripts from both paths are merged, deduplicated by filename, and run in alphabetical order.If the same filename exists in both paths, the MiniStack-native path takes priority.+Init scripts automatically receive `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_DEFAULT_REGION`, and `AWS_ENDPOINT_URL` — no manual configuration needed. The `aws` CLI is bundled in the image.+```bash# ready.d/01-create-resources.sh-aws --endpoint-url=http://localhost:4566 s3 mb s3://my-bucket-aws --endpoint-url=http://localhost:4566 sqs create-queue --queue-name my-queue+aws s3 mb s3://my-bucket+aws sqs create-queue --queue-name my-queue+```++```python+# ready.d/02-seed-data.py+import boto3, os+s3 = boto3.client("s3", endpoint_url=os.environ["AWS_ENDPOINT_URL"])+s3.put_object(Bucket="my-bucket", Key="config.json", Body=b'{"env": "local"}')```**Docker Compose** — mount scripts at either path:diff --git a/ministack/app.py b/ministack/app.pyindex 65510b4e..c7df3a4b 100644--- a/ministack/app.py+++ b/ministack/app.py@@ -701,6 +701,13 @@ async def _run_ready_scripts():port = int(_resolve_port())await _wait_for_port(port)logger.info('Found %d ready script(s)', len(scripts))+ # Provide sensible defaults so init scripts can use aws cli / boto3+ # without requiring manual credential configuration.+ script_env = {**os.environ}+ script_env.setdefault("AWS_ACCESS_KEY_ID", "test")+ script_env.setdefault("AWS_SECRET_ACCESS_KEY", "test")+ script_env.setdefault("AWS_DEFAULT_REGION", os.environ.get("MINISTACK_REGION", "us-east-1"))+ script_env.setdefault("AWS_ENDPOINT_URL", f"http://localhost:{port}")for script_path in scripts:logger.info('Running ready script: %s', script_path)try:@@ -709,7 +716,7 @@ async def _run_ready_scripts():*cmd,stdout=asyncio.subprocess.PIPE,stderr=asyncio.subprocess.PIPE,- env=os.environ,+ env=script_env,)stdout, stderr = await asyncio.wait_for(proc.communicate(), timeout=300)if stdout:diff --git a/pyproject.toml b/pyproject.tomlindex 9bdad4ed..a9ee7ea7 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "ministack"-version = "1.2.8"+version = "1.2.9"description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"readme = "README.md"license = { file = "LICENSE" }