Closed notslang closed 10 years ago
oh, and the full commit message would prolly be relevant:
the s3 [api] doesn't let us specify a website config without including things like the error page and redirects (which we don't know), and creating a bucket is really a one-time thing... not something a deployment tool should necessarily be dealing with. maybe we could add this stuff back later but that website config bug needs to be fixed first.
+1 to @kylemac's request. It doesn't really matter whether creating buckets is something deployment tools 'usually do', we use it frequently and it has been extremely useful. Would prefer not to remove this.
yeah, maybe this is where we take a little bit of a liberty as the maintainers since it's been so helpful for us. I think we can assume index.html
for the index document and if I'm not mistaken, we should be able to create a bucket w/o an error document. maybe @joshrowley can jump in since he was the one to add this feature in the beginning.
yeah, it's fine to assume index.html
as the index document and we should be able to create a bucket w/o an error document (as the amazon web interface does), but it doesn't work with the current version of aws-sdk. So, before we can add that back we need to fix the sdk, or get amazon to fix it.
This functionality is working perfectly in the latest tagged version. Are you saying the aws-sdk
module was bumped and broke this functionality?
no, I didn't think that it ever worked... even the docs say that the error page and redirects are required parameters, and when I tried it it enforced that behavior.
It works. We have been using it for months, creating buckets through ship and deploying sites. We have used this for large production sites without issue.
oh, sorry - I didn't know that. hmm... must just be a recent change. I'll look into that next.
I can't jump in on this today, I'm playing a bit of catch up with some client work. It's also been a while since I've looked at this code, but feel free to ask me any questions you might have on Slack @slang800.
sorry @joshrowley, just meant your opinion on the discussion - not the actual implementation.
I'm in favor of automatic bucket creation and site config. The end user is saved from looking up the docs, finding the config in the AWS console (which is terrible), configuring, and testing. It just works.
I didn't handle any error page configuration, but I assumed index.html
would be the index document.
@slang800 sounds like if you can map josh's original implementation to the new API we should be able to get it to work. give that a shot.
yeah... actually I prolly just need to see what changed recently in https://github.com/aws/aws-sdk-js (because the api hasn't changed since 2006 & I tested it with josh's original implementation)
opened an issue here: https://github.com/aws/aws-sdk-js/issues/274
from @kylemac: