AWS Rekognition gives an InvalidS3Exeption error


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.


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

More info:

Leave a Reply