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.66 (#963)
Nahuel Nucera57212c5dd4c0
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b4683acc..d0f34716 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,10 +5,24 @@ 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.66] — 2026-06-22++### Added+- **ElastiCache — broad parity improvements** — built-in `default.*` parameter groups for the Redis, Memcached, and Valkey families (including `.cluster.on` variants) with AWS-style engine-version→family mapping; seeded defaults are immutable (create/modify/delete/reset rejected with AWS-shaped errors); replication-group creation materializes member cache clusters with metadata, tags, and member IDs and removes them on deletion; create/modify validate user groups with `UserGroupNotFound`; tag updates fan out to member cluster ARNs; and ElastiCache is now covered by the Resource Groups Tagging API. User and user-group error codes now use AWS's wire forms (`UserNotFound`, `UserGroupNotFound`, …). Contributed by @ZiningYin.+- **IAM — additional AWS-managed policies seeded** — `AWSXRayDaemonWriteAccess`, `AWSXrayReadOnlyAccess`, and `AWSLambdaRole` are now pre-seeded with their canonical documents, so Terraform's tracing lookup (`data "aws_iam_policy" { arn = ".../AWSXRayDaemonWriteAccess" }`, used by every `attach_tracing_policy = true` module) resolves. Contributed by @mattwang44.++### Changed+- **CI — test suite now runs as balanced parallel shards** — the workflow plans shards from a per-file test-count map and runs them across separate runners, with a dedicated serial phase for global-state tests, cutting CI wall-clock time. Contributed by @jgrumboe.+- **Build — bumped `github.com/containerd/containerd` 1.7.32 → 1.7.33** in the Go Testcontainers helper module.### Fixed-- **SNS — `Publish` now accepts non-string `Message` values** — Step Functions' `arn:aws:states:::sns:publish` integration does not always pass `Parameters.Message` as a plain string; inline object values (e.g. in YAML or ASL) arrive as structured data. MiniStack previously treated only strings as valid and publish failed on dict values. Non-string messages are now JSON-serialized before delivery.+- **CloudFormation — `aws cloudformation deploy` without `--parameter-overrides` now updates resources** — a change set created with `UsePreviousValue=true` (what `deploy` sends for existing parameters when no overrides are given) resolved the parameter to an empty value instead of its stored value, so a parameter-driven resource name (e.g. `!Sub ${StackName}-handler`) resolved wrong and the stack update silently missed the real resource — its code/properties never changed. `UsePreviousValue` is now resolved against the stack's stored parameters on both the change-set and `UpdateStack` paths. Reported by @ankitaabad.+- **Step Functions — `.waitForTaskToken` now invokes non-Lambda service integrations** — `arn:aws:states:::sqs:sendMessage.waitForTaskToken` (and `sns:publish`, `dynamodb:*`, `aws-sdk:*`, …) scheduled the task but never performed the integration, so the payload carrying the task token was never sent and the execution hung. The callback path now dispatches the integration before blocking, and an object `MessageBody` is JSON-serialized for SQS. Reported by @taylor1791.+- **RDS Data API — PostgreSQL correctness fixes** — psycopg2 connections now autocommit (matching the MySQL path), so a non-transactional `ExecuteStatement` is no longer rolled back on connection close; named parameters are substituted longest-first so `:1` no longer corrupts `:10` / `:18`; and `jsonb` values are returned as their stored JSON text instead of an invalid single-quoted Python repr. Reported by @awilson9.+- **Cognito — token/session invalidation now takes effect** — `RevokeToken`, `GlobalSignOut`, and `AdminUserGlobalSignOut` were no-ops, so a revoked refresh token still minted new access tokens. They now invalidate the affected refresh tokens, and the `REFRESH_TOKEN_AUTH` flow honours the revocation.+- **RDS — `CreateDBInstance` / `CreateDBCluster` validate parameter-group existence** — referencing a non-existent custom parameter group now returns `DBParameterGroupNotFound` / `DBClusterParameterGroupNotFound` instead of silently succeeding.+- **Athena — `GetTableMetadata` / `ListTableMetadata` return real columns and partition keys** — the responses were empty stubs; they now surface the backing Glue table's columns and partition keys.+- **SNS — `Publish` now accepts non-string `Message` values** — Step Functions' `arn:aws:states:::sns:publish` integration can pass `Message` as structured data rather than a plain string; it is now JSON-serialized before delivery instead of failing. Contributed by @noynoy83.---diff --git a/ministack/services/elasticache.py b/ministack/services/elasticache.pyindex 9feb79fa..d099d9af 100644--- a/ministack/services/elasticache.py+++ b/ministack/services/elasticache.py@@ -901,7 +901,7 @@ def _create_replication_group(p):arn = _arn_replication_group(rg_id)if rg_id in _replication_groups:- return _error("ReplicationGroupAlreadyExistsFault",+ return _error("ReplicationGroupAlreadyExists",f"Replication group {rg_id} already exists", 400)validation_error = _validate_create_replication_group_request(p)diff --git a/ministack/services/iam.py b/ministack/services/iam.pyindex d9f395a6..aeb2f725 100644--- a/ministack/services/iam.py+++ b/ministack/services/iam.py@@ -278,7 +278,7 @@ def _seed_aws_managed_policies() -> None:'{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["xray:PutTraceSegments","xray:PutTelemetryRecords","xray:GetSamplingRules","xray:GetSamplingTargets","xray:GetSamplingStatisticSummaries"],"Resource":["*"]}]}',"AWS X-Ray Daemon write access — permissions required by the X-Ray daemon to upload telemetry segments to X-Ray and fetch sampling rules."),('AWSXrayReadOnlyAccess',- '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["xray:GetSamplingRules","xray:GetSamplingTargets","xray:GetSamplingStatisticSummaries","xray:BatchGetTraces","xray:GetServiceGraph","xray:GetTraceGraph","xray:GetTraceSummaries","xray:GetGroups","xray:GetGroup","xray:ListTagsForResource","xray:GetTimeSeriesServiceStatistics","xray:GetInsightSummaries","xray:GetInsight","xray:GetInsightEvents","xray:GetInsightImpactGraph"],"Resource":["*"]}]}',+ '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["xray:GetSamplingRules","xray:GetSamplingTargets","xray:GetSamplingStatisticSummaries","xray:BatchGetTraces","xray:BatchGetTraceSummaryById","xray:GetDistinctTraceGraphs","xray:GetServiceGraph","xray:GetTraceGraph","xray:GetTraceSummaries","xray:GetGroups","xray:GetGroup","xray:ListTagsForResource","xray:ListResourcePolicies","xray:GetTimeSeriesServiceStatistics","xray:GetInsightSummaries","xray:GetInsight","xray:GetInsightEvents","xray:GetInsightImpactGraph"],"Resource":["*"]}]}',"AWS X-Ray read-only access. Grants permission to retrieve trace data, service graphs, and sampling rules."),('AWSLambdaRole','{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["lambda:InvokeFunction"],"Resource":["*"]}]}',diff --git a/ministack/services/sns.py b/ministack/services/sns.pyindex 8b0ee93e..da721d52 100644--- a/ministack/services/sns.py+++ b/ministack/services/sns.py@@ -538,7 +538,7 @@ def _publish(params):subject = _p(params, "Subject")message_structure = _p(params, "MessageStructure")- if isinstance(message, dict):+ if isinstance(message, (dict, list)):message = json.dumps(message)if phone_number and not topic_arn:diff --git a/pyproject.toml b/pyproject.tomlindex 08cf346f..aaceaff8 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "ministack"-version = "1.3.65"+version = "1.3.66"description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"readme = "README.md"license = { file = "LICENSE" }diff --git a/tests/conftest.py b/tests/conftest.pyindex 1d91d440..7709f261 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -66,7 +66,6 @@ _SERIAL_TESTS = {"tests/test_stepfunctions.py::test_sfn_mock_config_throw","tests/test_stepfunctions.py::test_sfn_mock_config_jsonata_assign_applied","tests/test_stepfunctions.py::test_sfn_mock_config_throw_routes_to_catch",- "tests/test_stepfunctions.py::test_sfn_mock_config_jsonata_assign_applied","tests/test_stepfunctions.py::test_sfn_wait_scale_zero_does_not_timeout_lambda_tasks","tests/test_stepfunctions.py::test_sfn_wait_scale_zero_skips_wait","tests/test_rds.py::test_rds_lambda_network_connectivity",