aws-sdk for Ruby access folder within bucket

后端 未结 5 1098
[愿得一人]
[愿得一人] 2020-12-25 08:09

I have a bucket on the Amazon S3 with the folder in it. I\'m trying to access it the following way via aws-sdk gem:

s3 = AWS::S3.new(
    :         


        
5条回答
  •  爱一瞬间的悲伤
    2020-12-25 08:57

    The answer by Godsaur is essentially correct. However, it appears to be outdated, perhaps for SDK version 1?

    This worked for me for version 2:

    s3 = Aws::S3::Client.new(endpoint:'https://s3-ap-southeast-1.amazonaws.com')
    

    See docs.

提交回复
热议问题