boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden

后端 未结 9 1194
感情败类
感情败类 2020-11-29 19:13

I\'m trying to get django to upload static files to S3, but istead I\'m getting a 403 forbidden error, and I\'m not sure why.

Full Stacktrace:

9条回答
  •  感情败类
    2020-11-29 19:30

    It is also possible that the wrong credentials are being used. To verify:

    import boto
    s3 = boto.connect_s3('', '')
    bucket = s3.get_bucket('') # does this work?
    s3 = boto.connect_s3()
    s3.aws_access_key_id  # is the same key being used by default?
    

    If not, take a look at ~/.boto, ~/.aws/config and ~/.aws/credentials.

提交回复
热议问题