-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Programatically set S3 Bucket Website IndexDocument #42
Comments
I just added support for ?website, so please download the latest version from github. Here is an example:
|
Thanks @timkay! I'm not able to get this to work however as expected, is there some way to see verbose output?
|
You can add -v or -vv (two v's) to see the actual request sent to S3. I don't think any output is expected from S3... Simply this meta document is written. You can confirm the command worked using "aws get ...?website" 👍
It working or not is beyond the scope of the "aws" command. At this point, it's a question entirely about S3 behavior. |
Thanks Tim, It's "working" and I can see AWS reporting the correct details when I My issue was in my web browser I was accessing |
As I understand it, S3 will redirect from the first URL to the second, so either should work. However, it takes some propagation time after creation of the bucket, so the redirection doesn't work immediately. I might be wrong. Please point me to the relevant documentation. |
http://docs.aws.amazon.com/AmazonS3/latest/dev/IndexDocumentSupport.html I know this isn't strictly the question being answered above, the best I can see in the docs at this point is there thought. |
Is there any way to set IndexDocument for S3 buckets?
http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTwebsite.html
The text was updated successfully, but these errors were encountered: