From f58e6e1038baf2ce7845c0aadbc955769cb285ee Mon Sep 17 00:00:00 2001 From: Christian Bandowski Date: Thu, 26 Nov 2020 09:52:58 +0100 Subject: [PATCH] #3494 fix using EventBridge via Go SDK (#3495) --- moto/server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/moto/server.py b/moto/server.py index a10dc4e3..28e4ce55 100644 --- a/moto/server.py +++ b/moto/server.py @@ -93,6 +93,11 @@ class DomainDispatcherApplication(object): # S3 is the last resort when the target is also unknown service, region = DEFAULT_SERVICE_REGION + if service == "EventBridge": + # Go SDK uses 'EventBridge' in the SigV4 request instead of 'events' + # see https://github.com/spulec/moto/issues/3494 + service = "events" + if service == "dynamodb": if environ["HTTP_X_AMZ_TARGET"].startswith("DynamoDBStreams"): host = "dynamodbstreams"