Getting boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden when uploading file

前端 未结 3 776
天涯浪人
天涯浪人 2020-12-19 20:45

There are a few other questions on this issue:

boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden

S3ResponseError: S3ResponseError: 403 Forbidden

相关标签:
3条回答
  • 2020-12-19 20:55

    I had this issue too where I tried validate=False, and ntpdate, and giving "Authenticated Users" the permission to upload/delete on AWS. My resolution is probably rare, but just in case anyone else did this:

    I started running my Django app with credentials in my environment for my bucket 'xyz'. Then I changed the credentials to upload to my friend's bucket 'abc'. There was a mismatch between these credentials, so all I needed to do was restart gunicorn.

    0 讨论(0)
  • 2020-12-19 21:12

    This will also happen if your machine's time settings are incorrect

    0 讨论(0)
  • 2020-12-19 21:17

    It looks like that you do not have the right to write on this bucket. What is the bucket policy? Can you make sure that this IAM user can put on this bucket?

    0 讨论(0)
提交回复
热议问题