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

前端 未结 7 2036
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条回答
  •  Happy的楠姐
    2021-01-03 03:41

    You may be missing a step which is to set your IAM policy if using an IAM user to configure your bucket.

    Go to IAM console, select your user, go to the permissions tab, click the attach policy button and add administrator access.

    After that the error should go away and you can upload files with no problem ;)

提交回复
热议问题