AWS Rekognition gives an InvalidS3Exeption error

Question:

Every time I run the command

I get this error.

I am trying to retrieve labels for a project I am working on but I can’t seem to get past this step. I configured aws with my access key, secret key, us-east-1 region, and json as my output format.

I have also tried the code below and I receive the exact same error (I correctly Replaced BucketName with the name of my bucket.)

I am able to see on my user account that it is calling Rekognition.
Image showing it being called from IAM.

It seems like the issue is somewhere with my S3 bucket but I haven’t found out what.

Answer:

Region of S3 and Rekognition should be the same for stability reasons.

More info: https://forums.aws.amazon.com/thread.jspa?threadID=243999

Leave a Reply