Answers.Body: <p>The problem ended up being that I had completely missed the <code>location</code> setting in the database column of the Asset source.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-10T16:33:03.280Z
Answers.LastActivityDate: 2016-05-10T16:33:03.280Z
Answers.UserDisplayName: Fred Carlsen
Body: <p>Amazon S3 is returning the following error for a file in a bucket that is in Ireland (s3-eu-west-1):</p>
  
  <blockquote>
    <p>[PermanentRedirect] The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</p>
  </blockquote>
  
  <p>The URL prefix is setup to be s3-eu-west-1.amazonaws.com, and using the S3.php class standalone with my key/secret, the bucket are listed as being in eu-west-1.</p>
  
  <p>I tried logging out inside S3->getObjectInfo() what endpoint Craft/S3.php was using when accessing the file.</p>
  
  <p>For some reason, it's <code>s3-us-west-2.amazonaws.com</code>. Isn't that weird?</p>
  
Tags: <assets><s3>
Title: Amazon S3 endpoint is wrong when accessing Asset info
ThreadText: # Amazon S3 endpoint is wrong when accessing Asset info
  
  (Asked by: username_0 on 2016-05-10)
  
  Amazon S3 is returning the following error for a file in a bucket that is in Ireland (s3-eu-west-1):
  
  > [PermanentRedirect] The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
  
  The URL prefix is setup to be s3-eu-west-1.amazonaws.com, and using the S3.php class standalone with my key/secret, the bucket are listed as being in eu-west-1.
  
  I tried logging out inside S3->getObjectInfo() what endpoint Craft/S3.php was using when accessing the file.
  
  For some reason, it's `s3-us-west-2.amazonaws.com`. Isn't that weird?
  
  **Tags:** assets, s3
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-05-10. Score: 3
  
  The problem ended up being that I had completely missed the `location` setting in the database column of the Asset source.
  
  
  ---
  
  