1
votes

I am using AWS recognition on an S3 bucket of data that is currently located in the US-West-1 region. Unfortunately, AWS Rekognition is not supported in that region. I attempted to copy over my bucket into a US-West-2 region, but encountered difficulties in getting metadata. As such, my question is, how do I route my API call to another endpoint, specifically the endpoint 'https://rekognition.us-east-1.amazonaws.com' even though the bucket is based in another region. Any help or advice would be appreciated.

EDIT: I thought it may be relevant to mention, I am running this on Python.

1
How are you trying to access AWS Rekognition? - M. Glatki
I am using an API call in a Python script, using the search_faces_by_image command. - Kabir Nagrecha

1 Answers

2
votes

Assuming you are using boto3 in your python script, you should be able to select a region when you create your client resource. Try doing something similar to this:

re_client= boto3.client('rekognition', region_name='us-east-1')

If your question is if you can use AWS Rekognition in one region to access a bucket in another region: As far as I know, you can't. However, you might be able to either migrate yor bucket to the specific region, or use S3 cross-region recplication to access the data from both regions.