Trying to set up Amazon's S3 bucket: 403 Forbidden error & setting permissions

前端 未结 7 2031
Happy的楠姐
Happy的楠姐 2021-01-03 02:52

I\'m following Hartl\'s railstutorial.org and have arrived at 11.4.4: Image upload in production. What I\'ve done:

  • Signed up for Amazon Web Services
  • I
7条回答
  •  北海茫月
    2021-01-03 03:45

    The root of the problem indeed turned out to be the permissions. It was necessary to write a custom policy and set the CORS configuration on the bucket. For any future users that want to implement this chapter of the rails tutorial, see Writing an IAM policy and CORS configuration for Amazon S3 for the necessary code.

提交回复
热议问题