Skip to content

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

release v1.3.71 (#1043)

Nahuel Nucera55b3895dddc6
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 514d7f55..c45248eb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,13 +5,18 @@ All notable changes to MiniStack will be documented here.
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
Versioning follows [Semantic Versioning](https://semver.org/).
-## [Unreleased]
+## [1.3.71] — 2026-07-06
### Added
-- **Lambda — event source mappings accept and persist `ScalingConfig` (`MaximumConcurrency`)** — `CreateEventSourceMapping` and `UpdateEventSourceMapping` now accept a `ScalingConfig` block and echo it back on create, `GetEventSourceMapping`, and `ListEventSourceMappings`, so the SQS-trigger `scaling_config { maximum_concurrency = N }` on the Terraform `aws_lambda_event_source_mapping` resource round-trips instead of being silently dropped (which surfaced as a perpetual plan diff). `MaximumConcurrency` outside the AWS-valid 2–1000 range is rejected with `ValidationException`. `BatchSize` and `MaximumBatchingWindowInSeconds` were already supported. Contributed by @liammizrahi.
-- **Organizations — `ListParents` + tag ops for the OU Terraform round-trip** — adds `ListParents(ChildId)` (returns the single parent AWS reports — `{"Parents": [{"Id", "Type"}]}`, `Type=ROOT` for the org root else `ORGANIZATIONAL_UNIT` — from the `_ParentId` already stored on every OU and account; unknown `ChildId` → `ChildNotFoundException`) **and** `TagResource` / `UntagResource` / `ListTagsForResource` for taggable org resources. The Terraform/OpenTofu `aws_organizations_organizational_unit` Read calls **both** `ListParents` (to populate `parent_id`, which `DescribeOrganizationalUnit` omits) and `ListTagsForResource` on every create + refresh — even for an untagged OU. With either missing, `apply` hard-stops on the read-back (`InvalidAction: Operation '<op>' not implemented`), so a multi-OU hierarchy never finished creating and was never idempotent; with both, it applies cleanly and re-applies as a no-op. No new state. Closes #990.
+- **EventBridge Scheduler — standalone schedules now fire their targets** — a background sweep evaluates each `ENABLED` schedule and invokes its target when due, so `aws_scheduler_schedule` resources actually deliver instead of being stored inert. Supports `at(yyyy-mm-ddThh:mm:ss)` one-time, `rate(...)`, and `cron(...)` expressions; honors `State`, `StartDate`/`EndDate`, and `ActionAfterCompletion: DELETE` (one-shot cleanup after a fired `at()` schedule); and dispatches to Lambda, SQS, SNS, and Step Functions targets, reusing the EventBridge rule dispatch so behavior matches the rules path. `FlexibleTimeWindow` fires at the nominal time. Reported by @BarkinBalci.
+- **Lambda — event source mappings accept and persist `ScalingConfig` (`MaximumConcurrency`)** — `CreateEventSourceMapping` and `UpdateEventSourceMapping` now accept a `ScalingConfig` block and echo it back on create, `GetEventSourceMapping`, and `ListEventSourceMappings`, so the SQS-trigger `scaling_config { maximum_concurrency = N }` on the Terraform `aws_lambda_event_source_mapping` resource round-trips instead of being silently dropped (which surfaced as a perpetual plan diff). `MaximumConcurrency` outside the AWS-valid 2–1000 range is rejected with `ValidationException`; `ScalingConfig` is honored only for Amazon SQS event sources (rejected with `InvalidParameterValueException` on any non-SQS source, matching AWS), and a non-integer `MaximumConcurrency` is rejected as a validation error rather than causing a 500. `BatchSize` and `MaximumBatchingWindowInSeconds` were already supported. Contributed by @liammizrahi.
+- **Organizations — `ListParents` + tag ops for the OU Terraform round-trip** — adds `ListParents(ChildId)` (returns the single parent AWS reports — `{"Parents": [{"Id", "Type"}]}`, `Type=ROOT` for the org root else `ORGANIZATIONAL_UNIT` — from the `_ParentId` already stored on every OU and account; unknown `ChildId` → `ChildNotFoundException`) **and** `TagResource` / `UntagResource` / `ListTagsForResource` for taggable org resources. The Terraform/OpenTofu `aws_organizations_organizational_unit` Read calls **both** `ListParents` (to populate `parent_id`, which `DescribeOrganizationalUnit` omits) and `ListTagsForResource` on every create + refresh — even for an untagged OU. With either missing, `apply` hard-stops on the read-back (`InvalidAction: Operation '<op>' not implemented`), so a multi-OU hierarchy never finished creating and was never idempotent; with both, it applies cleanly and re-applies as a no-op. No new state. Contributed by @b-rajesh.
+
### Fixed
- **CloudTrail — `CreateTrail` persists `KmsKeyId`** — `CreateTrail` accepted `KmsKeyId` but dropped it (only `UpdateTrail` stored it), so `DescribeTrails`/`GetTrail` read it back empty and Terraform's `aws_cloudtrail` did not converge in a single apply: the first `plan` after `apply` showed a `kms_key_id` diff that only cleared on a second apply (via `UpdateTrail`). `CreateTrail` now stores and returns `KmsKeyId`, normalized to a full key ARN as real AWS echoes it (a bare key id is expanded; an ARN or `alias/...` is kept), and omits the field when no CMK is set so an unset trail shows no diff. `UpdateTrail` normalizes it the same way and likewise omits it from its response when unset. Contributed by @b-rajesh.
+- **S3 — `GetObject` returns `x-amz-tagging-count` (`TagCount`)** — `GetObject` now reports the object's tag count via the `x-amz-tagging-count` response header (surfaced by SDKs as `TagCount`), present only when the object carries at least one tag and omitted otherwise, matching AWS. Previously the header was never sent, so boto3 and the AWS SDK for C++ reported no `TagCount` for a tagged object. Reported by @vschreiner.
+- **API Gateway v2 — `rawQueryString` stays percent-encoded** — the payload-format-2.0 proxy event's `rawQueryString` was rebuilt from URL-decoded query parameters, so `%20` became a literal space (and a decoded `=`/`&` inside a value corrupted the query structure). Rust functions on `lambda_http` — which build the request URI from `rawQueryString` — rejected the space with `InvalidUriChar` and returned 502. Each key and value is now re-encoded, so `rawQueryString` matches AWS and SDKs parse it correctly. Reported by @crestonbunch.
+- **CloudFormation — `AWS::Lambda::EventSourceMapping` round-trips all optional properties and updates in place** — a CloudFormation-created mapping previously kept only `FilterCriteria` and silently dropped `DestinationConfig`, `ParallelizationFactor`, `MaximumRetryAttempts`, `MaximumRecordAgeInSeconds`, `BisectBatchOnFunctionError`, and `ScalingConfig`, causing perpetual Terraform/CDK diffs; all are now preserved on create. A stack update that changes the mapping now mutates it in place (same physical id), matching `UpdateEventSourceMapping`, instead of re-running create and leaking a duplicate mapping that double-invoked the function; an immutable change (`EventSourceArn`/`StartingPosition`) is a proper replacement. Contributed by @maximoosemine.
---
diff --git a/README.md b/README.md
index b7544887..71088588 100644
--- a/README.md
+++ b/README.md
@@ -521,7 +521,7 @@ MiniStack expands AWS SAM transforms (`Transform: AWS::Serverless-2016-10-31`) i
| **AppConfig** | CreateApplication, GetApplication, ListApplications, UpdateApplication, DeleteApplication, CreateEnvironment, GetEnvironment, ListEnvironments, UpdateEnvironment, DeleteEnvironment, CreateConfigurationProfile, GetConfigurationProfile, ListConfigurationProfiles, UpdateConfigurationProfile, DeleteConfigurationProfile, CreateHostedConfigurationVersion, GetHostedConfigurationVersion, ListHostedConfigurationVersions, DeleteHostedConfigurationVersion, CreateDeploymentStrategy, GetDeploymentStrategy, ListDeploymentStrategies, UpdateDeploymentStrategy, DeleteDeploymentStrategy, StartDeployment, GetDeployment, ListDeployments, StopDeployment, TagResource, UntagResource, ListTagsForResource, StartConfigurationSession, GetLatestConfiguration | 33 operations; control plane + data plane; hosted configuration versions; deployments complete immediately; session-based configuration retrieval with token rotation |
| **Transfer Family** | CreateServer, DescribeServer, DeleteServer, ListServers, StartServer, StopServer, CreateUser, DescribeUser, DeleteUser, ListUsers, ImportSshPublicKey, DeleteSshPublicKey | 12 operations; **real SFTP listener** on `:2222` (override with `SFTP_PORT`) backed by S3 — `ls`, `put`, `get`, `mkdir`, `rename` work end-to-end against the local S3 emulator; `SFTP_PORT_PER_SERVER=1` allocates one port per `CreateServer` from `SFTP_BASE_PORT` (default 2300); SSH key auth scans every user across every server and account; `LOGICAL` and `PATH` home-directory mappings; host key persists across restarts when `PERSIST_STATE=1` |
| **IoT Core** | CreateThing, DescribeThing, ListThings, UpdateThing, DeleteThing, CreateThingType, CreateThingGroup, AddThingToThingGroup, ListThingsInThingGroup, CreateKeysAndCertificate, RegisterCertificate, UpdateCertificate, DeleteCertificate, AttachThingPrincipal, DetachThingPrincipal, ListThingPrincipals, ListPrincipalThings, CreatePolicy, CreatePolicyVersion, AttachPolicy, DetachPolicy, ListAttachedPolicies, ListTargetsForPolicy, DescribeEndpoint, Publish (HTTP), MQTT-over-WebSocket pub/sub | 24 operations + **real MQTT 3.1.1 over WebSocket** on the gateway port — clients use the address returned by `DescribeEndpoint`; local CA signs `CreateKeysAndCertificate` certificates (CA persists across restarts when `PERSIST_STATE=1`); multi-tenancy via transparent topic prefixing (same pattern as Transfer Family's shared SFTP listener); no plain TCP 1883 (real AWS IoT requires TLS or SigV4 on every connection); local CA cert available at `GET /_ministack/iot/ca.pem` for SDK trust configuration; IoT policies are stored but **not enforced** on the data plane |
-| **EventBridge Scheduler** | CreateSchedule, GetSchedule, UpdateSchedule, DeleteSchedule, ListSchedules, CreateScheduleGroup, GetScheduleGroup, DeleteScheduleGroup, ListScheduleGroups, TagResource, UntagResource, ListTagsForResource | 12 actions; schedule groups with cascading deletes; `rate()`, `cron()`, `at()` expressions; group/prefix/state filters on list; default group auto-created; CFN `AWS::Scheduler::Schedule` and `AWS::Scheduler::ScheduleGroup` supported |
+| **EventBridge Scheduler** | CreateSchedule, GetSchedule, UpdateSchedule, DeleteSchedule, ListSchedules, CreateScheduleGroup, GetScheduleGroup, DeleteScheduleGroup, ListScheduleGroups, TagResource, UntagResource, ListTagsForResource | 12 actions; schedules **fire their targets** — a background sweep invokes each enabled schedule's target (Lambda, SQS, SNS, Step Functions) when due, honoring `State`, `StartDate`/`EndDate`, and `ActionAfterCompletion: DELETE`; schedule groups with cascading deletes; `rate()`, `cron()`, `at()` expressions; group/prefix/state filters on list; default group auto-created; CFN `AWS::Scheduler::Schedule` and `AWS::Scheduler::ScheduleGroup` supported |
| **EKS** | CreateCluster, DescribeCluster, ListClusters, DeleteCluster, CreateNodegroup, DescribeNodegroup, ListNodegroups, DeleteNodegroup, CreateAddon, DescribeAddon, ListAddons, UpdateAddon, DeleteAddon, AssociateEncryptionConfig, CreateAccessEntry, DescribeAccessEntry, ListAccessEntries, UpdateAccessEntry, DeleteAccessEntry, AssociateAccessPolicy, DisassociateAccessPolicy, ListAssociatedAccessPolicies, AssociateIdentityProviderConfig, DescribeIdentityProviderConfig, DisassociateIdentityProviderConfig, TagResource, UntagResource, ListTagsForResource | `CreateCluster` spawns a real **k3s** container (75 MB) with a full Kubernetes API server; `kubectl`, Helm, and any K8s tooling work out of the box; cascading delete removes nodegroups and k3s container; addon CRUD (e.g. `vpc-cni`, `coredns`, `kube-proxy`, `aws-ebs-csi-driver`) at `/clusters/{name}/addons` flips status to `ACTIVE` on create / update; `AssociateEncryptionConfig` at `/clusters/{name}/encryption-config/associate` records KMS encryption config (rejects re-association, AWS-shape `update` envelope); **Access Entries** (modern post-1.29 IAM bindings — replaces aws-auth ConfigMap) at `/clusters/{name}/access-entries[/{principalArn}[/access-policies[/{policyArn}]]]` for Crossplane / Terraform `aws_eks_access_entry` + `aws_eks_access_policy_association`; OIDC discovery + JWKS served at the cluster's `identity.oidc.issuer` URL so Terraform's `aws_iam_openid_connect_provider` (IRSA) works against ministack; **OIDC Identity Provider Config** (`AssociateIdentityProviderConfig` / `DescribeIdentityProviderConfig` / `DisassociateIdentityProviderConfig`) at `/clusters/{name}/identity-provider-configs/{verb}` — one OIDC IdP per cluster, issuer + clientId + claims forwarded to the k3s API server via `--kube-apiserver-arg=oidc-*` flags, tags reachable via `ListTagsForResource`; CFN `AWS::EKS::Cluster` and `AWS::EKS::Nodegroup` supported |
| **OpenSearch Service** | CreateDomain, DescribeDomain, DescribeDomains, DeleteDomain, ListDomainNames, UpdateDomainConfig, DescribeDomainConfig, DescribeDomainChangeProgress, ListVersions, GetCompatibleVersions, AddTags, ListTags, RemoveTags | Management plane on `/2021-01-01/*` (`boto3.client("opensearch")`, SigV4 scope `es`). Default data plane is a stub endpoint (`<domain>.ministack.local:9200`) — set `OPENSEARCH_DATAPLANE=1` to spawn one real `opensearchproject/opensearch` container per `CreateDomain` (same pattern as ElastiCache/RDS); `DescribeDomain.Endpoint` then points at that container and `_cluster/health`/`/_search` work end-to-end. Add `OPENSEARCH_DASHBOARDS=1` (with dataplane on) to also spawn a per-domain `opensearch-dashboards` sidecar; `DescribeDomain.DashboardEndpoint` is populated. ARNs follow `arn:aws:es:<region>:<account>:domain/<name>`; Terraform `aws_opensearch_domain` resource compatible. |
| **Organizations** | DescribeOrganization, ListRoots, ListAccounts, ListAccountsForParent, DescribeAccount, CreateOrganizationalUnit, DescribeOrganizationalUnit, DeleteOrganizationalUnit, ListOrganizationalUnitsForParent, ListParents, TagResource, UntagResource, ListTagsForResource | Single-master-account org auto-initialised on first call; nested OUs with `Path` field (additive 2026-03 AWS change); the `aws_organizations_organizational_unit` Read calls `ListParents` (single parent, `ROOT`/`ORGANIZATIONAL_UNIT`, to populate `parent_id`) **and** `ListTagsForResource` on every refresh, so both — plus `TagResource`/`UntagResource` — round-trip and a multi-OU hierarchy applies cleanly + idempotently; `FeatureSet=ALL` |
diff --git a/pyproject.toml b/pyproject.toml
index 2a88fe72..d0625891 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "ministack"
-version = "1.3.70"
+version = "1.3.71"
description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"
readme = "README.md"
license = { file = "LICENSE" }