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

后端 未结 15 454
南旧
南旧 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:22

    Check your bucket location in the console, then use this as reference to which endpoint to use: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

提交回复
热议问题