Comments (3)
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.
@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.
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)
- Pretty URL's HOT 3
- Support aws-sdk's IAM Roles HOT 2
- Tag releases HOT 2
- Readme: 404 in redirect XML should be 403? HOT 4
- Is it possible to use deploy:index without the revision prefix? HOT 1
- Authentication method error HOT 1
- Fails silently when bucket name contains a period HOT 2
- Getting ERR_CONTENT_DECODING_FAILED in index.html HOT 1
- Correctly set Cache-Control headers on anything not uploaded to assets/ HOT 2
- Adapter cannot deploy index file HOT 10
- Document deploying index and assets to same bucket HOT 7
- Make this plugin 0.5.0 compatible HOT 2
- Compatibility with cloudfront HOT 2
- Please release a new version HOT 1
- Improve `deploy:activate` HOT 7
- Update to support ember-cli-deploy HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-deploy-s3-index.