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.5.8 (#1645)
Nahuel Nucerab2b5510cd4f9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 75eb5a6d..f5091a15 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,40 +5,32 @@ 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.8] — 2026-09-05-### Fixed-- **CloudFormation — a rolled-back update leaves the stack reporting what it ran before** — after `UPDATE_ROLLBACK_COMPLETE`, `GetTemplate` returned the template that failed and `DescribeStacks` the failed update's parameters and tags, so a `cdk diff` after a failed deploy compared against the wrong base. The rollback now restores the previous template body, parameters and tags together with the resources and outputs. Contributed by @iot-rocket.-- **CloudFormation — an export counts as in use only when a stack imports it** — `DeleteStack` searched the serialized templates of every other stack for the export name, so a stack that merely carried the name in a string value blocked the delete, while an import through a resolved `Fn::ImportValue` argument (`Fn::Sub` with a parameter) did not. The check now walks the other stacks' `Fn::ImportValue` uses and resolves their arguments against those stacks' own parameters, as CloudFormation does. Contributed by @iot-rocket.-- **CloudFormation — `UpdateStack` without changes is refused** — an identical `TemplateBody`, or `UsePreviousTemplate` with unchanged parameters, ran an empty update (`UPDATE_IN_PROGRESS` / `UPDATE_COMPLETE` events) where CloudFormation answers `ValidationError: No updates are to be performed.`, so a "deploy until nothing changes" loop never ended. The request is refused when the template, every resolved parameter and the tags (when sent) equal what the stack runs; a changed parameter value or tag set is still an update. Contributed by @iot-rocket.-- **CloudFormation — unrecognized resource types are rejected up front, `Fn::GetAtt` to a missing attribute fails the stack** — a template with a resource type the emulator does not know provisioned every resource ahead of it, failed on that one and rolled the stack back; `CreateStack`, `UpdateStack`, `CreateChangeSet` and `ValidateTemplate` now refuse it synchronously with CloudFormation's own `Template format error: Unrecognized resource types: [...]` and leave no stack (or `REVIEW_IN_PROGRESS` placeholder) behind. Dynamic references (`{{resolve:ssm:...}}`, `{{resolve:secretsmanager:...}}`), which the emulator does not resolve, are refused the same way instead of reaching the service as literal strings. `Fn::GetAtt` to an attribute a resource does not expose answered with the physical id, a silently wrong value; it now fails the operation with `Requested attribute X does not exist in schema for T` and the stack rolls back, matching what a real account does. Outputs are resolved before the success path commits, so a failing output rolls back too and registers no export. Contributed by @iot-rocket.-### Added-- **CloudFormation — `AWS::IoT::ThingGroup` provisions** — a stack with a thing group rolled back with `Unsupported resource type` while the thing-group API worked, so a fleet modelled for jobs could not deploy. The type now provisions through `CreateThingGroup` (name generated when `ThingGroupName` is omitted, `ThingGroupProperties` and `ParentGroupName` applied, the parent reported under `thingGroupMetadata` by `DescribeThingGroup`), `Ref` returns the thing group id and `Fn::GetAtt` serves `Arn` and `Id`, as the resource reference documents. `ThingGroupProperties` updates in place through `UpdateThingGroup` (a dropped description or attribute set is cleared); `ThingGroupName` and `ParentGroupName` require replacement — the new group is created before the old one is removed, and a parent change under an unchanged custom name gets CloudFormation's own refusal. `QueryString` (dynamic groups) and `Tags` are accepted without effect: the service has neither. Contributed by @iot-rocket.-- **CloudFront — the policy, OAC and function types provision from CloudFormation** — `AWS::CloudFront::CachePolicy`, `OriginRequestPolicy`, `ResponseHeadersPolicy`, `OriginAccessControl` and `Function` had complete APIs and no CloudFormation provisioner, so a CDK app declaring any of them rolled the stack back with `Unsupported resource type` while the same objects were creatable over the API. Each type now provisions by converting its CFN properties to the element the service's own config parser accepts, so validation, defaults and the stored record are identical to the API path, and `Ref`/`Fn::GetAtt` return the documented values (policy `Id`, OAC `Id`, function `FunctionARN`). Deletes are wired; an update replaces rather than mutating in place. Contributed by @mm-salesqueze.-- **S3 — Multi-Region Access Points deploy and serve** — `AWS::S3::MultiRegionAccessPoint` rolled the stack back with `Unsupported resource type` and the MRAP hostname resolved nowhere, so a CDK app fronting regional buckets with one could not deploy. The type now provisions (minting the `.mrap`-suffixed alias, the shape S3 uses, and remembering its member buckets) and `<alias>.accesspoint.s3-global.amazonaws.com` resolves onto the existing virtual-hosted S3 path, so path-style rewriting, IAM enforcement and the handler apply unchanged. The member whose bucket region matches the request region is served, else the first. State is account-scoped, cleared by `/_ministack/reset` and persisted. SigV4A, which S3 requires for an MRAP, is not verified — consistent with the documented no-SigV4 stance: such a request has its presign parameters dropped and is served rather than refused for a signature that could never have matched, and because a SigV4A credential scope carries no region it falls back to the first member. The s3control control plane (`CreateMultiRegionAccessPoint` and the async request token, Get/List/Delete, policies) is not included. Contributed by @mm-salesqueze.-- **CloudFormation — the Cognito resources update in place** — a stack update that changed an `AWS::Cognito::UserPool`, `UserPoolClient`, `IdentityPool` or `UserPoolGroup` fell through to the type's create handler, and for the three with a generated id that meant a second resource under a new id: `Ref` flipped to the new one, the old one was orphaned together with its data (the users in a pool, the role mapping of an identity pool) and nothing in the stack events said so. The four now update the existing record through the service's own path (`UpdateUserPool`, `UpdateUserPoolClient`, `UpdateIdentityPool`, `AddCustomAttributes` for a grown `Schema`; a group's `Description`, `Precedence` and `RoleArn` directly, since the service has no `UpdateGroup`), keeping the physical id and everything stored behind it, and a property the new template drops reverts to the default `CreateUserPool` / `CreateUserPoolClient` fills in, as the resource reference says Cognito does. The pool and the app client are also created through those two calls now, so the record carries every property the update can change (`DeletionProtection`, `EmailConfiguration`, `AccountRecoverySetting`, token validity, `PreventUserExistenceErrors`, …) instead of the handful the create handler copied, and a replaced client carries its whole template over. The properties the resource references mark *Replacement* replace: a `UserPoolClient` whose `UserPoolId` or `GenerateSecret` changed, and a renamed or moved group, are created before the old one is removed and `Ref` follows the new id, while a move to another pool under an unchanged `GroupName` gets CloudFormation's own refusal for a custom-named resource. `AliasAttributes`, `UsernameAttributes` and `UsernameConfiguration` are marked *No interruption* on the reference, but the first two are fixed at `CreateUserPool` and the reference itself calls the third immutable once set, so a change fails the update with a message naming the property rather than altering the record. A group declared without `Precedence` gets none, the null the reference documents as the default, instead of 0; `Fn::GetAtt` gains `UserPoolId` on the pool, `ClientId` on the client and `Name` on the identity pool. Contributed by @iot-rocket.-- **CloudFormation — `EnabledMfas` applies on an `AWS::Cognito::UserPool` update** — the property is *No interruption* on the resource reference and creating a pool with `SOFTWARE_TOKEN_MFA` in it already switched the software-token block on, but an update that added or removed the entry left `GetUserPoolMfaConfig` where it was, so a CDK `mfaSecondFactor` change never reached the emulated pool. The update now goes through `SetUserPoolMfaConfig`: the entry arriving switches the block on, its removal or the property being dropped switches it off, and a pool that never listed it is left without the block. Contributed by @iot-rocket.-- **CloudFormation — `AWS::SecretsManager::Secret` updates in place** — a stack update that changed a secret fell through to the create handler, which minted a second secret under a new ARN: `Ref` and `GetAtt Arn` flipped to it, the original was orphaned together with its versions, and nothing in the stack events said so. The secret now updates through `UpdateSecret` under the same ARN: a changed `SecretString` or `GenerateSecretString` publishes a new `AWSCURRENT` version and the previous one stays behind as `AWSPREVIOUS`; `Description` and `KmsKeyId` are sent only when the template declares or drops them, so a value set outside the stack on a property the template never declared is left alone; `ReplicaRegions` is applied on create and update through `ReplicateSecretToRegions`, and deleting the stack purges the replicas with the secret. `Name` requires replacement and follows the convention already in place: the renamed secret is created before the old one is deleted. Known limits: `Ref` still returns the secret name where AWS returns the ARN (set by the create handler, unchanged here; `GetAtt Arn` carries the ARN, which the reference documents as `Id`), `Type` is not stored by the Secrets Manager service and is ignored, and a region dropped from `ReplicaRegions` keeps its replica because the service has no `RemoveRegionsFromReplication`. Contributed by @iot-rocket.-- **CloudFormation — `AWS::Events::Rule` updates in place** — a stack update that changed a rule fell through to the create handler, which rebuilt the rule record and its target list from the template alone: a target added with `PutTargets` outside the stack was gone, and a target the template had dropped stayed. The rule now updates through `PutRule`, `PutTargets` and `RemoveTargets` under the same name and ARN — the declared targets are reconciled, an undeclared one rides along — and `EventBusName` moves the rule to the other bus under the same name with its targets and tags, the "some interruptions" the resource reference documents. `Tags` are applied on create and reconciled on update through `TagResource` / `UntagResource`, a tag added outside the stack stays, and `Fn::GetAtt` answers the documented `RuleName`. `Name` requires replacement and follows the convention already in place: the renamed rule is created before the old one is deleted. Contributed by @iot-rocket.-- **CloudFormation — `AWS::StepFunctions::StateMachine` updates in place** — a stack update that changed a state machine's definition, substitutions, role, logging or tags fell through to the create handler, which overwrote the record wholesale: the executions and versions behind the ARN were gone, `Tags` were never applied, and nothing in the stack events said so. The machine now updates through `UpdateStateMachine` under the same ARN, keeping its executions; a dropped `LoggingConfiguration` reverts to `OFF`, tags reconcile through `TagResource` / `UntagResource`, and `Fn::GetAtt` serves `StateMachineRevisionId`. `StateMachineName` and `StateMachineType` require replacement and follow the conventions already in place: a renamed machine is created before the old one is deleted, a type change under an unchanged custom name gets CloudFormation's own refusal, and under a generated name the update fails with a message naming the property, since the deterministic name cannot yield a fresh identity. `TracingConfiguration` and `EncryptionConfiguration` are accepted without effect, the store has no field for them. Contributed by @iot-rocket.-- **CloudFormation — `AWS::CloudWatch::Alarm` updates in place** — a stack update that changed an alarm fell through to the create handler, which rewrote the record with a fresh `StateUpdatedTimestamp` on every update, so an alarm that had been in `ALARM` for an hour reported a state change that never happened. The alarm now updates as `PutMetricAlarm` does: the configuration is rewritten under the same name and ARN, a property left out of the template falls back to its default, and the state, its reason, its timestamp and the history stay, as CloudFormation documents. `Tags` are applied on create and update through the alarm's tag set (`PutMetricAlarm` ignores them on an existing alarm). `AlarmName` requires replacement and follows the convention already in place: the renamed alarm is created before the old one is deleted; an alarm deleted behind the stack's back is recreated the same way. `Metrics` (metric math) stays unsupported, as on create. Contributed by @iot-rocket.-- **CloudFormation — `AWS::IAM::Policy` updates in place** — a stack update that changed an inline policy's document, its name or its `Roles` / `Users` / `Groups` fell through to the create handler, which rebuilt the record under a fresh policy id and attached it again, so `GetAtt Id` changed on every edit and `AttachmentCount` drifted from the attachments the entities actually held. Every property of the resource updates with no interruption on AWS, and now it does here: a new `PolicyDocument` becomes the default version through the IAM module's own `CreatePolicyVersion` (pruning at the five-version cap), the entity lists reconcile through attach and detach — the two steps the `AWS::IAM::ManagedPolicy` handler runs, now shared — and a new `PolicyName` re-keys the record under the ARN derived from it, keeping the policy id, the version history and every entity's attachment, with `Ref` following the new name. Deleting either policy type now detaches it from its entities before the record goes, so a role no longer keeps a dangling ARN in its attached list. Contributed by @iot-rocket.-- **CloudFormation — `AWS::ApiGateway::Authorizer` updates in place** — a stack update that changed an authorizer fell through to the create handler: a second authorizer under a new id, `Ref` flipping to it, the old one left on the API. Every property but `RestApiId` is *No interruption* on the resource reference, so the authorizer now updates through `UpdateAuthorizer` under its id; a property the template drops reverts to the value the create fills in (a 300 s result TTL, the `Authorization` header as identity source), `AuthType` is kept as `GetAuthorizer` reports it, and a `RestApiId` change replaces the authorizer in CloudFormation's order. Contributed by @iot-rocket.-- **CloudFormation — `AWS::ApiGateway::Deployment` updates in place** — a deployment whose `Description`, `StageName` or `StageDescription` changed fell through to the create handler: a second deployment under a new id, `Ref` flipping to it, the first left on the API. The three properties are *No interruption* on the resource reference, so the deployment keeps its id: the description patches it, a changed stage name or stage description deploys the same deployment to that stage (a stage the template stops naming stays, as on AWS), and only `RestApiId` and `DeploymentCanarySettings`, which require replacement, create a new one. `StageDescription` is read as the object the reference defines (`Description`, `Variables`), and a failed `CreateDeployment` fails the stack instead of recording an empty id. Contributed by @iot-rocket.-- **CloudFormation — `AWS::KMS::Alias` updates in place** — a stack update that changed an alias fell through to the create handler, which overwrote the record under the same name, and a renamed alias left the old name behind. `TargetKeyId` is *No interruption* on the resource reference, so a changed target re-points the alias under its name as `UpdateAlias` does; `AliasName` requires replacement and the new alias is created before the engine removes the old one. The create now checks the two constraints the reference states — the `alias/` prefix and the reserved `alias/aws/` prefix — and requires `TargetKeyId`. Contributed by @iot-rocket.--### Fixed-- **CloudFormation — `AWS::Events::Rule` reports the rule ARN the EventBridge service reports** — `Fn::GetAtt` `Arn` on a rule was built with the bus name in every case, so a rule on the default bus answered `rule/default/<name>` while `DescribeRule` and `ListRules` for the same rule answered `rule/<name>`; a permission or a target keyed on the template's ARN never matched the service's. The provisioner now derives the ARN through the service's own helper: no bus segment on the default bus, `rule/<bus>/<name>` on a custom one. Contributed by @iot-rocket.-- **CloudFormation — `AWS::Cognito::UserPool` reads `UserPoolName`** — the provisioner read `PoolName`, the API's name for the property, where the resource reference defines `UserPoolName`, so every pool declared with the documented property came up under a generated `<stack>-<logical id>` name and `ListUserPools` never showed the name the template gave it. `UserPoolName` is honoured now; `PoolName` stays accepted for templates written against MiniStack. Contributed by @iot-rocket.-- **CloudWatch — `PutMetricAlarm` keeps the state timestamp of an existing alarm** — re-putting an alarm stamped a fresh `StateUpdatedTimestamp` on every call, so an alarm that had been in `ALARM` for an hour reported a state change that never happened whenever its configuration was touched. The state, its reason and its timestamp now stay across the re-put and only `AlarmConfigurationUpdatedTimestamp` moves, as the API reference documents ("its state is left unchanged, but the update completely overwrites the previous configuration of the alarm"); both request encodings. Contributed by @iot-rocket.-- **CloudFormation — `AWS::Lambda::Permission` is replaced on update and removed on delete** — a stack update that changed a permission fell through to the create handler and appended a second statement under the same Sid, so the function policy carried both the old and the new principal; a permission declared without an `Id` was never removed at all, because the delete looked for an empty Sid where the create had used the logical id; and `EventSourceToken`, `FunctionUrlAuthType`, `InvokedViaFunctionUrl`, `PrincipalOrgID` and `SourceAccount` were dropped on the way to the statement. Every property of the type requires replacement, so an update now removes the old statement before adding the new one, the delete resolves the Sid exactly as the create does, and create and update go through the Lambda service's AddPermission path, which now keeps all nine documented properties as statement conditions. Contributed by @iot-rocket.-### Fixed-- **IAM enforcement — the remaining S3 operations authorize as S3 documents them** — with `AUTH=true`, a browser `POST Object` was checked as `s3:DeleteObject`, a request naming a `versionId` as the unversioned action, `DeleteObjects` once against the bucket ARN (so a grant on `arn:aws:s3:::bucket/*` denied every batch delete), `CopyObject` / `UploadPartCopy` without `s3:GetObject` on the source, `GetObjectAttributes` without its `s3:GetObject` companion, `x-amz-bypass-governance-retention` without `s3:BypassGovernanceRetention`, and the sub-resources without a table row (`accelerate`, `requestPayment`, `publicAccessBlock`, `ownershipControls`, `intelligent-tiering`, `metrics`, `analytics`, `inventory`, `object-lock`, `policyStatus`, `retention`, `legal-hold`, `attributes`, `select`, `torrent`) fell to the method default. Each now maps to the action the S3 reference lists, a `versionId` resolves to the `*Version*` action, and both enforcement sites run the extra per-request checks (per key, source object, attributes pair, governance bypass). Contributed by @iot-rocket.### Added+- **CloudFormation — `AWS::IoT::ThingGroup` provisions** — a stack carrying a thing group rolled back with `Unsupported resource type` while the thing-group API worked. The type now provisions through `CreateThingGroup` (`ThingGroupProperties` and `ParentGroupName` applied, a name generated when `ThingGroupName` is omitted), `Ref` returns the thing group id and `Fn::GetAtt` serves `Arn` and `Id`, as the resource reference documents; `ThingGroupProperties` updates in place, while `ThingGroupName` and `ParentGroupName` require replacement, a parent change under an unchanged custom name getting CloudFormation's own refusal. `QueryString` (dynamic groups) and `Tags` are accepted without effect: the service models neither. Contributed by @iot-rocket.+- **CloudFront — the policy, OAC and function types provision from CloudFormation** — `AWS::CloudFront::CachePolicy`, `OriginRequestPolicy`, `ResponseHeadersPolicy`, `OriginAccessControl` and `Function` had complete APIs and no provisioner, so a CDK app declaring any of them rolled the stack back with `Unsupported resource type`. Each now provisions by converting its properties to the element the service's own config parser accepts, `Ref`/`Fn::GetAtt` return the documented values (policy `Id`, OAC `Id`, function `FunctionARN`), deletes are wired, and an update replaces rather than mutating in place. Contributed by @mm-salesqueze.+- **S3 — Multi-Region Access Points deploy and serve** — `AWS::S3::MultiRegionAccessPoint` rolled the stack back with `Unsupported resource type` and the MRAP hostname resolved nowhere. The type now provisions, minting the `.mrap`-suffixed alias S3 uses and remembering its member buckets, and `<alias>.accesspoint.s3-global.amazonaws.com` resolves onto the existing virtual-hosted S3 path — the member whose bucket region matches the request region is served, else the first. SigV4A is not verified, consistent with the documented no-SigV4 stance, and the s3control control plane is not included. Contributed by @mm-salesqueze.+- **RDS — planned Aurora MySQL switchover runs on the data plane** — `SwitchoverGlobalCluster` (and `FailoverGlobalCluster` without data loss allowed) on a provisioned two-member Aurora MySQL 8 global cluster now performs a coordinated no-data-loss writer exchange: the source writer is fenced and drained, GTID convergence awaited, replication reversed and verified, and the promoted target verified writable, with conflicting mutations blocked mid-operation and recovery state persisted across restarts — an interrupted switchover is repaired by retrying the same request. Non-native configurations and `AllowDataLoss=true` keep the metadata-only path. Contributed by @Areson.- **RDS — `FailoverDBCluster` promotes replicated PostgreSQL readers** — with `MINISTACK_RDS_PG_CLUSTER_REPLICATION=1`, failover now calls `pg_promote()` on the selected hot standby, makes it the writer endpoint, and re-clones the former writer with `pg_basebackup` as a read-only standby. Metadata changes only after promotion succeeds; shared-container clusters retain their existing metadata-only behavior. Contributed by @kiran01bm.+### Fixed-- **CloudFormation — a failed update keeps the pre-existing resources when it rolls back** — the rollback of a failed stack update deleted every resource the run had touched, and a run touches every resource in the template: unchanged resources and resources updated in place went down together with what the update had actually created, while the restored stack still recorded them. The rollback now deletes only what the update created and replacements under a new physical id; a resource that kept its physical id is left standing. Not covered: an in-place change is not reverted, and a replacement's old resource, already removed by the update, is not recreated. Contributed by @iot-rocket.-- **CloudFormation — `DeleteChangeSet` of a change set that does not exist succeeds** — it answered `ChangeSetNotFound` (404), and the response of a successful delete carried no `DeleteChangeSetResult` element, so boto3 could not parse it at all. The CDK removes a possible leftover `cdk-deploy-change-set` before every deploy of an existing stack, addresses the stack by its ARN, and only tolerates `ChangeSetNotFoundException`, so every `cdk deploy` of an already deployed stack aborted with `ChangeSet [cdk-deploy-change-set] does not exist`. A real account answers that delete with a plain success; the stack is now resolved by name or stack ID first, and a stack that does not exist is still a `ValidationError`. Contributed by @iot-rocket.+- **CloudFormation — stack updates stop destroying resources** — a changed property on a type without an update handler fell through to a destructive re-create: generated-identity types came back empty under a new id with the old resource orphaned (Cognito pools and clients, Secrets Manager secrets, API Gateway authorizers and deployments), name-keyed ones wiped their data (Kinesis records, ECR images, group members, alarm state and history), and others failed the stack outright (any Route53 record edit, any EventBus property change). Nineteen types now update in place through their service's own APIs — `AWS::Cognito::UserPool`/`UserPoolClient`/`IdentityPool`/`UserPoolGroup` (including `EnabledMfas` via `SetUserPoolMfaConfig`), `AWS::SecretsManager::Secret` (a changed value becomes the new `AWSCURRENT`, same ARN, history kept), `AWS::Kinesis::Stream`, `AWS::ECR::Repository`, `AWS::DynamoDB::GlobalTable`, `AWS::Events::EventBus`, `AWS::Events::Rule`, `AWS::CodeBuild::Project`, `AWS::Route53::RecordSet`, `AWS::Scheduler::Schedule`, `AWS::StepFunctions::StateMachine`, `AWS::CloudWatch::Alarm`, `AWS::IAM::Policy`, `AWS::ApiGateway::Authorizer`, `AWS::ApiGateway::Deployment` and `AWS::KMS::Alias` — only the properties the resource references mark *Replacement* replace (the new resource is created before the old one is removed, and a custom-named resource requiring replacement gets CloudFormation's own refusal), and a property the template drops reverts to its create default. The engine gains real replacement semantics: when an update returns a new physical id, the predecessor is deleted in a cleanup phase, as CloudFormation does after `UPDATE_COMPLETE`. Contributed by @iot-rocket.+- **CloudFormation — `AWS::Lambda::Permission` is replaced on update and removed on delete** — a stack update that changed a permission fell through to the create handler and appended a second statement, a permission declared without the legacy `Id` was never removed at all, and `EventSourceToken`, `FunctionUrlAuthType`, `InvokedViaFunctionUrl`, `PrincipalOrgID` and `SourceAccount` were dropped on the way to the statement. Every property of the type requires replacement, so an update now removes the old statement and adds the new one under a fresh generated Sid — the resource's physical id, the shape real CloudFormation mints — and all nine documented properties reach the statement as conditions. Contributed by @iot-rocket.+- **CloudFormation — a failed update keeps the pre-existing resources when it rolls back** — the rollback of a failed stack update deleted every resource the run had touched, and a run touches every resource in the template: unchanged resources and resources updated in place went down together with what the update had actually created. The rollback now deletes only what the update created and replacements under a new physical id; a resource that kept its physical id is left standing. An in-place change is not reverted, and a replacement's old resource, already removed by the update, is not recreated. Contributed by @iot-rocket.+- **CloudFormation — a rolled-back update reports what the stack ran before** — after `UPDATE_ROLLBACK_COMPLETE`, `GetTemplate` returned the template that failed and `DescribeStacks` the failed update's parameters and tags, so a `cdk diff` after a failed deploy compared against the wrong base. The rollback now restores the previous template body, parameters and tags together with the resources and outputs. Contributed by @iot-rocket.+- **CloudFormation — an export counts as in use only when a stack imports it** — `DeleteStack` searched the serialized templates of every other stack for the export name, so a stack that merely carried the name in a string value blocked the delete, while an import through a resolved `Fn::ImportValue` argument did not. The check now walks the other stacks' `Fn::ImportValue` uses and resolves their arguments against those stacks' own parameters, as CloudFormation does. Contributed by @iot-rocket.+- **CloudFormation — `UpdateStack` without changes is refused** — an identical `TemplateBody`, or `UsePreviousTemplate` with unchanged parameters, ran an empty update where CloudFormation answers `ValidationError: No updates are to be performed.`, so a "deploy until nothing changes" loop never ended. The request is refused when the template, every resolved parameter and the tags (when sent) equal what the stack runs; a changed parameter value or tag set is still an update. Contributed by @iot-rocket.+- **CloudFormation — unrecognized resource types are rejected up front, `Fn::GetAtt` to a missing attribute fails the stack** — a template with a resource type the emulator does not know provisioned every resource ahead of it before rolling back; `CreateStack`, `UpdateStack`, `CreateChangeSet` and `ValidateTemplate` now refuse it synchronously with CloudFormation's own `Template format error: Unrecognized resource types: [...]` and leave no stack behind, and dynamic references (`{{resolve:ssm:...}}`, `{{resolve:secretsmanager:...}}`), which the emulator does not resolve, are refused the same way. `Fn::GetAtt` to an attribute a resource does not expose answered with the physical id, a silently wrong value; it now fails the operation with `Requested attribute X does not exist in schema for T`, and outputs are resolved before the success path commits, so a failing output rolls back too and registers no export. Contributed by @iot-rocket.+- **CloudFormation — `DeleteChangeSet` of a change set that does not exist succeeds** — it answered `ChangeSetNotFound` (404) where a real account answers a plain success, so the CDK — which removes a possible leftover `cdk-deploy-change-set` before every deploy and only tolerates `ChangeSetNotFoundException` — aborted every `cdk deploy` of an already deployed stack. The stack is now resolved by name or stack ID first; a stack that does not exist is still a `ValidationError`. Contributed by @iot-rocket.+- **CloudFormation — `AWS::Events::Rule` reports the rule ARN the EventBridge service reports** — `Fn::GetAtt` `Arn` was built with the bus name in every case, so a rule on the default bus answered `rule/default/<name>` while `DescribeRule` for the same rule answered `rule/<name>`. The provisioner now derives the ARN through the service's own helper: no bus segment on the default bus, `rule/<bus>/<name>` on a custom one. Contributed by @iot-rocket.+- **CloudFormation — `AWS::Cognito::UserPool` reads `UserPoolName`** — the provisioner read `PoolName`, the API's name for the property, where the resource reference defines `UserPoolName`, so every pool declared with the documented property came up under a generated `<stack>-<logical id>` name. `UserPoolName` is honoured now; `PoolName` stays accepted for templates written against MiniStack. Contributed by @iot-rocket.+- **CloudWatch — `PutMetricAlarm` keeps the state timestamp of an existing alarm** — re-putting an alarm stamped a fresh `StateUpdatedTimestamp` on every call, so an alarm that had been in `ALARM` for an hour reported a state change that never happened whenever its configuration was touched. The state, its reason and its timestamp now stay across the re-put and only `AlarmConfigurationUpdatedTimestamp` moves, as the API reference documents; both request encodings. Contributed by @iot-rocket.+- **IAM enforcement — the remaining S3 operations authorize as S3 documents them** — with `AUTH=true`, a browser `POST Object` was checked as `s3:DeleteObject`, a request naming a `versionId` as the unversioned action, `DeleteObjects` once against the bucket ARN (so a grant on `arn:aws:s3:::bucket/*` denied every batch delete), `CopyObject` / `UploadPartCopy` without `s3:GetObject` on the source, and fifteen sub-resources fell to the method default. Each now maps to the action the S3 reference lists, a `versionId` resolves to the `*Version*` action, and both enforcement sites run the per-request checks (per key, source object, attributes pair, governance bypass). Contributed by @iot-rocket.+- **DynamoDB — PartiQL and validation parity measured against real DynamoDB** — `ExecuteStatement` serves `SELECT` from `"table"."index"` (membership, projection, ordering and consumed capacity follow the index; an LSI reaches back to the base table for unprojected attributes, a GSI rejects them), document paths in `SET`/`REMOVE`, `OR` predicates and `RETURNING MODIFIED OLD/NEW *` computed from the paths actually changed; `BatchExecuteStatement` reports per-statement error entries and `ExecuteTransaction` validates every member before applying anything. `Query` and `Scan` answer the `Select`/`ProjectionExpression` refusals with real DynamoDB's wording, a `KeyConditionExpression` on a nested attribute is rejected (`KeyConditionExpressions cannot have conditions on nested attributes`), `ConsumedCapacity` lands on the index arm for index reads, and writes validate secondary-index key values — wrong-typed or empty as a `ValidationException` on single writes and as a positional cancellation reason in transactions. Reported by the paritysuite.org project.+- **Lambda — durable executions emit the complete history event set** — four of the documented history event types were never emitted. Each handler invocation now records `InvocationCompleted`; `DurableConfig.ExecutionTimeout` is enforced — the execution lands `TIMED_OUT` with an `ExecutionTimedOut` event and every in-flight chained invoke gets its own `ChainedInvokeTimedOut`; `StopDurableExecution` marks in-flight chained invokes with `ChainedInvokeStopped`; and `ChainedInvokeStarted` is on the log before a fast child can complete.+- **Cognito — the PreSignUp trigger fires on plain `SignUp`** — only federated sign-ups invoked it; a pool's `LambdaConfig.PreSignUp` now runs before the user is persisted, fail-closed: `autoConfirmUser` confirms the account (no code delivery), `autoVerifyEmail`/`autoVerifyPhone` mark the attributes, and a rejecting or failing trigger blocks the sign-up with `UserLambdaValidationException`, per the trigger's documented contract.+- **STS — sessions expire and the store stops growing** — `GetCallerIdentity` with expired temporary credentials answers `403 ExpiredToken` ("The security token included in the request is expired", the documented STS error), and expired sessions are evicted as new ones register — previously every AssumeRole and vended identity-pool credential lived in memory forever.## [1.5.7] — 2026-09-04@@ -51,9 +43,6 @@ Versioning follows [Semantic Versioning](https://semver.org/).- **RDS — Aurora MySQL global writer switchover foundations** — deadline-bounded helpers for writer fencing, GTID convergence, replication-channel management and verified write enablement, plus lifecycle guards reserving clusters mid-switchover. No user-visible behavior changes; dormant until an orchestrator calls them. Contributed by @Areson.### Fixed-- **CloudFormation — stack updates stop destroying resources** — a changed property on a type without an update handler fell through to a re-create: generated-identity types (Cognito pools and clients, Secrets Manager secrets) came back empty under a new id with the old resource orphaned, name-keyed ones wiped their data (Kinesis records, ECR images, group members), and others failed the stack outright (any Route53 record edit, any EventBus property change). Twelve types now update in place — `AWS::Cognito::UserPool`/`UserPoolClient`/`IdentityPool`/`UserPoolGroup`, `AWS::SecretsManager::Secret` (a changed value becomes the new `AWSCURRENT`, same ARN, history kept), `AWS::Kinesis::Stream`, `AWS::ECR::Repository`, `AWS::DynamoDB::GlobalTable`, `AWS::Events::EventBus`, `AWS::CodeBuild::Project`, `AWS::Route53::RecordSet` and `AWS::Scheduler::Schedule` — and the engine gains real replacement semantics: when an update returns a new physical id, the predecessor is deleted in a cleanup phase, as CloudFormation does after `UPDATE_COMPLETE`.-- **Cognito — the PreSignUp trigger fires on plain `SignUp`** — only federated sign-ups invoked it; a pool's `LambdaConfig.PreSignUp` now runs before the user is persisted, fail-closed: `autoConfirmUser` confirms the account (no code delivery), `autoVerifyEmail`/`autoVerifyPhone` mark the attributes, and a rejecting or failing trigger blocks the sign-up with `UserLambdaValidationException`, per the trigger's documented contract.-- **STS — sessions expire and the store stops growing** — `GetCallerIdentity` with expired temporary credentials answers `403 ExpiredToken` ("The security token included in the request is expired", the documented STS error), and expired sessions are evicted as new ones register — previously every AssumeRole and vended identity-pool credential lived in memory forever.- **Lambda — a Docker-executed function sees its real ARN in `context.invoked_function_arn`** — the RIE inside the official images hardcodes `arn:aws:lambda:us-east-1:012345678912:function:{name}`, account and region, so a handler self-registering its own ARN (the standard pattern for wiring a Cognito trigger) stored a scope where nothing exists and the trigger never fired. Python and Node.js zip functions run through a shim handing user code the control-plane ARN; for `provided` and Image-type functions, where MiniStack owns no code path, an ARN carrying exactly the RIE's hardcoded scope resolves as the caller's own function, so a stored trigger still fires. Reported by @TomaszKupka.- **Cognito — TOTP codes verify** — `VerifySoftwareToken` answered `SUCCESS` for any six digits and the `SOFTWARE_TOKEN_MFA` challenge issued tokens for any code. The `AssociateSoftwareToken` secret is now stored and verified with RFC 6238 (HMAC-SHA1, 30-second step, ±1 step): a wrong code answers `EnableSoftwareTokenMFAException` on verify and `CodeMismatchException` on the challenge, both in the operations' botocore error models, and success promotes the secret and enrolls the user. The CloudFormation provisioner maps `EnabledMfas: [SOFTWARE_TOKEN_MFA]` (what CDK emits) onto `GetUserPoolMfaConfig`. Tests sending a fixed code must derive one from the `SecretCode` they receive; users enrolled before this release keep the old behavior until re-enrolment. Reported by @iot-rocket.- **RDS — the Aurora reader endpoint is a name that resolves** — `CreateDBCluster` handed out an AWS-shaped `cluster-ro-` name that nothing registered, so a consumer that stored it (Terraform reads `reader_endpoint` during the creating apply) held an unresolvable endpoint, hanging until client timeout. The reader name is registered as a Docker network alias alongside the writer name, and `DescribeDBClusters` reports it whenever the writer reports its stable name — per the Aurora documentation, a cluster with no replicas resolves its reader endpoint to the primary. With PG streaming replication on, the name stays off the writer so a standby can carry it. Outside alias mode everything behaves as before. Reported by @jbschooley.diff --git a/README.md b/README.mdindex fd13809e..f4101dcd 100644--- a/README.md+++ b/README.md@@ -396,7 +396,7 @@ subnet = ec2.create_subnet(| Service | Operations | Notes ||---------|-----------|-------|-| **S3** | CreateBucket, DeleteBucket, ListBuckets, HeadBucket, PutObject, GetObject, DeleteObject, HeadObject, CopyObject, ListObjects v1/v2, DeleteObjects, GetBucketVersioning, PutBucketVersioning, GetBucketEncryption, PutBucketEncryption, DeleteBucketEncryption, GetBucketLifecycleConfiguration, PutBucketLifecycleConfiguration, DeleteBucketLifecycle, GetBucketCors, PutBucketCors, DeleteBucketCors, GetBucketAcl, PutBucketAcl, GetBucketTagging, PutBucketTagging, DeleteBucketTagging, GetBucketPolicy, PutBucketPolicy, DeleteBucketPolicy, GetBucketNotificationConfiguration, PutBucketNotificationConfiguration, GetBucketLogging, PutBucketLogging, ListObjectVersions, CreateMultipartUpload, UploadPart, CompleteMultipartUpload, AbortMultipartUpload, PutObjectLockConfiguration, GetObjectLockConfiguration, PutObjectRetention, GetObjectRetention, PutObjectLegalHold, GetObjectLegalHold, PutBucketReplication, GetBucketReplication, DeleteBucketReplication, GetObjectTagging, PutObjectTagging, DeleteObjectTagging | Optional disk persistence via `S3_PERSIST=1`; Object Lock with retention & legal hold enforcement on delete; object tags are versioned (`?tagging&versionId=…` reads, writes, and deletes the per-version tag set) |+| **S3** | CreateBucket, DeleteBucket, ListBuckets, HeadBucket, PutObject, GetObject, DeleteObject, HeadObject, CopyObject, ListObjects v1/v2, DeleteObjects, GetBucketVersioning, PutBucketVersioning, GetBucketEncryption, PutBucketEncryption, DeleteBucketEncryption, GetBucketLifecycleConfiguration, PutBucketLifecycleConfiguration, DeleteBucketLifecycle, GetBucketCors, PutBucketCors, DeleteBucketCors, GetBucketAcl, PutBucketAcl, GetBucketTagging, PutBucketTagging, DeleteBucketTagging, GetBucketPolicy, PutBucketPolicy, DeleteBucketPolicy, GetBucketNotificationConfiguration, PutBucketNotificationConfiguration, GetBucketLogging, PutBucketLogging, ListObjectVersions, CreateMultipartUpload, UploadPart, CompleteMultipartUpload, AbortMultipartUpload, PutObjectLockConfiguration, GetObjectLockConfiguration, PutObjectRetention, GetObjectRetention, PutObjectLegalHold, GetObjectLegalHold, PutBucketReplication, GetBucketReplication, DeleteBucketReplication, GetObjectTagging, PutObjectTagging, DeleteObjectTagging | Optional disk persistence via `S3_PERSIST=1`; Object Lock with retention & legal hold enforcement on delete; object tags are versioned (`?tagging&versionId=…` reads, writes, and deletes the per-version tag set); Multi-Region Access Points provision from CloudFormation (`AWS::S3::MultiRegionAccessPoint`) and `<alias>.accesspoint.s3-global.amazonaws.com` serves the member buckets through the regular S3 path || **SQS** | CreateQueue, DeleteQueue, ListQueues, GetQueueUrl, GetQueueAttributes, SetQueueAttributes, PurgeQueue, SendMessage, ReceiveMessage, DeleteMessage, ChangeMessageVisibility, ChangeMessageVisibilityBatch, SendMessageBatch, DeleteMessageBatch, TagQueue, UntagQueue, ListQueueTags | Both Query API and JSON protocol; FIFO queues with deduplication; DLQ support || **SNS** | CreateTopic, DeleteTopic, ListTopics, GetTopicAttributes, SetTopicAttributes, Subscribe, Unsubscribe, ListSubscriptions, ListSubscriptionsByTopic, GetSubscriptionAttributes, SetSubscriptionAttributes, ConfirmSubscription, Publish, PublishBatch, TagResource, UntagResource, ListTagsForResource, CreatePlatformApplication, ListPlatformApplications, GetPlatformApplicationAttributes, SetPlatformApplicationAttributes, CreatePlatformEndpoint, GetEndpointAttributes, SetEndpointAttributes, DeleteEndpoint, DeletePlatformApplication | SNS→SQS fanout delivery; SNS→Lambda fanout (asynchronous delivery); FIFO topics with 5-minute deduplication, sequence numbers, content-based deduplication, and subscription validation; mobile-push endpoint lifecycle with device-token dedup and `Publish` to platform-endpoint `TargetArn` || **DynamoDB** | CreateTable, UpdateTable, DeleteTable, DescribeTable, ListTables, PutItem, GetItem, DeleteItem, UpdateItem, Query, Scan, BatchWriteItem, BatchGetItem, TransactWriteItems, TransactGetItems, DescribeTimeToLive, UpdateTimeToLive, DescribeContinuousBackups, UpdateContinuousBackups, DescribeEndpoints, TagResource, UntagResource, ListTagsOfResource, EnableKinesisStreamingDestination, DisableKinesisStreamingDestination, DescribeKinesisStreamingDestination, UpdateKinesisStreamingDestination | TTL enforced via thread-safe background reaper (60s cadence); DynamoDB Streams — `StreamSpecification` emits INSERT/MODIFY/REMOVE records on all write operations, respects `StreamViewType`; Kinesis streaming destinations (`aws_dynamodb_kinesis_streaming_destination`) fan item mutations out into any Kinesis stream by ARN while the destination is ACTIVE |@@ -568,7 +568,7 @@ MiniStack expands AWS SAM transforms (`Transform: AWS::Serverless-2016-10-31`) i| Service | Operations | Notes ||---------|-----------|-------|| **ECS** | CreateCluster, DeleteCluster, DescribeClusters, ListClusters, UpdateCluster, UpdateClusterSettings, PutClusterCapacityProviders, RegisterTaskDefinition, DeregisterTaskDefinition, DescribeTaskDefinition, ListTaskDefinitions, ListTaskDefinitionFamilies, DeleteTaskDefinitions, CreateService, DeleteService, DescribeServices, UpdateService, ListServices, ListServicesByNamespace, RunTask, StopTask, DescribeTasks, ListTasks, ExecuteCommand, UpdateTaskProtection, GetTaskProtection, CreateCapacityProvider, UpdateCapacityProvider, DeleteCapacityProvider, DescribeCapacityProviders, TagResource, UntagResource, ListTagsForResource, ListAccountSettings, PutAccountSetting, PutAccountSettingDefault, DeleteAccountSetting, PutAttributes, DeleteAttributes, ListAttributes, DescribeServiceDeployments, ListServiceDeployments, DescribeServiceRevisions, SubmitTaskStateChange, SubmitContainerStateChange, SubmitAttachmentStateChanges, DiscoverPollEndpoint | 47 actions; `RunTask` starts real Docker containers via Docker socket; full Terraform ECS coverage |-| **RDS** | CreateDBInstance, DeleteDBInstance, DescribeDBInstances, ModifyDBInstance, StartDBInstance, StopDBInstance, RebootDBInstance, CreateDBInstanceReadReplica, RestoreDBInstanceFromDBSnapshot, CreateDBCluster, DeleteDBCluster, DescribeDBClusters, ModifyDBCluster, StartDBCluster, StopDBCluster, FailoverDBCluster, CreateDBSnapshot, DeleteDBSnapshot, DescribeDBSnapshots, CreateDBClusterSnapshot, DescribeDBClusterSnapshots, DeleteDBClusterSnapshot, CreateDBSubnetGroup, DeleteDBSubnetGroup, DescribeDBSubnetGroups, ModifyDBSubnetGroup, CreateDBParameterGroup, DeleteDBParameterGroup, DescribeDBParameterGroups, DescribeDBParameters, ModifyDBParameterGroup, CreateDBClusterParameterGroup, DescribeDBClusterParameterGroups, DeleteDBClusterParameterGroup, DescribeDBClusterParameters, ModifyDBClusterParameterGroup, CreateOptionGroup, DeleteOptionGroup, DescribeOptionGroups, DescribeOptionGroupOptions, ListTagsForResource, AddTagsToResource, RemoveTagsFromResource, DescribeDBEngineVersions, DescribeOrderableDBInstanceOptions, CreateGlobalCluster, DescribeGlobalClusters, DeleteGlobalCluster, RemoveFromGlobalCluster, ModifyGlobalCluster, CreateDBProxy, DescribeDBProxies, ModifyDBProxy, DeleteDBProxy, CreateDBProxyEndpoint, DescribeDBProxyEndpoints, ModifyDBProxyEndpoint, DeleteDBProxyEndpoint, DescribeDBProxyTargetGroups, ModifyDBProxyTargetGroup, RegisterDBProxyTargets, DeregisterDBProxyTargets, DescribeDBProxyTargets | `CreateDBInstance` spins up real Postgres/MySQL Docker container, returns actual `host:port` endpoint; a cluster's endpoint is its stable AWS-shaped name, registered as a Docker network alias on the backing container (on user-defined networks; the default bridge keeps the address form), so a stored endpoint keeps resolving after the container is replaced; Aurora MySQL 8.0/8.4 compatibility objects (`AWSAuthenticationPlugin`, RDS/Aurora stored procedures, predefined S3 roles) install automatically for supported MySQL images so Aurora provisioning workflows run — the plugin rejects authentication (non-enforcing). RDS Proxy is control plane only — proxies, proxy endpoints, the default target group and registered targets are stored and returned with the AWS shapes, but nothing listens on the proxy endpoint hostname; clients keep connecting to the instance or cluster endpoint |+| **RDS** | CreateDBInstance, DeleteDBInstance, DescribeDBInstances, ModifyDBInstance, StartDBInstance, StopDBInstance, RebootDBInstance, CreateDBInstanceReadReplica, RestoreDBInstanceFromDBSnapshot, CreateDBCluster, DeleteDBCluster, DescribeDBClusters, ModifyDBCluster, StartDBCluster, StopDBCluster, FailoverDBCluster, SwitchoverGlobalCluster, FailoverGlobalCluster, CreateDBSnapshot, DeleteDBSnapshot, DescribeDBSnapshots, CreateDBClusterSnapshot, DescribeDBClusterSnapshots, DeleteDBClusterSnapshot, CreateDBSubnetGroup, DeleteDBSubnetGroup, DescribeDBSubnetGroups, ModifyDBSubnetGroup, CreateDBParameterGroup, DeleteDBParameterGroup, DescribeDBParameterGroups, DescribeDBParameters, ModifyDBParameterGroup, CreateDBClusterParameterGroup, DescribeDBClusterParameterGroups, DeleteDBClusterParameterGroup, DescribeDBClusterParameters, ModifyDBClusterParameterGroup, CreateOptionGroup, DeleteOptionGroup, DescribeOptionGroups, DescribeOptionGroupOptions, ListTagsForResource, AddTagsToResource, RemoveTagsFromResource, DescribeDBEngineVersions, DescribeOrderableDBInstanceOptions, CreateGlobalCluster, DescribeGlobalClusters, DeleteGlobalCluster, RemoveFromGlobalCluster, ModifyGlobalCluster, CreateDBProxy, DescribeDBProxies, ModifyDBProxy, DeleteDBProxy, CreateDBProxyEndpoint, DescribeDBProxyEndpoints, ModifyDBProxyEndpoint, DeleteDBProxyEndpoint, DescribeDBProxyTargetGroups, ModifyDBProxyTargetGroup, RegisterDBProxyTargets, DeregisterDBProxyTargets, DescribeDBProxyTargets | `CreateDBInstance` spins up real Postgres/MySQL Docker container, returns actual `host:port` endpoint; a cluster's endpoint is its stable AWS-shaped name, registered as a Docker network alias on the backing container (on user-defined networks; the default bridge keeps the address form), so a stored endpoint keeps resolving after the container is replaced; Aurora MySQL 8.0/8.4 compatibility objects (`AWSAuthenticationPlugin`, RDS/Aurora stored procedures, predefined S3 roles) install automatically for supported MySQL images so Aurora provisioning workflows run — the plugin rejects authentication (non-enforcing). Planned Aurora MySQL switchover (`SwitchoverGlobalCluster`, and `FailoverGlobalCluster` without data loss allowed) performs a coordinated no-data-loss writer exchange on provisioned two-member MySQL 8 global clusters; other configurations keep the metadata-only path. RDS Proxy is control plane only — proxies, proxy endpoints, the default target group and registered targets are stored and returned with the AWS shapes, but nothing listens on the proxy endpoint hostname; clients keep connecting to the instance or cluster endpoint || **Aurora DSQL** | CreateCluster, GetCluster, UpdateCluster, DeleteCluster, ListClusters, PutClusterPolicy, GetClusterPolicy, DeleteClusterPolicy, CreateStream, GetStream, ListStreams, DeleteStream, GetVpcEndpointServiceName, TagResource, UntagResource, ListTagsForResource | `CreateCluster` spins up a real `postgres:16-alpine` Docker container fronted by a validating PG wire-protocol proxy that **fails like real DSQL** — rejects unsupported SQL (`serial`, extensions, temp tables, ...), accepts `CREATE INDEX ASYNC` + `sys.jobs`; endpoint is `localhost:<port>`; any password accepted || **ElastiCache** | CreateCacheCluster, DeleteCacheCluster, DescribeCacheClusters, ModifyCacheCluster, RebootCacheCluster, CreateReplicationGroup, DeleteReplicationGroup, DescribeReplicationGroups, ModifyReplicationGroup, IncreaseReplicaCount, DecreaseReplicaCount, CreateCacheSubnetGroup, DescribeCacheSubnetGroups, ModifyCacheSubnetGroup, DeleteCacheSubnetGroup, CreateCacheParameterGroup, DescribeCacheParameterGroups, ModifyCacheParameterGroup, ResetCacheParameterGroup, DeleteCacheParameterGroup, DescribeCacheParameters, DescribeCacheEngineVersions, CreateUser, DescribeUsers, DeleteUser, ModifyUser, CreateUserGroup, DescribeUserGroups, DeleteUserGroup, ModifyUserGroup, ListTagsForResource, AddTagsToResource, RemoveTagsFromResource, CreateSnapshot, DeleteSnapshot, DescribeSnapshots, DescribeEvents | `CreateCacheCluster` spins up a real Redis, Valkey, or Memcached Docker container (`Engine=redis`/`valkey`/`memcached`) || **Glue** | CreateDatabase, DeleteDatabase, GetDatabase, GetDatabases, UpdateDatabase, CreateTable, DeleteTable, GetTable, GetTables, UpdateTable, BatchDeleteTable, CreatePartition, DeletePartition, GetPartition, GetPartitions, BatchCreatePartition, BatchGetPartition, CreatePartitionIndex, GetPartitionIndexes, GetColumnStatisticsForTable, UpdateColumnStatisticsForTable, DeleteColumnStatisticsForTable, GetColumnStatisticsForPartition, UpdateColumnStatisticsForPartition, DeleteColumnStatisticsForPartition, CreateConnection, DeleteConnection, GetConnection, GetConnections, CreateCrawler, DeleteCrawler, GetCrawler, GetCrawlers, UpdateCrawler, StartCrawler, StopCrawler, GetCrawlerMetrics, CreateJob, DeleteJob, GetJob, GetJobs, UpdateJob, StartJobRun, GetJobRun, GetJobRuns, BatchStopJobRun, CreateTrigger, GetTrigger, DeleteTrigger, UpdateTrigger, StartTrigger, StopTrigger, ListTriggers, BatchGetTriggers, GetTriggers, CreateWorkflow, GetWorkflow, DeleteWorkflow, UpdateWorkflow, StartWorkflowRun, CreateUserDefinedFunction, UpdateUserDefinedFunction, DeleteUserDefinedFunction, GetUserDefinedFunction, GetUserDefinedFunctions, CreateSecurityConfiguration, DeleteSecurityConfiguration, GetSecurityConfiguration, GetSecurityConfigurations, CreateClassifier, GetClassifier, GetClassifiers, DeleteClassifier, TagResource, UntagResource, GetTags | Python shell jobs actually execute via subprocess; Spark jobs run on the official `amazon/aws-glue-libs` PySpark image (`GlueVersion: 4.0` / `3.0`) on MiniStack's Docker network; Glue-backed Iceberg REST catalog at `/iceberg` (signed with the `glue` credential scope, prefix `catalogs/{catalog}`) — read path for tables whose `metadata_location` parameter points at a metadata.json on MiniStack S3, e.g. DuckDB `ATTACH ... (TYPE iceberg, ENDPOINT 'localhost:4566/iceberg', AUTHORIZATION_TYPE 'sigv4')` with `USE_SSL=1` |diff --git a/pyproject.toml b/pyproject.tomlindex 2c3c8e31..36ff170d 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "ministack"-version = "1.5.7"+version = "1.5.8"description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"readme = "README.md"license = { file = "LICENSE" }diff --git a/tests/test_cfn.py b/tests/test_cfn.pyindex 04562853..4121a271 100644--- a/tests/test_cfn.py+++ b/tests/test_cfn.py@@ -14495,6 +14495,10 @@ def test_cfn_iot_thing_group_rename_replaces_and_parent_change_is_refused(cfn, i# rolled back with the stack: it still reports the first parent.unnamed = iot_client.describe_thing_group(thingGroupName=unnamed_name)assert unnamed["thingGroupMetadata"]["parentGroupName"] in parents+ finally:+ _delete_cfn_test_stack(cfn, stack_name)++def test_cfn_apigateway_authorizer_update_in_place_and_replacement(cfn, apigw_v1):"""An authorizer property change updates the authorizer under the same id(Ref and AuthorizerId keep their value), a property the template drops@@ -14672,6 +14676,10 @@ def test_cfn_iot_thing_group_missing_parent_fails_and_unmodelled_properties_are_group = iot_client.describe_thing_group(thingGroupName=f"cfn-tg-dyn-{uid}")assert group["thingGroupId"] == _output(stack, "Id")assert group["thingGroupProperties"]["thingGroupDescription"] == "dynamic on AWS, static here"+ finally:+ _delete_cfn_test_stack(cfn, stack_name)++def test_cfn_kms_alias_target_change_in_place_and_rename_replaces(cfn, kms_client):"""A TargetKeyId change re-points the alias under its name (Ref keeps itsvalue), an AliasName change replaces the alias — the new name exists, the@@ -14728,6 +14736,8 @@ def test_cfn_kms_alias_target_change_in_place_and_rename_replaces(cfn, kms_clienfinally:_delete_cfn_test_stack(cfn, stack_name)assert f"alias/cfn-b-{uid}" not in alias_targets()++def test_cfn_update_rollback_reports_the_previous_template_parameters_and_tags(cfn, sqs):"""After UPDATE_ROLLBACK_COMPLETE the stack describes what it ran beforethe failed update: GetTemplate returns the previous template body,@@ -14764,6 +14774,27 @@ def test_cfn_update_rollback_reports_the_previous_template_parameters_and_tags(cParameters=[{"ParameterKey": "Visibility", "ParameterValue": "30"}],Tags=[{"Key": "stage", "Value": "before"}],)+ try:+ stack = _wait_stack(cfn, stack_name)+ assert stack["StackStatus"] == "CREATE_COMPLETE", stack.get("StackStatusReason")++ cfn.update_stack(+ StackName=stack_name, TemplateBody=template("N", "after"),+ Parameters=[{"ParameterKey": "Visibility", "ParameterValue": "45"}],+ Tags=[{"Key": "stage", "Value": "after"}],+ )+ stack = _wait_stack(cfn, stack_name)+ assert stack["StackStatus"] == "UPDATE_ROLLBACK_COMPLETE", stack.get("StackStatusReason")++ assert normalized(cfn.get_template(StackName=stack_name)["TemplateBody"]) == json.loads(original)+ assert stack["Parameters"] == [+ {"ParameterKey": "Visibility", "ParameterValue": "30"}]+ assert stack["Tags"] == [{"Key": "stage", "Value": "before"}]+ assert stack.get("Description") in (None, "before")+ finally:+ _delete_cfn_test_stack(cfn, stack_name)++def test_cfn_export_in_use_is_an_import_not_a_mention(cfn, ssm):"""Deleting an exporting stack is refused only while another stack importsthe export through Fn::ImportValue, its argument resolved with that stack's@@ -14810,6 +14841,8 @@ def test_cfn_export_in_use_is_an_import_not_a_mention(cfn, ssm):finally:for name in (importer, mention, producer):_delete_cfn_test_stack(cfn, name)++def test_cfn_update_stack_without_changes_is_refused(cfn, sqs):"""UpdateStack with the template and parameters the stack already runs isrefused with CloudFormation's ``No updates are to be performed.``, for an@@ -14829,19 +14862,6 @@ def test_cfn_update_stack_without_changes_is_refused(cfn, sqs):stack = _wait_stack(cfn, stack_name)assert stack["StackStatus"] == "CREATE_COMPLETE", stack.get("StackStatusReason")- cfn.update_stack(- StackName=stack_name, TemplateBody=template("N", "after"),- Parameters=[{"ParameterKey": "Visibility", "ParameterValue": "45"}],- Tags=[{"Key": "stage", "Value": "after"}],- )- stack = _wait_stack(cfn, stack_name)- assert stack["StackStatus"] == "UPDATE_ROLLBACK_COMPLETE", stack.get("StackStatusReason")-- assert normalized(cfn.get_template(StackName=stack_name)["TemplateBody"]) == json.loads(original)- assert stack["Parameters"] == [- {"ParameterKey": "Visibility", "ParameterValue": "30"}]- assert stack["Tags"] == [{"Key": "stage", "Value": "before"}]- assert stack.get("Description") in (None, "before")for kwargs in ({"TemplateBody": template},{"UsePreviousTemplate": True},