diff --git a/moto/backend_index.py b/moto/backend_index.py index 23c94b52c..f748157be 100644 --- a/moto/backend_index.py +++ b/moto/backend_index.py @@ -139,6 +139,7 @@ backend_url_patterns = [ ("sts", re.compile("https?://sts\\.(.*\\.)?amazonaws\\.com")), ("support", re.compile("https?://support\\.(.+)\\.amazonaws\\.com")), ("swf", re.compile("https?://swf\\.(.+)\\.amazonaws\\.com")), + ("textract", re.compile("https?://textract\\.(.+)\\.amazonaws\\.com")), ( "timestream-write", re.compile("https?://ingest\\.timestream\\.(.+)\\.amazonaws\\.com"), @@ -148,7 +149,6 @@ backend_url_patterns = [ re.compile("https?://ingest\\.timestream\\.(.+)\\.amazonaws\\.com/"), ), ("transcribe", re.compile("https?://transcribe\\.(.+)\\.amazonaws\\.com")), - ("textract", re.compile("https?://textract\\.(.+)\\.amazonaws\\.com")), ("wafv2", re.compile("https?://wafv2\\.(.+)\\.amazonaws.com")), ("xray", re.compile("https?://xray\\.(.+)\\.amazonaws.com")), ] diff --git a/tests/test_textract/test_textract.py b/tests/test_textract/test_textract.py index 86746f65d..bac56cdad 100644 --- a/tests/test_textract/test_textract.py +++ b/tests/test_textract/test_textract.py @@ -18,7 +18,7 @@ from moto import mock_textract @mock_textract def test_start_document_text_detection(): - client = boto3.client("textract", region_name="us-east-2") + client = boto3.client("textract", region_name="us-east-1") resp = client.start_document_text_detection( DocumentLocation={ 'S3Object': {