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
release v1.3.63 (#908)
Nahuel Nuceraad7b118c0242
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 34153ae8..dbe853e2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,12 +5,16 @@ All notable changes to MiniStack will be documented here.Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).Versioning follows [Semantic Versioning](https://semver.org/).-## [Unreleased]+## [1.3.63] — 2026-06-13### Fixed-- **Step Functions — `Assign` is now applied in the mock execution path for JSONata Task states** — when `SFN_MOCK_CONFIG` was active, `_apply_state_assign` was never called on the mock return branch, so any `Assign` block in a JSONata Task state was silently skipped; downstream states referencing the assigned variables failed with `States.QueryEvaluationError: Undefined variable`. The mock branch now mirrors the real execution path by calling `_apply_state_assign` after `_apply_jsonata_output`.-- **Step Functions — Pass state `Parameters` now resolve context object paths** — `$$.*` references resolved to `null` in Pass states because `_execute_pass` applied `Parameters` without forwarding the execution context. It now forwards the context correctly when evaluating `Parameters`, fixing context object resolution for Pass states.-- **CloudFormation — `DescribeStackResources` now honors the `LogicalResourceId` filter** — The handler now reads the optional `LogicalResourceId` parameter and, when present, returns only the matching resource or a `ValidationError` if it does not exist in the stack.+- **Step Functions — `Assign` is now applied in the mock execution path for JSONata Task states** — when `SFN_MOCK_CONFIG` was active, `_apply_state_assign` was never called on the mock return branch, so any `Assign` block in a JSONata Task state was silently skipped; downstream states referencing the assigned variables failed with `States.QueryEvaluationError: Undefined variable`. The mock branch now mirrors the real execution path by calling `_apply_state_assign` after `_apply_jsonata_output`. Contributed by @amissemer.+- **Step Functions — Pass state `Parameters` now resolve context object paths** — `$$.*` references resolved to `null` in Pass states because `_execute_pass` applied `Parameters` without forwarding the execution context. It now forwards the context correctly when evaluating `Parameters`, fixing context object resolution for Pass states. Contributed by @noynoy83.+- **CloudFormation — `DescribeStackResources` now honors the `LogicalResourceId` filter** — The handler now reads the optional `LogicalResourceId` parameter and, when present, returns only the matching resource or a `ValidationError` if it does not exist in the stack. Contributed by @maximoosemine.+- **Lambda — local executor now exposes dependency layers' `site-packages`** — the in-process Python worker added `<layer>/python` to `sys.path` but not `<layer>/python/lib/python<ver>/site-packages`, so `pip install -t` dependency layers failed to import (the docker executor, which uses the AWS runtime image, was unaffected). Reported by @omargr299.+- **Lambda — `LoggingConfig.LogGroup` is honored when emitting CloudWatch logs** — handler output was always written to the default `/aws/lambda/<name>` group instead of the configured or shared log group. Reported by @ankitaabad.+- **CloudFormation — `AWS::Logs::SubscriptionFilter` resource type supported** — templates using it no longer fail with `Unsupported resource type`; the filter provisions against the named log group and is removed on stack delete. Reported by @ankitaabad.+- **CloudFormation — change sets detect parameter-driven property changes** — `aws cloudformation deploy` silently no-oped when a property such as a Lambda `Code` S3 key was driven by a stack parameter, because the change-set diff compared unresolved templates. It now resolves parameters and intrinsics before diffing, matching `update-stack`. Reported by @ankitaabad.---diff --git a/ministack/core/lambda_runtime.py b/ministack/core/lambda_runtime.pyindex 56c50426..87715f33 100644--- a/ministack/core/lambda_runtime.py+++ b/ministack/core/lambda_runtime.py@@ -61,14 +61,16 @@ def run():_py = os.path.join(_ld, "python")if os.path.isdir(_py):sys.path.insert(0, _py)- # AWS also exposes <layer>/python/lib/python<ver>/site-packages on- # sys.path, where `pip install -t` dependency layers land (#888).+ # AWS exposes <layer>/python/lib/python<ver>/site-packages as a+ # site directory (processes .pth files / namespace packages), where+ # `pip install -t` dependency layers land (#888)._lib = os.path.join(_py, "lib")if os.path.isdir(_lib):+ import site as _sitefor _v in os.listdir(_lib):_sp = os.path.join(_lib, _v, "site-packages")if os.path.isdir(_sp):- sys.path.insert(0, _sp)+ _site.addsitedir(_sp)sys.path.insert(0, _ld)try:mod = importlib.import_module(module_name)diff --git a/ministack/services/lambda_svc.py b/ministack/services/lambda_svc.pyindex 5b4b1bcf..4f7bc529 100644--- a/ministack/services/lambda_svc.py+++ b/ministack/services/lambda_svc.py@@ -305,14 +305,16 @@ for _ld in filter(None, os.environ.get("_LAMBDA_LAYERS_DIRS", "").split(os.paths_py = os.path.join(_ld, "python")if os.path.isdir(_py):sys.path.insert(0, _py)- # AWS also exposes <layer>/python/lib/python<ver>/site-packages, where+ # AWS exposes <layer>/python/lib/python<ver>/site-packages as a site+ # directory (processes .pth files / namespace packages), where# `pip install -t` dependency layers land (#888)._lib = os.path.join(_py, "lib")if os.path.isdir(_lib):+ import site as _sitefor _v in os.listdir(_lib):_sp = os.path.join(_lib, _v, "site-packages")if os.path.isdir(_sp):- sys.path.insert(0, _sp)+ _site.addsitedir(_sp)sys.path.insert(0, _ld)_mod_path = os.environ["_LAMBDA_HANDLER_MODULE"]@@ -356,14 +358,16 @@ for _ld in filter(None, os.environ.get("_LAMBDA_LAYERS_DIRS", "").split(":")):_py = os.path.join(_ld, "python")if os.path.isdir(_py):sys.path.insert(0, _py)- # AWS also exposes <layer>/python/lib/python<ver>/site-packages, where+ # AWS exposes <layer>/python/lib/python<ver>/site-packages as a site+ # directory (processes .pth files / namespace packages), where# `pip install -t` dependency layers land (#888)._lib = os.path.join(_py, "lib")if os.path.isdir(_lib):+ import site as _sitefor _v in os.listdir(_lib):_sp = os.path.join(_lib, _v, "site-packages")if os.path.isdir(_sp):- sys.path.insert(0, _sp)+ _site.addsitedir(_sp)sys.path.insert(0, _ld)_mod_path = os.environ["_LAMBDA_HANDLER_MODULE"]diff --git a/pyproject.toml b/pyproject.tomlindex a759e161..a8ba6be4 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "ministack"-version = "1.3.62"+version = "1.3.63"description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"readme = "README.md"license = { file = "LICENSE" }