I have boto client like this
client = boto3.client('rekognition', region_name="us-east-1")
I am using this client to detect text from image and deployed code in AWS region where Rekognition api is not available but provided the region-name where it is available in client. On executing/Testing the lambda function, it is giving
errorMessage": "Could not connect to the endpoint URL: \"https://rekognition.ap-south-1.amazonaws.com/"
Why it is picking ap-south-1 as i provided in client-"us-east-1"
client = boto3.client('rekognition', region_name="us-east-1")
But when I run the code locally with region-name:- ap-south-1 and in client
client = boto3.client('rekognition', region_name="us-east-1")
its running wonderfully
but not running on AWS lambda
While successfully running when both the regions are same(us-east-1)
So great if anyone can provide any suggestion, Required Help soon!!!!!!!