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
Feat/tests v1.1.39 (#140)
Nahuel Nuceraf98ddceccfc2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7de17062..07cca5b4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,18 @@ Versioning follows [Semantic Versioning](https://semver.org/).---+## [1.1.39] — 2026-04-06++### Fixed+- **AppSync persistence crash on restart** — `restore_state()` called before it was defined in the file, causing `NameError` when `PERSIST_STATE=1` and restarting. Reported by @samiuoi (#66)+- **Cognito `AdminSetUserPassword` with `Permanent=false`** — now correctly sets `UserStatus` to `FORCE_CHANGE_PASSWORD`. Previously the password was updated but the status wasn't changed.++### Tests+- 10 new tests: KMS (list policies, rotation period), ElastiCache (parameter groups, snapshots, tags), Lambda (Image CRUD, update ImageUri, provided runtime), SecretsManager (rotate secret), Firehose (S3 destination writes)+- 1011 tests total++---+## [1.1.38] — 2026-04-05### Addeddiff --git a/ministack/services/appsync.py b/ministack/services/appsync.pyindex 7478613e..9febffb6 100644--- a/ministack/services/appsync.py+++ b/ministack/services/appsync.py@@ -55,7 +55,6 @@ def _load_persisted():restore_state(data)logger.info("Loaded persisted state for appsync")-_load_persisted()# ---------------------------------------------------------------------------# Helpers@@ -993,3 +992,6 @@ def _resolve_lambda(data_source, args):except Exception:return {"result": body}return args++# Load persisted state (must be after restore_state is defined)+_load_persisted()diff --git a/ministack/services/cognito.py b/ministack/services/cognito.pyindex e1290579..ec53c38c 100644--- a/ministack/services/cognito.py+++ b/ministack/services/cognito.py@@ -791,6 +791,8 @@ def _admin_set_user_password(data):permanent = data.get("Permanent", False)if permanent:user["UserStatus"] = "CONFIRMED"+ else:+ user["UserStatus"] = "FORCE_CHANGE_PASSWORD"user["UserLastModifiedDate"] = _now_epoch()return json_response({})diff --git a/pyproject.toml b/pyproject.tomlindex 3a901090..732c2f4c 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "ministack"-version = "1.1.38"+version = "1.1.39"description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"readme = "README.md"license = { file = "LICENSE" }