Skip to content

Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.

release v1.5.9 (#1658)

Nahuel Nucera1a790c1c3c7c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5742c0a4..bc400fe7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,33 +5,26 @@ 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]
-
-### Fixed
-- **S3 Tables / Glue — the Iceberg REST catalogs honour `upgrade-format-version`** — a commit carrying the Iceberg REST `UpgradeFormatVersionUpdate` action (what a Spark job writing with the `format-version` `3` table property sends for an existing table) was silently dropped, so the table's metadata kept reporting version 2 while the commit answered success; real S3 Tables supports Iceberg format version 3. Both catalogs now apply the action: the metadata moves to the requested version, re-asserting the current version is a no-op, and a downgrade or a version above 3 is refused with 400 — committing nothing, since a commit is atomic (the S3 Tables catalog now stages updates on a copy, the Glue catalog never advances its `metadata_location` on a refusal). Creating a table with an explicit `format-version` already worked; the default stays 2.
-- **CloudFormation — `Fn::Cidr`, `Fn::GetAZs`, `Fn::FindInMap` and the condition functions follow AWS** — `Fn::Cidr` answered `10.0.{i}.0/…` whatever block it was given (now the block is split: `192.168.0.0/16, 2, 8` is `192.168.0.0/24,192.168.1.0/24`, measured; IPv6 included), `Fn::GetAZs` answered a fabricated `a/b/c` for any region (now the stack's own zones, and an empty list for another region, measured), `Fn::FindInMap` answered `""` for a missing key and had no `DefaultValue` (now the default when given, otherwise `Template error: Unable to get mapping for M::x::y` before the stack exists, measured), and `Fn::And`/`Fn::Or`/`Fn::Not` in a value position leaked the unresolved call (now a boolean; as an Output value they are refused with `The Value field of every Outputs member must evaluate to a String.`, measured). Contributed by @iot-rocket.
-- **CloudFormation — `DescribeStackResource` and `DescribeStackResources` carry `ResourceStatusReason`** — a resource in `DELETE_FAILED` (or any other failed state) kept its reason in the stack events only; the two Describe responses now carry the `ResourceStatusReason` element the API reference defines, absent for a healthy resource; `DescribeStackResource` also names its timestamp `LastUpdatedTimestamp`, the field `StackResourceDetail` defines (it carried a `Timestamp` element that clients drop, so the detail had no timestamp at all). Contributed by @iot-rocket.
-- **CloudFormation — a removed resource whose delete fails stays in the stack as `DELETE_FAILED`** — when a resource dropped from the template could not be deleted in the cleanup after an update, the stack ended `UPDATE_COMPLETE` (as on AWS) but the resource was dropped from the stack record while it kept existing in the service, and `DeleteStack` never tried again. It now stays listed with `DELETE_FAILED` and the reason (in a nested stack too), the next update with a changed template retries the delete, and `DeleteStack` also reaches the resources the template no longer declares. Contributed by @iot-rocket.
-- **S3 — the Multi-Region Access Point alias starts with a letter and follows the documented pattern** — the alias was the first 13 hex characters of a uuid, so it could come out as digits only (`1240729989764.mrap`), which is not what S3 mints (`mfzwi23gnjvgw.mrap`) and made `test_cfn_s3_multi_region_access_point` fail whenever no letter was drawn (`str.islower()` is False without a cased character). The alias now follows the documented pattern `^[a-z][a-z0-9]*[.]mrap$`: a letter, then twelve lowercase letters or digits; the test checks that pattern. Contributed by @iot-rocket.
-### Added
-- **CloudFormation — `ListImports`, `UpdateTerminationProtection`, `SetStackPolicy`, `GetStackPolicy`, `CancelUpdateStack` and `ContinueUpdateRollback`** — the first four were routed to the service and answered `InvalidAction`, the last two did not exist, so a stack in `UPDATE_ROLLBACK_FAILED` had no way out short of a reset. `ListImports` names the stacks importing an export (a `ValidationError` when none does); termination protection is set on create or later and makes `DeleteStack` refuse with the stack unchanged (`DescribeStacks` reports `EnableTerminationProtection`); a stack policy is stored and returned (it is not enforced); `CancelUpdateStack` stops an `UPDATE_IN_PROGRESS` update before its next resource and rolls it back ("User Initiated"); `ContinueUpdateRollback` retries the deletes that failed the rollback, skips the `ResourcesToSkip` (their status becomes `UPDATE_COMPLETE`, the resource stays) and lands the stack in `UPDATE_ROLLBACK_COMPLETE`. Contributed by @iot-rocket.
-- **CloudFormation — a `WaitCondition` waits for its signals** — `AWS::CloudFormation::WaitCondition` completed at once and `AWS::CloudFormation::WaitConditionHandle` answered a URL nothing served, so a stack never waited for the configuration step it was written to wait for. The handle's `Ref` (and physical id) is now a URL the emulator serves (`PUT` the AWS signal JSON, `Status`, `UniqueId`, `Data`, `Reason`, to it with an empty `Content-Type`; `Id` is its token); the wait condition stays `CREATE_IN_PROGRESS` until `Count` SUCCESS signals with distinct `UniqueId`s arrived (a repeated id is a retransmission and is ignored), a FAILURE signal or the `Timeout` fails it and rolls the stack back, every signal is published to the stack events, and `Fn::GetAtt Wait.Data` is the `{UniqueId: Data}` map. A wait condition with a `CreationPolicy` (`ResourceSignal` with `Count` and an ISO 8601 `Timeout`, default `PT5M`) needs no handle and is signalled through `SignalResource`. Without a `CreationPolicy` a missing `Timeout`, a `Timeout` outside 1..43200 seconds, a `Count` below 1 or a handle of another stack fail the resource. A nested stack now deploys on a worker thread, so a wait condition or custom resource inside it no longer blocks the server. The custom-resource `ResponseURL` honours `EDGE_PORT` like the rest of the emulator. Contributed by @iot-rocket.
-- **CloudFormation — `SignalResource`** — the action did not exist (`InvalidAction`). It now delivers a `SUCCESS` or `FAILURE` signal with a `UniqueId` to the wait condition that is waiting under the given logical id, addressed by stack name or id; a missing field, a stack that is not in progress, a resource that is not waiting, a `Status` outside the enum or a `UniqueId` longer than 64 characters are a `ValidationError`. Contributed by @iot-rocket.
-- **CloudFormation — the `Tags` property of a queue, topic, table, function, log group and stream reaches the service** — `AWS::SQS::Queue`, `AWS::SNS::Topic`, `AWS::DynamoDB::Table`, `AWS::Lambda::Function`, `AWS::Logs::LogGroup` and `AWS::Kinesis::Stream` stored their tags nowhere, so the service's own list-tags call answered an empty set for a tagged resource. The tags now land where `ListQueueTags`, `ListTagsForResource`, `ListTagsOfResource`, `ListTags`, `ListTagsLogGroup` and `ListTagsForStream` read them; a template change is reconciled on update (dropped keys removed, the rest set) and tags added through the service API stay. Contributed by @iot-rocket.
-- **CloudFormation — stack-level tags propagate to the resources** — the `Tags` of `CreateStack` and `UpdateStack` were stored on the stack record and went nowhere, and no resource carried the `aws:cloudformation:stack-name`, `aws:cloudformation:stack-id` and `aws:cloudformation:logical-id` tags a real deploy adds. For the 44 types whose provisioner stores a tag property (list-shaped `Tags`, the map-shaped `Tags` of SSM and API Gateway v2, `UserPoolTags`, `IdentityPoolTags`, `BackupVaultTags`, `BackupPlanTags`), the stack tags and the three `aws:cloudformation:` tags are merged into that property before the resource is created or updated; a key the template sets wins. A stack-tag change on `UpdateStack` reaches the resources whose type has an update handler (the 20 types without one keep their tags and are not re-created), a nested stack passes the tags on, an empty `Tags` on `UpdateStack` or a change set removes the stack's tags (as the API documents for an empty value), more than 50 tags or an `aws:` prefixed key are refused before a stack exists, and the stack record keeps the template's own properties, so change sets and the no-change check still compare templates. Contributed by @iot-rocket.
-- **CloudFormation — the list and describe actions page their results** — `DescribeStacks`, `ListStacks`, `DescribeStackEvents`, `ListStackResources`, `ListExports`, `ListImports` and `ListChangeSets` answered the whole store in one response and ignored `NextToken`, so a paginator drained nothing and a caller that pages (`ListExports` pages at 100 values on AWS, the others at 1 MB) never saw a second page. They now return 100 items per page with a `NextToken` for the rest; a token the service did not hand out is a `ValidationError`. `DescribeStackEvents` also orders events of one millisecond newest first, so the pages are strictly reverse-chronological. Contributed by @iot-rocket.
-- **CloudFormation — `DescribeStackResource` returns the resource `Metadata`** — the `Metadata` attribute of a resource was accepted and never returned; `StackResourceDetail` now carries it as a JSON string with intrinsics interpreted, as the API reference defines it (a CDK stack's `aws:cdk:path` is the common case); a `Metadata` that resolves away or cannot be resolved comes back as declared. Contributed by @iot-rocket.
-### Fixed
-- **CloudFormation — parameter constraints are enforced** — `AllowedPattern`, `MinLength`, `MaxLength`, `MinValue` and `MaxValue` were ignored (only `AllowedValues` was checked), so a value a real account refuses deployed locally. They are checked before a stack exists, with CloudFormation's message (`Parameter 'P' must match pattern ^[a-z]+$`, measured) and a `ConstraintDescription` in place of the reason; a `CommaDelimitedList` is matched per member and a `List<Number>` is validated as numbers. Contributed by @iot-rocket.
-- **CloudFormation — an unregistered `AWS::CloudFormation::*` type is unrecognized, not a silent no-op** — `AWS::CloudFormation::Macro`, `HookVersion`, `ModuleVersion` and any typo under that prefix deployed as a placeholder with a fabricated physical id, logged at INFO, while the README promises that unsupported types do not silently succeed. The pre-flight now treats them like every other unrecognized type (`Template format error: Unrecognized resource types`); the registered ones — `WaitCondition`, `WaitConditionHandle`, `Stack`, `CustomResource` — are unaffected. Contributed by @iot-rocket.
-- **CloudFormation — the stack id addresses `GetTemplateSummary` and an UPDATE change set, and the Describe*Resource responses carry the stack name** — `GetTemplateSummary(StackName=<id>)` and `CreateChangeSet` on an existing stack looked the id up by name and answered "does not exist" while every other action accepted it; `DescribeStackResource` and `DescribeStackResources` answered a request by id with the id in `StackName`. Contributed by @iot-rocket.
-### Added
-- **CloudFormation — dynamic references resolve** — `{{resolve:ssm:...}}`, `{{resolve:ssm-secure:...}}` and `{{resolve:secretsmanager:...}}` were refused up front (before that, the literal reached the service). They now resolve at provisioning time against the in-process stores — a parameter by name and optional version, a secret by name or ARN with the optional `SecretString`, JSON key, version stage or version id segments — and `GetTemplate` keeps the literal. On update the two kinds follow what a real account does: an `ssm` reference re-resolves when the stack is updated with a changed template or parameters (an identical template is accepted and changes nothing; `UsePreviousTemplate` is still refused with "No updates are to be performed."), a `secretsmanager` reference only when the resource that carries it changes. A reference that cannot be resolved fails the resource; a reference to any other service is refused before a stack exists. Contributed by @iot-rocket.
-### Fixed
-- **CloudFormation — a change set sees `DeletionPolicy`, `UpdateReplacePolicy` and `Metadata` edits** — the diff compared `Properties` only, so a change set that only changed a resource's removal policy (a CDK `removalPolicy` edit) ended `FAILED` with "didn't contain changes" and the policy never reached the stack. Those attributes now count as a `Modify` with `Replacement: False` and are reported in `Scope` and `Details` with the target attribute, as the API reference defines them; a property change lists the property names. A `DependsOn`-only edit stays a no-change set, as on AWS. Contributed by @iot-rocket.
-
-### Added
-- **CloudFormation — `DeletionPolicy` and `UpdateReplacePolicy` are honoured** — neither attribute was read, so a `Retain` resource was deleted with its stack, when it was dropped from the template, and when a replacement retired it. A retained resource now stays and leaves the stack's scope with a `DELETE_SKIPPED` event, on stack delete, on removal and on replacement; `RetainExceptOnCreate` (the policy and the API parameter of the same name on CreateStack, UpdateStack and ExecuteChangeSet) deletes what the rolled-back operation itself created; `DeleteStack` takes `RetainResources` for a stack in `DELETE_FAILED` and refuses it otherwise. `Snapshot` deletes, since the emulator takes no snapshots. Contributed by @iot-rocket.
+## [1.5.9] — 2026-09-08
+
+### Added
+- **CloudFormation — a `WaitCondition` waits for its signals, `SignalResource` delivers them** — the handle's `Ref` is now a URL the emulator serves (`PUT` the AWS signal JSON with an empty `Content-Type`); the wait condition holds the stack until `Count` distinct SUCCESS signals arrive, a FAILURE or the `Timeout` rolls it back, signals are published to the stack events, and `Fn::GetAtt Wait.Data` is the `{UniqueId: Data}` map. The `CreationPolicy` form (`ResourceSignal`, default `PT5M`) is signalled through the new `SignalResource` action, by stack name or id. A nested stack now deploys on a worker thread, so a wait condition or custom resource inside it no longer blocks the server. Contributed by @iot-rocket.
+- **CloudFormation — stack-level tags propagate, and the `Tags` property of the common types reaches the service** — the 44 types with a tag property receive the stack tags and the three `aws:cloudformation:` tags on create and update (a key the template sets wins); `AWS::SQS::Queue`, `AWS::SNS::Topic`, `AWS::DynamoDB::Table`, `AWS::Lambda::Function`, `AWS::Logs::LogGroup` and `AWS::Kinesis::Stream` now store their own `Tags` where the service's list-tags call reads them. An empty `Tags` on `UpdateStack` removes them, more than 50 tags or an `aws:` key are refused, tags set through a service's own API survive stack updates, and a nested stack passes the tags on. Contributed by @iot-rocket.
+- **CloudFormation — `ListImports`, `UpdateTerminationProtection`, `SetStackPolicy`, `GetStackPolicy`, `CancelUpdateStack` and `ContinueUpdateRollback`** — the first four answered `InvalidAction`, the last two did not exist, so an `UPDATE_ROLLBACK_FAILED` stack had no way out. Termination protection makes `DeleteStack` refuse, `CancelUpdateStack` stops a running update before its next resource ("User Initiated"), and `ContinueUpdateRollback` retries the failed deletes, honouring `ResourcesToSkip`. Contributed by @iot-rocket.
+- **CloudFormation — the list and describe actions page** — `DescribeStacks`, `ListStacks`, `DescribeStackEvents`, `ListStackResources`, `ListExports`, `ListImports` and `ListChangeSets` returned everything and ignored `NextToken`; they now return 100 items per page with a token for the rest (`ListExports` pages at 100 values on AWS, the others at 1 MB), a foreign token is a `ValidationError`, and events of one millisecond stay strictly newest-first across pages. Contributed by @iot-rocket.
+- **CloudFormation — dynamic references resolve** — `{{resolve:ssm:...}}`, `{{resolve:ssm-secure:...}}` and `{{resolve:secretsmanager:...}}` resolve at provisioning time against the in-process stores, with the version, JSON key and version-stage segments; `GetTemplate` keeps the literal. On update an `ssm` reference re-resolves when the template or parameters changed, a `secretsmanager` reference only when its resource changed, as measured on AWS. Contributed by @iot-rocket.
+- **CloudFormation — `DeletionPolicy` and `UpdateReplacePolicy` are honoured** — a `Retain` resource now stays (with a `DELETE_SKIPPED` event) on stack delete, on removal from the template and on replacement; `RetainExceptOnCreate` and `DeleteStack`'s `RetainResources` behave as the API documents; `Snapshot` deletes, since the emulator takes no snapshots. Contributed by @iot-rocket.
+
+### Fixed
+- **Lambda — the Docker executor extracts each code and layer zip once** — every cold start unpacked the code and layers into a fresh temporary directory that accumulated (a 30 MB function wrote 60 MB of disk per cold start). Extraction is now content-addressed into one shared read-only directory per distinct zip, so a repeat cold start writes nothing; entries are swept when the referencing function or layer version goes, and a state reset clears the cache.
+- **S3 Tables / Glue — the Iceberg REST catalogs honour `upgrade-format-version`** — the commit action a Spark job sends for the `format-version` `3` table property was silently dropped, so the table kept reporting version 2; real S3 Tables supports Iceberg v3. Both catalogs now apply it atomically: re-asserting the current version is a no-op, a downgrade or a version above 3 is refused with 400 and commits nothing.
+- **CloudFormation — `Fn::Cidr`, `Fn::GetAZs`, `Fn::FindInMap` and the condition functions follow AWS** — `Fn::Cidr` now splits the block it is given (was `10.0.{i}.0/…` always; IPv6 included), `Fn::GetAZs` answers the stack's own zones (was a fabricated `a/b/c`), `Fn::FindInMap` gains `DefaultValue` and fails a missing key with `Template error: Unable to get mapping for M::x::y`, and `Fn::And`/`Fn::Or`/`Fn::Not` in a value position resolve to a boolean — all measured on AWS. Contributed by @iot-rocket.
+- **S3 — the Multi-Region Access Point alias follows the documented pattern** — the alias was 13 uuid-hex characters, so a digit-only draw was possible; it now matches S3's `^[a-z][a-z0-9]*[.]mrap$`: a letter, then twelve lowercase letters or digits. Contributed by @iot-rocket.
+- **CloudFormation — parameter constraints are enforced** — `AllowedPattern`, `MinLength`, `MaxLength`, `MinValue` and `MaxValue` were ignored; they are checked before a stack exists with CloudFormation's message (`Parameter 'P' must match pattern ^[a-z]+$`, measured) or the `ConstraintDescription`, per member for a `CommaDelimitedList`. Contributed by @iot-rocket.
+- **CloudFormation — an unregistered `AWS::CloudFormation::*` type is unrecognized, not a silent no-op** — `Macro`, `HookVersion`, `ModuleVersion` and any typo under the prefix deployed as a placeholder with a fabricated physical id; the pre-flight now refuses them like every other unrecognized type. Contributed by @iot-rocket.
+- **CloudFormation — the stack id addresses `GetTemplateSummary` and an UPDATE change set** — both looked the id up by name and answered "does not exist" while every other action accepted it; `DescribeStackResource(s)` also answered a request by id with the id in `StackName`. Contributed by @iot-rocket.
+- **CloudFormation — a change set sees `DeletionPolicy`, `UpdateReplacePolicy` and `Metadata` edits** — the diff compared `Properties` only, so a CDK `removalPolicy` edit ended `FAILED` with "didn't contain changes"; those attributes now count as a `Modify` with `Replacement: False`, reported in `Scope` and `Details`, while a `DependsOn`-only edit stays a no-change set, as on AWS. Contributed by @iot-rocket.
+- **CloudFormation — a leftover whose delete failed stays visible, and the resource record serves `ResourceStatusReason`, `Metadata` and `LastUpdatedTimestamp`** — a resource dropped from the template whose cleanup delete failed vanished from the record while it kept existing, and `DeleteStack` never retried; it now stays listed as `DELETE_FAILED` with its reason, the next update and `DeleteStack` retry it. `DescribeStackResource(s)` carry `ResourceStatusReason`; the detail names its timestamp `LastUpdatedTimestamp` as `StackResourceDetail` defines (clients dropped the `Timestamp` element it sent) and returns the resource `Metadata` with intrinsics interpreted. Contributed by @iot-rocket.
## [1.5.8] — 2026-09-05
diff --git a/pyproject.toml b/pyproject.toml
index 36ff170d..4147bdf8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "ministack"
-version = "1.5.8"
+version = "1.5.9"
description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"
readme = "README.md"
license = { file = "LICENSE" }