Giter Site home page Giter Site logo

PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint. about ember-deploy-s3-index HOT 3 CLOSED

kerry350 avatar kerry350 commented on July 25, 2024
PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint.

from ember-deploy-s3-index.

Comments (3)

johnnyshields avatar johnnyshields commented on July 25, 2024 1

This could be related to the S3 region not being specified (sometimes AWS requires the region explicitly even though it's already in the hostname). I've seen a similar error in a different library.

from ember-deploy-s3-index.

timiyay avatar timiyay commented on July 25, 2024

@radcliff Did you end up resolving this?

I'm getting a similar issue, and I'm currently assuming I'm misunderstanding the hostName value I'm supposed to use. A quick Google points to this issue being for non-US regions (I'm in ap-southeast-2), but all variations on the hostName are throwing the same error for me.

Am I supposed to be using the full s3 static site host name? (i.e. ember.index.s3-website-ap-southeast-2.amazonaws.com)

Not only does ember deploy:list fail, but so does the index / store deployment. The assets works, but the index bucket is not updated.

UPDATE: some digging showed that my issue occurs when my non-US bucket name has periods in it. This means it's likely related to #25

I'll keep digging, as it appears to be related to aws/aws-sdk-js#285 which, in turn, pushes the blame down to the S3 API.

The requirements of S3 static website hosting, where the bucket name matches the domain name, require periods.

from ember-deploy-s3-index.

timiyay avatar timiyay commented on July 25, 2024

Solved.

You have to specify region in your config, which is transparently passed down to aws-sdk, which passes it to the S3 API. Otherwise, the region is set as us-east-1, and the redirect comes back.

Example:

store: {
  type: 'S3',
  bucket: 'ember.index',
  accessKeyId: xxxxxxxxxxxxxxx,
  secretAccessKey: xxxxxxxxxxxxxxx,
  hostName: 'ember.index.s3-website-ap-southeast-2.amazonaws.com',
  indexMode: 'direct'
}

from ember-deploy-s3-index.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.