git - After forced push to heroku images on AWS S3 are not showing (403) -
i have been updating app friend on heroku. app , heroku install had been set else.
so cloned repo new code github , did updates. of course, pushing these changes needed fail. issued
git push -f production heroku_branch:master where production:
[remote "production"] url = git@heroku.com:<our-app-name>.git fetch = +refs/heads/*:refs/remotes/production/* this seemed work images not being shown. images on s3. browser says 403 images. however, issuing
heroku config confirms required vars set (amazon_access_key_id,amazon_secret_access_key,s3_bucket_name)
what missing?
seems weird, after adding bucket-policy seems work. not sure right, heroku docs don't bucket policy...and creating bucket policies pretty cryptic! no like.
also because policy looks this:
{ "version":"2008-10-17", "statement":[{ "sid":"addperm", "effect":"allow", "principal": { "aws": "*" }, "action":["s3:getobject"], "resource":["arn:aws:s3:::bucket/*" ] } ] } essentially granting access anyone. not sure if needs complicated grant access anyone? , maybe not sure want grant access anyone...but maybe needs so? otherwise how people access images browser...
too many questions here :(
Comments
Post a Comment