AWS S3: The bucket you are attempting to access must be addressed using the specified endpoint AWS S3: The bucket you are attempting to access must be addressed using the specified endpoint ruby-on-rails ruby-on-rails

AWS S3: The bucket you are attempting to access must be addressed using the specified endpoint


It seems likely that this bucket was created in a different region, IE not us-west-2. That's the only time I've seen "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint."

US Standard is us-east-1


Check your bucket location in the console, then use this as reference to which endpoint to use:http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region


I was facing a similar error because the bucket was in region us-west-2 and the URL pattern had bucketname in the path. Once, I changed the URL pattern to have bucketname as URL subdomain to grab the files and it worked.

For eg previous URL was

https://s3.amazonaws.com/bucketname/filePath/filename

Then I replaced it as

https://bucketname.s3.amazonaws.com/filePath/filename