-
Notifications
You must be signed in to change notification settings - Fork 687
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
problem with S3 auth token #20
Comments
@farschmessivo I saw you commented in #18, so I just wanted to clarify that the S3 settings I described in that issue are for allowing public read, and are not sufficient to allow an authenticated ghost blog’s S3 client to write to the S3 bucket. For that, you’ll need to set up the correct bucket access policies, users, and groups (if using IAM) to allow your client’s id/secret key pair to be able upload images. I also notice that according to this page of the AWS documentation an error of |
I'm also having this problem. I even tested it with AWS root credentials and it doesn't work. Any advice? |
Bummer to hear that other people are running into this too. I still haven’t been able to reproduce this myself 😣. Other than the dependency on muzix/ghost-s3, the only code in this project that could be affecting this is this code here, so there’s only a limited amount of things it could be. If it’s not an issue with the code here, it might be worth opening an issue on the ghost-s3 repo? |
OK thank you, I'll open an issue there too. |
I think I had a similar problem which I solved by creating bucket in US Standard region. Please try to create your bucket in US Standard and report back. |
OK I'll try that. Should the value of S3_BUCKET_REGION be "US Standard"? Spelled out with spaces just like that? |
You’ll probably want to use the
If there’s region issues with this, it might also be worth trying to change the region you choose for the Heroku deployment too? |
OK thank you it's working now. The problem is I didn't have the right S3_BUCKET_REGION slug. I wasn't aware that these even existed, so maybe we want to clarify somewhere that these need to be looked up and used, as opposed to the plaintext names that Amazon lists in the "properties" menu of the bucket. |
👍 Yep, good call. I’ll look at adding that to the docs 🔜 |
Woot! |
What should go in the S3_ASSET_HOST_URL entry? |
@brandontle I believe it's optional, see #22 |
Yep, it’s optional—you’ll only need that if you have a custom CDN domain alias set up for your S3 bucket. We definitely need to update the |
Got it, thanks! |
@cobyism Ran into this issue too when I was setting it up, had to read the log to find out what went wrong. Adding a step by step guide in the Edit: I found this blog post very useful for setting up S3 http://blog.kida.io/ghost-on-heroku/ |
@andy-williams 👍 Thanks for chiming in. I updated the I’d ❤️ for the documentation to capture the things people find most confusing, so if anyone has suggestions, please open a new issue (or even better, send a PR to improve the @farschmessivo since I haven’t heard back, I’m going to go ahead and close this issue, as other people seem to have resolved the same issue you experienced. Feel free to reopen if your original issue isn’t resolved by the comments in this thread. 🙇 |
I'm getting a 403 "Access denied" error. My region is Oregon, so I supplied My bucket policy looks like this:
Also added this to the policy but didn't work:
I used the official policy generator to create it and followed the steps on this aws blog post. But I'm still getting the error. I then went to the IAM console and created a similar policy pointing to my bucket and added it for my user. But still, same error message. Any idea what I'm doing wrong? |
I figured out why it wasn't working. For anyone else out there who still can't figure this out, I actually didn't need to add a bucket policy within s3 at all. I just created an IAM user and gave them this policy:
This allows me to read/write to the bucket with no problem. Unlike all the blog posts I've read, it won't work without |
Hi guys,
Apparently, I can't upload images through dashboard although S3 on Heroku is set up correctly
Thanks
The text was updated successfully, but these errors were encountered: