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
fix: capitalize query-protocol action names from SFN ARN camelCase to PascalCase (#204)
Jay Janssen8bca17268476
diff --git a/ministack/services/stepfunctions.py b/ministack/services/stepfunctions.pyindex 1bd57a9c..52dd883d 100644--- a/ministack/services/stepfunctions.py+++ b/ministack/services/stepfunctions.py@@ -2259,8 +2259,11 @@ def _dispatch_aws_sdk_query(service_info, service_name, action, input_data):f"Service '{service_key}' is not available in MiniStack",)- # Build form-encoded body with Action param- form_params = {"Action": action}+ # Build form-encoded body with Action param.+ # SFN ARNs use camelCase (e.g. createDBSubnetGroup) but query-protocol+ # services expect PascalCase (CreateDBSubnetGroup).+ pascal_action = action[0].upper() + action[1:] if action else action+ form_params = {"Action": pascal_action}form_params.update(_flatten_query_params(input_data))body = urlencode(form_params)@@ -2318,7 +2321,7 @@ def _dispatch_aws_sdk_query(service_info, service_name, action, input_data):_, result = _xml_element_to_dict(root)if isinstance(result, dict):# Unwrap the <ActionResult> wrapper if present- result_key = f"{action}Result"+ result_key = f"{pascal_action}Result"if result_key in result:result = result[result_key]# Drop ResponseMetadata