{"type":"rich","provider_url":"https://hatena.blog","width":"100%","author_url":"https://blog.hatena.ne.jp/thr3a/","blog_title":"\u52d5\u304b\u3056\u308b\u3053\u3068\u30d0\u30b0\u306e\u5982\u3057","categories":["ruby"],"provider_name":"Hatena Blog","url":"https://blog.turai.work/entry/20190729/1564408054","image_url":null,"title":"AWS\u3092\u4f7f\u3063\u305fRspec\u30c6\u30b9\u30c8\u306b\u306f\u30e2\u30c3\u30af\u3092\u4f7f\u3046\u3068\u7c21\u5358","blog_url":"https://blog.turai.work/","height":"190","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20190729%2F1564408054\" title=\"AWS\u3092\u4f7f\u3063\u305fRspec\u30c6\u30b9\u30c8\u306b\u306f\u30e2\u30c3\u30af\u3092\u4f7f\u3046\u3068\u7c21\u5358 - \u52d5\u304b\u3056\u308b\u3053\u3068\u30d0\u30b0\u306e\u5982\u3057\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"thr3a","description":"\u74b0\u5883 Ruby 2.6 AWS SDK for Ruby V3 \u3084\u308a\u305f\u3044\u3053\u3068 Ruby\u3092\u4f7f\u3063\u3066S3\u3068\u304b\u6271\u3046\u3053\u3068\u5168\u7136\u3042\u308b\u3068\u601d\u3046\u3002\u4f8b\u3048\u3070\u4ee5\u4e0b\u306f\u30d0\u30b1\u30c3\u30c8\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3066\u8868\u793a\u3059\u308b\u30b3\u30fc\u30c9 require 'aws-sdk-s3' client = Aws::S3::Client.new( region: 'ap-northeast-1' ) bucket_data = client.list_buckets.buckets bucket_data.each do |b| p b.name end \u304c\u3001S3\u306a\u3044\u3057\u306fAWS\u306f\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306a\u306e\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u5165\u308b\u3002\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u3092\u307e\u305f\u3050\u30b5\u30fc\u30d3\u30b9\u3092\u7d44\u307f\u8fbc\u3093\u3060\u30b3\u30fc\u2026","published":"2019-07-29 22:47:34"}