AWS S3: The bucket you are attempting to access must be addressed using the specified endpoint

后端 未结 15 480
南旧
南旧 2020-12-02 10:33

I am trying to delete uploaded image files with the AWS-SDK-Core Ruby Gem.

I have the following code:

require \'aws-sdk-core\'

def pull_picture(pict         


        
15条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 11:16

    This occurred for me when I had a source ip constraint on the policy being used by the user (access key / secret key) to create the s3 bucket. My IP was accurate--but for some reason it wouldn't work and gave this error.

提交回复
热议问题