diff --git a/localstack/aws/forwarder.py b/localstack/aws/forwarder.py index 17b0f4760d1ea..18737f89edbd9 100644 --- a/localstack/aws/forwarder.py +++ b/localstack/aws/forwarder.py @@ -175,6 +175,8 @@ def create_aws_request_context( # The endpoint URL is mandatory here, set a dummy if not given (doesn't _need_ to be localstack specific) if not endpoint_url: endpoint_url = "http://localhost.localstack.cloud" + # pre-process the request args (some params are modified using botocore event handlers) + parameters = client._emit_api_params(parameters, operation, request_context) request_dict = client._convert_to_request_dict( parameters, operation, endpoint_url, context=request_context ) diff --git a/setup.cfg b/setup.cfg index 498a344afc8d5..9c0e69cd466a8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -69,7 +69,7 @@ runtime = awscrt>=0.13.14 boto>=2.49.0 boto3>=1.26.121 - botocore>=1.29.121,<=1.29.121 + botocore>=1.29.133 cbor2>=5.2.0 crontab>=0.22.6 dnslib>=0.9.10 diff --git a/tests/unit/aws/test_service_router.py b/tests/unit/aws/test_service_router.py index 45060555a1560..fe1378c9fbb91 100644 --- a/tests/unit/aws/test_service_router.py +++ b/tests/unit/aws/test_service_router.py @@ -172,6 +172,8 @@ def test_service_router_works_for_every_service( } request_args = _create_dummy_request_args(operation) + # pre-process the request args (some params are modified using botocore event handlers) + request_args = client._emit_api_params(request_args, operation, request_context) # The endpoint URL is mandatory here, just set a dummy (doesn't _need_ to be localstack specific) request_dict = client._convert_to_request_dict( request_args, operation, "http://localhost.localstack.cloud", request_context