Skip to content

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

release v1.5.11 (#1709)

Nahuel Nucera518793e23db8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 61a394b8..dfc50977 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,72 +5,48 @@ 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.5.11] — 2026-09-13
### Added
-- **CloudFormation — `ValidateTemplate` reports the capabilities and transforms it found** — it answered `Description` and `Parameters` only, so a caller checking a template before a deploy could not see that it needs `CAPABILITY_IAM` or that it declares a transform. It now returns `Capabilities`, `CapabilitiesReason` and `DeclaredTransforms` as the API documents, using the same rule `GetTemplateSummary` already applied. Contributed by @iot-rocket.
-- **CloudFormation — a stack and a change set report their capabilities** — `DescribeStacks` and `DescribeChangeSet` left the `Capabilities` member out, so a client could not see what a deploy had acknowledged. Both report them now: a stack carries what its last `CreateStack` or `UpdateStack` acknowledged, an executed change set makes its own set the stack's, and a change set reports what it was created with. Contributed by @iot-rocket.
+- **CloudFormation — `ValidateTemplate` reports capabilities and transforms** — it answered `Description` and `Parameters` only, so a caller checking a template before a deploy could not see that it needs `CAPABILITY_IAM` or that it declares a transform. It now returns `Capabilities`, `CapabilitiesReason` and `DeclaredTransforms`, on the rule `GetTemplateSummary` already used. Contributed by @iot-rocket.
+- **CloudFormation — a stack and a change set report their capabilities** — `DescribeStacks` and `DescribeChangeSet` left the `Capabilities` member out, so a client could not see what a deploy had acknowledged. A stack reports what its last `CreateStack` or `UpdateStack` acknowledged, a change set what it was created with, and executing one hands its set to the stack. Contributed by @iot-rocket.
-### Fixed
-- **S3 — the `s3:TestEvent` no longer reaches Lambda targets** — `PutBucketNotificationConfiguration` fanned the test event out to every destination, Lambda included, but AWS sends it to SQS queues and SNS topics only; a Lambda destination is verified through its function permissions, not by invoking it. The payload carries no `Records` array, so each S3-triggered function raised on it, and because delivery goes through the async path the event was retried to `MaximumRetryAttempts` (default 2) and then routed to the function's DLQ or `OnFailure` destination, where a synthetic event AWS never sends looked like a genuinely dropped message. Any CDK stack with an S3-triggered Lambda hit this through `BucketNotificationsHandler`. Queue and topic destinations still receive the test event, and real object events still invoke the function. Contributed by @ppettitau.
### Changed
-
-- **Lambda — warm local custom runtimes** — `provided.*` bootstraps now reuse the existing subprocess worker pool instead of restarting on every invocation. Each invocation receives its request metadata through the Lambda Runtime API, concurrent calls use separate workers, and failed environments are cleaned up before reuse. Durable `provided.*` invocations retain their one-shot executor, because a bootstrap process reads its environment once, at spawn; Docker, image, and proxy execution are unchanged.
-
-### Fixed
-
-- **S3 — the `s3:TestEvent` no longer reaches Lambda targets** — `PutBucketNotificationConfiguration` fanned the test event out to every destination, Lambda included, but AWS sends it to SQS queues and SNS topics only; a Lambda destination is verified through its function permissions, not by invoking it. The payload carries no `Records` array, so each S3-triggered function raised on it, and because delivery goes through the async path the event was retried to `MaximumRetryAttempts` (default 2) and then routed to the function's DLQ or `OnFailure` destination, where a synthetic event AWS never sends looked like a genuinely dropped message. Any CDK stack with an S3-triggered Lambda hit this through `BucketNotificationsHandler`. Queue and topic destinations still receive the test event, and real object events still invoke the function. Contributed by @ppettitau.
-- **S3 — a presigned upload is no longer rejected for the checksum in its query string** — since v3.729.0 the JavaScript SDK signs `x-amz-checksum-crc32` into every presigned `PutObject` by default, computed over the *empty* body, because whoever holds the URL chooses the body later. MiniStack hoisted that parameter into the request headers alongside the user metadata a presigned URL legitimately carries there, and the header path then verified it against the real body, so a stock `getSignedUrl` upload failed with `400 BadDigest` where real S3 answers `200` and stores the object. The `x-amz-checksum-*` value parameters are now excluded from hoisting: they still take part in signature verification, so rewriting one in the URL is still `403`, but they are no longer read as a supplied integrity value. A checksum sent as a real request header is verified exactly as before. `x-amz-checksum-algorithm` and `x-amz-sdk-checksum-algorithm` keep hoisting — they name an algorithm for the server to compute rather than carrying a value, so they cannot disagree with a body, and a presigned `CreateMultipartUpload` uses either to choose the algorithm its parts are digested with.
-
-- **CloudFormation — an `AWS::ApiGateway::Method`'s `MethodResponses` and `IntegrationResponses` are provisioned** — the provisioner read the method and integration properties and discarded both response lists, so every REST API deployed from a template lost its mapped response headers. The visible casualty was the CDK's `defaultCorsPreflightOptions`, whose generated `OPTIONS` method returns the `Access-Control-Allow-*` headers through a MOCK integration's `responseParameters`: the preflight answered without a single CORS header and the browser blocked the request. That became load-bearing once `COGNITO_USER_POOLS` authorizers were enforced in 1.5.10, because the preflight can no longer fall through to a proxy integration and be answered by the application's own CORS middleware. Both lists are now provisioned onto the method, where the existing request-time mapping picks them up, and a stack update reprovisions them from the template. Contributed by @ppettitau.
-
-- **Transcribe — `StartTranscriptionJob` returns a job already `IN_PROGRESS`** — the start response reported `QUEUED` with no `StartTime`, and the job reached `IN_PROGRESS` only from the background worker, after the response had been sent. A caller that reads the status off the start response and then waits for the terminal `Transcribe Job State Change` event, rather than polling, therefore never saw an in-progress state at all: the job went straight from queued to complete. Jobs now start `IN_PROGRESS` with `StartTime` set, matching the response the AWS CLI walkthrough documents, and `TRANSCRIBE_JOB_RUN_SECONDS` covers the whole run rather than half of it. `QUEUED`, which AWS reaches only for a request that opted into job queueing through `JobExecutionSettings.AllowDeferredExecution` while the account is at its concurrent job limit, is not modelled, so a job never queues. `TRANSCRIBE_JOB_RUN_SECONDS` is settable at runtime through `/_ministack/config`. Contributed by @ppettitau.
-
-- **CloudFormation — `UpdateReplacePolicy: Retain` holds for every handler-side replacement** — 24 update handlers that replace a resource themselves (a renamed SSM parameter, CloudWatch dashboard, IoT policy or provisioning template, a Cognito user pool group or client moved to another pool, an S3 bucket policy moved to another bucket, the API Gateway REST resources, a Lambda permission, URL, event source mapping or event invoke config, a Firehose delivery stream, an OpenSearch domain) deleted the predecessor inline, so a template that retains it lost the resource, and where the physical id changed the stack still recorded `DELETE_SKIPPED` for it; only the handlers routed through the shared rename helper honoured the policy. Every inline delete now goes through one helper that reads the policy the engine publishes, the three handlers that deleted before creating create first, and the predecessor stays, with its `DELETE_SKIPPED` event where the replacement changes the physical id, as on AWS. Contributed by @iot-rocket.
-
-- **CloudFormation — a resource inside a nested stack reads its own `UpdateReplacePolicy`** — the nested-stack deploy loop never set the contextvar the engine publishes the policy in, so every handler running for a child resource saw whatever the parent's own loop had left there: a retained parent kept every child's predecessor and an unretained parent deleted a retained child's. The loop now resolves each child resource's policy the way the engine does, intrinsics included, and publishes it around that resource's update only. Contributed by @iot-rocket.
-- **Cognito — `SetIdentityPoolRoles` keeps the role mappings it is given** — the call stored `Roles` only and `GetIdentityPoolRoles` answered a hard-coded `RoleMappings: {}`, so a mapping set through the API, or declared on a CloudFormation `AWS::Cognito::IdentityPoolRoleAttachment`, was accepted and silently dropped. Both members are stored on the identity pool and served back now; the call sets the whole configuration and the API has no call that removes a mapping on its own, so an omitted `RoleMappings` clears what was there (reasoned from the API surface, not measured against a live account). The map is stored as sent rather than validated, and takes no part in credential vending, which still picks the role by `authenticated` or `unauthenticated`. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::Cognito::IdentityPoolRoleAttachment` updates in place** — the type had no update handler, so a stack update fell through to the create handler and nothing in the code said which property may change in place and which one replaces. `Roles` and `RoleMappings` are "Update requires: No interruption" on the resource reference and are re-applied to the pool the attachment already sits on, a property the template drops reverts to its create default (`SetIdentityPoolRoles` takes the whole configuration), and `IdentityPoolId` requires replacement, so the new pool is configured before the old one is cleared. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::Cognito::UserPoolResourceServer` updates in place, and a move between pools is refused** — the type had no update handler either. The physical id of a resource server is its `Identifier` alone while the record is keyed by pool and identifier, so a template that repointed `UserPoolId` provisioned a second resource server in the new pool and left the old one behind in the old pool, with no replacement for the engine to clean up: two live copies of a resource server the template declares once, both vending scopes. `Name` and `Scopes` now go through `UpdateResourceServer` on the resource server that is already there, a dropped `Scopes` reverts to the empty list `UpdateResourceServer` defaults it to, a changed `Identifier` is the rename CloudFormation allows and replaces (retained when the resource says so), and a changed `UserPoolId` under an unchanged identifier gets CloudFormation's own refusal, since `Identifier` is always a custom name. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::SQS::QueuePolicy` updates in place** — the type had no update handler, so a stack update that changed the policy fell through to create, which minted a new physical id; the engine recorded a replacement and the cleanup delete then removed `Policy` from the very queues the new document had just been written to (measured: after the update the queue had no policy at all). `PolicyDocument` and `Queues` are both No interruption on the resource reference, so the resource now keeps its physical id, writes the new document on every queue the template names and removes it from a queue dropped from `Queues`. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::SNS::TopicPolicy` updates in place** — the same defect as the queue policy: no update handler, so a changed policy fell through to create under a fresh physical id, the engine recorded a replacement and the cleanup delete removed `Policy` from the topics the new document had just been written to (measured: after the update `GetTopicAttributes` returned no policy). `PolicyDocument` and `Topics` are both No interruption on the resource reference, so the resource now keeps its physical id, writes the new document on every topic the template names and removes it from a topic dropped from `Topics`. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::SNS::Subscription` updates in place** — the type had no update handler, so a changed `FilterPolicy` or `RawMessageDelivery` re-subscribed under a fresh `SubscriptionArn` and the old subscription was deleted (measured: the `Ref` changed on every update), while the resource reference marks `DeliveryPolicy`, `FilterPolicy`, `FilterPolicyScope`, `RawMessageDelivery`, `RedrivePolicy` and `SubscriptionRoleArn` No interruption. Those now go through `SetSubscriptionAttributes` on the existing subscription, a dropped property reverts to what the create stores without it, and only `TopicArn`, `Protocol` or `Endpoint` replaces the subscription. The create also stores `DeliveryPolicy`, `RedrivePolicy` and `SubscriptionRoleArn`, which it dropped, and `SetSubscriptionAttributes` accepts `SubscriptionRoleArn` as the API does. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::Lambda::Alias` updates in place, and `ProvisionedConcurrencyConfig` reaches the service** — the type had no update handler and its create ignored `ProvisionedConcurrencyConfig` and stored `RoutingConfig` in the template's list shape (measured: `GetProvisionedConcurrencyConfig` on the alias answered `ProvisionedConcurrencyConfigNotFoundException` right after the deploy, and boto3's `GetAlias` on an alias with a `RoutingConfig` failed on the list where it expects a map). `FunctionVersion`, `Description`, `RoutingConfig` and `ProvisionedConcurrencyConfig` are No interruption on the resource reference and now go through `UpdateAlias` and `PutProvisionedConcurrencyConfig` on the existing alias, a dropped `Description` empties, a dropped `RoutingConfig` or `ProvisionedConcurrencyConfig` is removed, and `Name` or `FunctionName` replaces the alias. The routing weights are stored as the `{version: weight}` map `GetAlias` returns, on create as well. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::Logs::SubscriptionFilter` updates in place, and a group change moves it** — the type had no update handler; a changed `LogGroupName` fell through to create, which wrote the filter on the new group under its unchanged name, so the engine saw no replacement and the old group kept its copy (measured: two groups carried the filter after the update). `FilterPattern`, `DestinationArn`, `RoleArn` and `Distribution` are No interruption on the resource reference and now go through `PutSubscriptionFilter` on the existing filter, a dropped property reverts to what the create stores without it, and a changed `FilterName` or `LogGroupName` creates the new filter before the old one is removed. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::IAM::InstanceProfile` updates in place, and a named profile refuses a `Path` change** — the type had no update handler, so a `Roles` change fell through to create, which rebuilt the record with no tags and stored the roles as whole role records, on which `GetInstanceProfile` failed (measured: HTTP 500 on any CloudFormation-provisioned profile that has a role); a `Path` change on a custom-named profile was silently executed. `Roles` is No interruption on the resource reference and is now applied to the existing record, which keeps its ARN, id and API-set tags; `InstanceProfileName` and `Path` are Replacement, so a custom-named profile whose `Path` changes fails the update with CloudFormation's "cannot update a stack when a custom-named resource requires replacing" and a generated-name profile is re-created under the new path. The create stores role names, so the profile reads back. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::ApiGatewayV2::Api` updates in place** — a stack update that changed an API fell through to the create handler: a new `ApiId` and `ApiEndpoint` on every change, every route, integration and stage re-created under the new id, and with an `ms-custom-id` tag the second lookup refused the pinned id as already in use and rolled the stack back. Every property but `ProtocolType` is *No interruption* on the resource reference, so the API now keeps its id, its endpoint and the children stored under it; a property the template drops reverts to the create's default (no `CorsConfiguration`, the protocol's route selection expression, which the create hard-coded to the HTTP value for both protocols), `Tags` are reconciled, and a `ProtocolType` change replaces the API in CloudFormation's order. `Description` is stored, as `CreateApi` does. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::ApiGatewayV2::Integration` updates in place** — a stack update that changed an integration fell through to the create handler: a second integration under a new id, `Ref` flipping to it, the old one left on the API while every route's `Target` still named it. Every property but `ApiId` is *No interruption* on the resource reference, so the integration now keeps its id as `UpdateIntegration` does; a property the template drops reverts to the create's default (no `RequestParameters`, a 30 s timeout, the `POST` method), and an `ApiId` change creates the integration on the new API before the old one is removed. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::ApiGatewayV2::Route` updates in place** — a stack update that changed a route fell through to the create handler: a second route under a new id, `Ref` flipping to it, the old one left on the API with its route key still matching requests. Every property but `ApiId` is *No interruption* on the resource reference, so the route now keeps its id as `UpdateRoute` does; a property the template drops reverts to the create's default (no `AuthorizationScopes`, `AuthorizationType` `NONE`, no `AuthorizerId`), and an `ApiId` change creates the route on the new API before the old one is removed. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::ApiGatewayV2::Stage` updates in place** — a stack update that changed a stage fell through to the create handler, which rebuilt the record under the same name: `CreatedDate` reset to now and the tags map `GetStage` reports was replaced instead of reconciled. Every property but `ApiId` and `StageName` is *No interruption* on the resource reference, so the stage now keeps its record as `UpdateStage` does and refreshes `LastUpdatedDate`; a property the template drops reverts to the create's default (`AutoDeploy` false, no stage variables), `Tags` are reconciled, and a `StageName` or `ApiId` change creates the new stage before the old one is removed. Contributed by @iot-rocket.
-
-- **CloudFormation — `AWS::CloudFront::Distribution` updates in place, and a provisioned distribution is readable** — a stack update that changed a distribution fell through to the create handler: a new `Id` and `DomainName` on every change, the old distribution deleted by the engine, while `DistributionConfig` and `Tags`, the type's two properties, are both *No interruption* on the resource reference. And the create stored an empty configuration, so `GetDistribution` and `GetDistributionConfig` answered a 500 on every CloudFormation-provisioned distribution and `ListDistributions` showed empty blocks. The create now renders the template's `DistributionConfig` into what `CreateDistribution` stores, in the API's shape (a plain list becomes a `Quantity`/`Items` block, `CachedMethods` nests under `AllowedMethods`, `IPV6Enabled` is `IsIPV6Enabled`, `OriginCustomHeaders` is `CustomHeaders`, an empty block carries no `Items`, the legacy `CNAMEs`, `CustomOrigin` and `S3Origin` are dropped), with a `CallerReference` of its own and the resource `Tags`; the update keeps `Id`, `ARN`, `DomainName` and the invalidation history, stores the new configuration, rolls the `ETag`, refreshes `LastModifiedTime` and reconciles the tags, as `UpdateDistribution` does; deleting the distribution removes its tags with it. Now that the type has a tag store, it joins the table that merges the stack's own tags and the three `aws:cloudformation:` tags into a resource, as every other tag-storing type already did. Contributed by @iot-rocket.
-
-- **API Gateway v2 — `UpdateApi` keeps the description and the API key selection expression** — the call applied five members and silently discarded `Description` and `ApiKeySelectionExpression`, so an update through the API lost what the create had stored. Both are applied now, and `CorsConfiguration` follows the call's own semantics: `UpdateApi` carries the whole configuration, so an empty one removes it instead of storing a blank block. Contributed by @iot-rocket.
-- **CloudFormation — a nested stack's IAM resources need the parent's capabilities** — the check under `AUTH=true` read the parent template only, so a parent deployed without `--capabilities` provisioned a child full of IAM roles through `AWS::CloudFormation::Stack`. The child template is now checked against the set the parent acknowledged when it is read, and a child's child reads the same set, as AWS asks for the capabilities on the parent for every level of nesting; a missing one fails the nested-stack resource with the message of `InsufficientCapabilitiesException` (`Requires capabilities : [CAPABILITY_IAM]`) and the parent rolls back unless rollback is disabled. Under `AUTH=true` the child's record carries the parent's set, so `DescribeStacks` reports it there too; without `AUTH` nothing is recorded and nothing changes. Contributed by @iot-rocket.
-
-- **CloudFormation — the SAM transform reads the transforms the response reports** — `ValidateTemplate` normalises the `Transform` section in every form it takes, but the deploy path had its own normalisation that left the macro object (`Transform: {Name: AWS::Serverless-2016-10-31}`) in the list, so a template written that way was reported as declaring the SAM transform and then deployed untransformed: its `AWS::Serverless::Function` resources stayed as they were and the stack failed on an unsupported type. Both read one function now, so the response and the deploy agree about what a template declares. Contributed by @iot-rocket.
-
-- **CloudFormation — an unknown `Capabilities` value is refused** — `CreateStack`, `UpdateStack` and `CreateChangeSet` accepted any string, so a typo or a capability of another tool (`CAPABILITY_RESOURCE_POLICY`, which the CloudFormation API does not define) was kept without effect and the deploy behaved as if it had been acknowledged. The member is now checked against the three documented values with the API's parameter validation message, joined with the other request-level problems. Contributed by @iot-rocket.
-### Fixed
-- **CloudFormation — the template and stack quotas are enforced** — a template of any size, with any number of resources, parameters, outputs or mappings, and a stack name of any shape were accepted, so a template that a real account refuses deployed. `CreateStack`, `UpdateStack`, `CreateChangeSet`, `ValidateTemplate` and `GetTemplateSummary` now refuse a `TemplateBody` over 51,200 bytes and a template behind `TemplateURL` over 1,000,000 bytes; the engine refuses more than 500 resources, 200 parameters, 200 outputs, 200 mappings or 200 attributes in a mapping, a name over 255 characters, a description over 1,024 bytes and a parameter default or value over 4,096 bytes; `CreateStack` and a `CREATE` change set refuse a stack name that is not alphanumeric-and-hyphens starting with a letter or longer than 128 characters, joined with an oversized body into the one message the API's parameter validation gives. All of it before a stack record exists, with the messages of the API's parameter validation and the template format errors. `ValidateTemplate` also takes `TemplateURL` now. Contributed by @iot-rocket.
-
-- **Lambda — a Node custom resource signals its stack in the docker executor** — the response submitters the CDK bundles into its custom-resource handlers (`nodejs-entrypoint`, the provider framework, `AwsCustomResource`) build the `ResponseURL` PUT from the URL's hostname and path only and hand it to `https.request`, so under `LAMBDA_EXECUTOR=docker` the callback went out over TLS to port 443, nothing answered, and an `AwsCustomResource`-backed resource ran its API call and then hung its stack until `ServiceTimeout` (the local executor already downgraded https for the gateway). The shim the docker executor injects now turns https to the gateway hosts (the endpoint host, `host.docker.internal`, `localhost` and `MINISTACK_HOST`) on the https default port or the gateway port into plain http on the gateway port; other hosts, and those hosts on other ports, keep TLS. The local executor's own list gains `MINISTACK_HOST` as well. Contributed by @iot-rocket.
-
-- **CloudFormation — `Capabilities` are enforced under `AUTH=true`** — `CreateStack`, `UpdateStack` and `CreateChangeSet` accepted a template with IAM resources or a `Transform` whatever the request acknowledged, so a deploy that CloudFormation refuses with `InsufficientCapabilitiesException` went through. With `AUTH=true` they now answer that error (HTTP 400, `Requires capabilities : [CAPABILITY_IAM]`, measured) and create nothing: an IAM resource needs `CAPABILITY_IAM` or `CAPABILITY_NAMED_IAM`, one with a custom name `CAPABILITY_NAMED_IAM`, a template with a `Transform` `CAPABILITY_AUTO_EXPAND` on `CreateStack` and `UpdateStack` (not on a change set, as the API documents). Without `AUTH` nothing changes; `GetTemplateSummary` keeps reporting the same set. Contributed by @iot-rocket.
-
-- **Lambda — a durable invocation runs on the warm pool** — durable Python and Node.js invocations were sent to the one-shot executor, because the three `AWS_LAMBDA_DURABLE_*` variables change on every call while a pooled worker's environment is fixed when it spawns. Each of them therefore paid a fresh interpreter start and the botocore import inside the function's `Timeout`, whose default is 3 seconds, so on a loaded machine every durable invocation ended as a timeout. The values now travel in the event, the channel the X-Ray trace header and the invoke-depth counter already use, and both worker bootstraps move them into the environment before the handler runs and drop them again when the next invocation is not durable. Contributed by @iot-rocket.
+- **Lambda — warm local custom runtimes** — `provided.*` bootstraps reuse the subprocess worker pool instead of restarting on every invocation. Each invocation gets its request metadata through the Lambda Runtime API, concurrent calls lease separate workers, and a failed environment is discarded before reuse. Durable `provided.*` invocations keep the one-shot executor, since a bootstrap reads its environment once, at spawn. Contributed by @jayjanssen.
+
+### Fixed
+- **S3 — the `s3:TestEvent` no longer reaches Lambda targets** — `PutBucketNotificationConfiguration` fanned the test event out to every destination, but AWS sends it to SQS and SNS only and verifies a Lambda destination through its function permissions. The payload has no `Records` array, so every S3-triggered function raised on it, and the async path then retried it to `MaximumRetryAttempts` and dropped it in the function's DLQ, where an event AWS never sends looked like a lost message. Queue and topic destinations still receive it. Contributed by @ppettitau.
+- **S3 — a presigned upload is no longer rejected for the checksum in its query string** — current SDKs sign `x-amz-checksum-crc32` into every presigned `PutObject`, computed over the empty body, because whoever holds the URL picks the body later. MiniStack hoisted that parameter into the request headers and verified it against the real body, so a stock `getSignedUrl` upload failed with `400 BadDigest`. The checksum value parameters are no longer hoisted: they still take part in signature verification, so rewriting one is still `403`, and a checksum sent as a real header is verified as before. Contributed by @bognari.
+- **S3 — a presigned URL is verified against the credentials that signed it** — the signature was recomputed with the server's own secret, so a URL signed with an IAM user's or an STS session's key verified against the wrong one, and a deactivated key, an expired session or a session token that was never issued were all accepted. The signing key is resolved to its owner and the URL verified with that key's secret, with the exact session token required for temporary credentials: `InvalidAccessKeyId` (403) for an unknown or inactive key, `ExpiredToken` or `InvalidToken` (400) for a bad token. Under `AUTH=true` an HTTP request also resolves its key to the owning account and `GetSessionToken` refuses temporary credentials. Contributed by @Areson.
+- **Lambda — an SDK call from a function runs under its execution role** — under `AUTH=true` every runtime received account-root credentials, so a call from a handler bypassed the role the function declares and a policy that should have denied it did nothing. Each invocation now gets temporary credentials for its `Role` on the warm workers, the Docker and provided runtimes and the one-shot executor, and the IAM layer resolves the assumed role's account, a table's index ARNs and projection keys, and an EventBridge `PutEvents` bus. Contributed by @adamkeener.
+- **Lambda — a Node custom resource signals its stack in the docker executor** — the response submitters the CDK bundles into its custom-resource handlers build the `ResponseURL` PUT from the URL's hostname and path only and hand it to `https.request`, so under `LAMBDA_EXECUTOR=docker` the callback went out over TLS to port 443, nothing answered, and the resource hung its stack until `ServiceTimeout`. The shim the executor injects now turns https to the gateway hosts, on the https default port or the gateway port, into plain http on the gateway port; any other host or port keeps TLS. Contributed by @iot-rocket.
+- **Lambda — a durable invocation runs on the warm pool** — durable Python and Node.js invocations went to the one-shot executor, because the three `AWS_LAMBDA_DURABLE_*` variables change per call while a pooled worker's environment is fixed at spawn. Each paid a fresh interpreter start inside the function's `Timeout`, whose default is 3 seconds, so on a loaded machine every durable invocation timed out. The values travel beside the payload now, and both bootstraps apply them before the handler runs and drop them when the next invocation is not durable. Contributed by @iot-rocket.
+- **Lambda — two durable executions of one function no longer share a callback** — the `CallbackId` was the operation id, which the durable SDK derives from the workflow position, so two concurrent executions registered the same id: the second overwrote the first, an answer sent for one completed the other, and the abandoned execution's own callback then answered `CallbackTimeoutException`. The id is unique per execution and stable across replays and restarts. Reported by @Nhollas.
+- **ECS — `RunTask` returns before the image is pulled** — the call blocked while Docker pulled the image and started the container. A task is registered and returned immediately, and walks `PENDING` → `ACTIVATING` (the pull, with `pullStartedAt` stamped) → `RUNNING` → `STOPPED`, with a failed start reported as `TaskFailedToStart`. `StopTask` and a reset no longer race the starter, and `pendingCount` and `runningCount` keep counting `PENDING` and `RUNNING` only. Contributed by @po-luka-miletic.
+- **Transcribe — `StartTranscriptionJob` returns a job already `IN_PROGRESS`** — the start response reported `QUEUED` with no `StartTime` and the job reached `IN_PROGRESS` only from the background worker, so a caller that reads the status off the response and then waits for the terminal event never saw an in-progress state. Jobs start `IN_PROGRESS` with `StartTime` set, and `TRANSCRIBE_JOB_RUN_SECONDS` covers the whole run. `QUEUED`, which AWS reaches only through `JobExecutionSettings.AllowDeferredExecution` at the concurrent job limit, is not modelled. Contributed by @ppettitau.
+- **Cognito — `SetIdentityPoolRoles` keeps the role mappings it is given** — the call stored `Roles` only and `GetIdentityPoolRoles` answered a hard-coded `RoleMappings: {}`, so a mapping set through the API or declared on a CloudFormation attachment was accepted and dropped. Both members are stored on the pool and served back; the call sets the whole configuration, so an omitted `RoleMappings` clears what was there. The map is stored as sent and takes no part in credential vending. Contributed by @iot-rocket.
+- **API Gateway v2 — `UpdateApi` keeps the description and the API key selection expression** — the call applied five members and discarded `Description` and `ApiKeySelectionExpression`, so an update lost what the create had stored. Both are applied now, and a `CorsConfiguration` on the call replaces the stored one; removing one is `DeleteCorsConfiguration`, which `DELETE /v2/apis/{apiId}/cors` serves. Contributed by @iot-rocket.
+- **EC2 — a security group's IPv6 and prefix-list rules survive the read** — `DescribeSecurityGroups` rendered `ipv6Ranges` and `prefixListIds` as empty elements and dropped every range description, so a rule authorized with an IPv6 CIDR or a prefix list was invisible on the next read and Terraform planned the same egress change on every run. All three families are reported, each with its description. Reported by @edersonbrilhante.
+- **EC2 — a launch template keeps its metadata options and shutdown behaviour** — `CreateLaunchTemplate` parsed neither `MetadataOptions` nor `InstanceInitiatedShutdownBehavior`, so both were discarded at creation and every refresh reported them as newly added. The IMDS settings and the shutdown behaviour are stored and reported on the version, with the response-only `State` the API carries. Reported by @edersonbrilhante.
+- **SSM — a `SecureString` parameter reports its `KeyId`** — the key was stored and never served: `DescribeParameters` and `GetParameterHistory` left the member out, so a caller read an empty key and updated the parameter on every run. Both report it for `SecureString` parameters, the only ones it applies to, and an empty `KeyId` on the request means the account default. `GetParameter` is unchanged, since its response shape has no such member. Reported by @edersonbrilhante.
+- **CloudWatch Logs — a log group reports its class and its KMS key** — `DescribeLogGroups` omitted `logGroupClass` and `kmsKeyId` and `CreateLogGroup` discarded both, so a consumer reading the class back saw an empty value and planned a replacement of a group that had not changed. Both are stored and reported, with the API's default of `STANDARD` and an unknown class refused, and `AWS::Logs::LogGroup` carries `LogGroupClass` and `KmsKeyId` through the stack. Reported by @edersonbrilhante.
+- **CloudFormation — `UpdateReplacePolicy: Retain` holds for every handler-side replacement** — 24 update handlers that replace a resource themselves deleted the predecessor inline, so a template that retains it lost the resource while the stack still recorded `DELETE_SKIPPED`; only the handlers on the shared rename helper honoured the policy. Every inline delete goes through one helper that reads the policy the engine publishes, and the three handlers that deleted before creating create first. Contributed by @iot-rocket.
+- **CloudFormation — a resource inside a nested stack reads its own `UpdateReplacePolicy`** — the nested-stack deploy loop never published the policy, so a child resource's handler saw whatever the parent's loop had left behind: a retained parent kept every child's predecessor, an unretained one deleted a retained child's. Each child resource's policy is now resolved the way the engine resolves it, intrinsics included, and published around that resource's update only. Contributed by @iot-rocket.
+- **CloudFormation — a nested stack's IAM resources need the parent's capabilities** — the check under `AUTH=true` read the parent template only, so a parent deployed without `--capabilities` provisioned a child full of IAM roles through `AWS::CloudFormation::Stack`. The child template is checked against the set the parent acknowledged, and a child's child reads the same set; a missing one fails the nested-stack resource with `Requires capabilities : [CAPABILITY_IAM]` and the parent rolls back. Without `AUTH` nothing changes. Contributed by @iot-rocket.
+- **CloudFormation — an unknown `Capabilities` value is refused** — `CreateStack`, `UpdateStack` and `CreateChangeSet` accepted any string, so a typo or another tool's capability was kept without effect and the deploy behaved as if it had been acknowledged. The member is checked against the three documented values, joined with the other request-level problems into one message. Contributed by @iot-rocket.
+- **CloudFormation — the SAM transform reads the transforms the response reports** — `ValidateTemplate` normalises the `Transform` section in every form it takes, while the deploy path had its own normalisation that left the macro object (`Transform: {Name: AWS::Serverless-2016-10-31}`) unmatched, so such a template was reported as declaring the SAM transform and then deployed untransformed, failing on `AWS::Serverless::Function`. Both read one function now. Contributed by @iot-rocket.
+- **CloudFormation — an `AWS::ApiGateway::Method`'s `MethodResponses` and `IntegrationResponses` are provisioned** — the provisioner read the method and integration properties and discarded both response lists, so a REST API deployed from a template lost its mapped response headers. The visible casualty was the CDK's `defaultCorsPreflightOptions`, whose generated `OPTIONS` method returns the `Access-Control-Allow-*` headers through a MOCK integration: the preflight answered without a single CORS header and the browser blocked the request. Both lists are provisioned onto the method now, and a stack update reprovisions them. Contributed by @ppettitau.
+- **CloudFormation — `Fn::GetAtt` on a user pool client's `ClientSecret` resolves** — the provisioner returned `ClientId` alone, so a template reading `ClientSecret` or `Name` failed with `Requested attribute ClientSecret does not exist in schema` and rolled the stack back, on the create and on the update that follows it. All three attributes the type declares are returned, on both paths; a client created without `GenerateSecret` reads empty. Reported by @JoshuaSmeda.
+- **CloudFormation — `AWS::Cognito::IdentityPoolRoleAttachment` updates in place** — the type had no update handler, so a stack update fell through to the create. `Roles` and `RoleMappings` are re-applied to the pool the attachment sits on and a dropped property reverts to its create default, since `SetIdentityPoolRoles` takes the whole configuration; a changed `IdentityPoolId` replaces, configuring the new pool before clearing the old. Contributed by @iot-rocket.
+- **CloudFormation — `AWS::Cognito::UserPoolResourceServer` updates in place, and a move between pools is refused** — the physical id is the `Identifier` alone while the record is keyed by pool and identifier, so a template that repointed `UserPoolId` left two live resource servers vending the same scopes. `Name` and `Scopes` go through `UpdateResourceServer` on the existing server, a changed `Identifier` replaces, and a changed `UserPoolId` gets CloudFormation's refusal to replace a custom-named resource. Contributed by @iot-rocket.
+- **CloudFormation — `AWS::SQS::QueuePolicy` and `AWS::SNS::TopicPolicy` update in place** — neither had an update handler, so a changed policy fell through to create under a fresh physical id; the engine recorded a replacement and the cleanup delete then stripped the policy the create had just written, leaving the queue or topic with none. Both properties are No interruption, so the resource keeps its id, writes the document on every queue or topic the template names and removes it from one the template dropped. Contributed by @iot-rocket.
+- **CloudFormation — `AWS::SNS::Subscription` updates in place** — a changed `FilterPolicy` or `RawMessageDelivery` re-subscribed under a fresh `SubscriptionArn`, so `Ref` moved on every update. The No-interruption attributes go through `SetSubscriptionAttributes` on the existing subscription and a dropped one reverts to the create default, while `TopicArn`, `Protocol` and `Endpoint` replace. The create also stores `DeliveryPolicy`, `RedrivePolicy` and `SubscriptionRoleArn`, which it dropped. Contributed by @iot-rocket.
+- **CloudFormation — `AWS::Lambda::Alias` updates in place, and `ProvisionedConcurrencyConfig` reaches the service** — the create ignored `ProvisionedConcurrencyConfig` and stored `RoutingConfig` in the template's list shape, on which boto3's `GetAlias` fails. The No-interruption properties go through `UpdateAlias` and the provisioned-concurrency put and delete on the existing alias, `Name` or `FunctionName` replaces, and the routing weights are stored as the `{version: weight}` map `GetAlias` returns. Contributed by @iot-rocket.
+- **CloudFormation — `AWS::Logs::SubscriptionFilter` updates in place, and a group change moves it** — a changed `LogGroupName` fell through to create, which wrote the filter on the new group under its unchanged name, so the engine saw no replacement and the old group kept its copy. The No-interruption properties go through `PutSubscriptionFilter` on the existing filter, and a changed `FilterName` or `LogGroupName` creates the new filter before removing the old. Contributed by @iot-rocket.
+- **CloudFormation — `AWS::IAM::InstanceProfile` updates in place, and a named profile refuses a `Path` change** — a `Roles` change fell through to create, which rebuilt the record without its tags and stored whole role records, on which `GetInstanceProfile` answered 500. `Roles` is applied to the existing record, which keeps its ARN, id and tags; `InstanceProfileName` and `Path` replace, so a custom-named profile whose `Path` changes fails the update as CloudFormation fails it. Contributed by @iot-rocket.
+- **CloudFormation — the four HTTP API types update in place** — `AWS::ApiGatewayV2::Api`, `Integration`, `Route` and `Stage` had create handlers only, so a stack update minted a new id for each: the API re-created every child under a new `ApiId` and `ApiEndpoint` (and rolled the stack back when the id was pinned with `ms-custom-id`), an integration or route left its predecessor on the API while `Ref` moved, and a stage lost its `CreatedDate` and its tags. Each now updates through the service's own call and keeps its id, a dropped property reverts to the create's default, and only `ProtocolType`, `ApiId` or `StageName` replaces. Contributed by @iot-rocket.
+- **CloudFormation — `AWS::CloudFront::Distribution` updates in place, and a provisioned distribution is readable** — a stack update minted a new `Id` and `DomainName` and the engine deleted the old distribution, though both of the type's properties are No interruption; and the create stored an empty configuration, so `GetDistribution` and `GetDistributionConfig` answered 500 on every CloudFormation distribution. The create renders the template's `DistributionConfig` into the API's shape, and the update keeps `Id`, `ARN`, `DomainName` and the invalidation history, rolls the `ETag` and reconciles tags, as `UpdateDistribution` does. Contributed by @iot-rocket.
+- **CloudFormation — the five CloudFront policy, OAC and function types update in place** — `CachePolicy`, `OriginRequestPolicy`, `ResponseHeadersPolicy`, `OriginAccessControl` and `Function` had create handlers only, so an update fell through to a create that found the record it had made before and returned it untouched: the stack reported `UPDATE_COMPLETE` while the service kept serving the old configuration. Each updates its record now, keeping the id a distribution `Ref`s, and a rename onto a taken name is refused. Contributed by @iot-rocket.
## [1.5.10] — 2026-09-10
diff --git a/README.md b/README.md
index 3025bd7d..1e2d4724 100644
--- a/README.md
+++ b/README.md
@@ -511,7 +511,7 @@ subnet = ec2.create_subnet(
| `AWS::AppSync::ApiKey` | API key ID | ApiKey, Arn |
| `AWS::SecretsManager::Secret` | Secret ARN | — |
| `AWS::Cognito::UserPool` | Pool ID | Arn, ProviderName |
-| `AWS::Cognito::UserPoolClient` | Client ID | — |
+| `AWS::Cognito::UserPoolClient` | Client ID | ClientId, ClientSecret, Name |
| `AWS::Cognito::UserPoolResourceServer` | Identifier | — |
| `AWS::Cognito::IdentityPool` | Pool ID | — |
| `AWS::Cognito::IdentityPoolPrincipalTag` | `<pool ID>\|<provider name>` | — |
diff --git a/pyproject.toml b/pyproject.toml
index cc778e41..8085a42b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "ministack"
-version = "1.5.10"
+version = "1.5.11"
description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"
readme = "README.md"
license = { file = "LICENSE" }