{"title":"s3\u304b\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u5f97","type":"rich","provider_name":"Hatena Blog","width":"100%","blog_title":"horie1024\u306e\u65e5\u8a18","author_name":"horie1024","published":"2016-08-18 15:31:20","description":"AWS SDK\u3092\u4f7f\u3044s3\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u30e1\u30e2 require 'aws-sdk-core' Aws.config[:region] = 'ap-northeast-1' s3 = Aws::S3::Client.new( access_key_id: ACCESS_KEY_ID, secret_access_key: SECRET_ACCESS_KEY ) File.open('\u4fdd\u5b58\u6642\u306e\u30d5\u30a1\u30a4\u30eb\u540d', 'w') do |file| s3.get_object({bucket: '\u30d0\u30b1\u30c3\u30c8\u540d', key:'\u53d6\u5f97\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u540d'}, target: file) end \u74b0\u5883\u5909\u6570\u2026","categories":["AWS","Ruby"],"blog_url":"https://horie1024.hatenablog.com/","version":"1.0","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhorie1024.hatenablog.com%2Fentry%2F2016%2F08%2F18%2F153120\" title=\"s3\u304b\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u5f97 - horie1024\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","height":"190","url":"https://horie1024.hatenablog.com/entry/2016/08/18/153120","author_url":"https://blog.hatena.ne.jp/horie1024/"}