{"id":2213,"date":"2020-02-26T23:06:33","date_gmt":"2020-02-26T14:06:33","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=2213"},"modified":"2020-02-27T22:36:45","modified_gmt":"2020-02-27T13:36:45","slug":"amazon-linux-awscli%e7%b5%8c%e7%94%b1%e3%81%a7s3%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/amazon-linux-awscli%e7%b5%8c%e7%94%b1%e3%81%a7s3%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%99%e3%82%8b\/","title":{"rendered":"[Amazon Linux] awscli\u7d4c\u7531\u3067s3\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b"},"content":{"rendered":"<p>Amazon Linux\u304b\u3089\u30c7\u30fc\u30bf\u3092\u5f15\u3063\u8d8a\u3057\u3057\u305f\u304b\u3063\u305f\u304c\u3001\u3044\u3061\u3044\u3061FTP\u3067\u30ed\u30fc\u30ab\u30eb\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066S3\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u306e\u306f\u3081\u3093\u3069\u304f\u3055\u304b\u3063\u305f\u306e\u3067\u76f4\u63a5\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f<\/p>\n<h2>\u4e8b\u524d\u6e96\u5099<\/h2>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u308b\u5074\u306eS3\u30d0\u30b1\u30c3\u30c8\u306e\u4f5c\u6210\u53ca\u3073\u5bfe\u8c61\u30d0\u30b1\u30c3\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u30dd\u30ea\u30b7\u30fc\u3092\u6301\u3063\u305fIAM\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3002<\/p>\n<p>\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306e\u4e21\u65b9\u3092\u63a7\u3048\u3066\u304a\u304f<\/p>\n<p>&nbsp;<\/p>\n<h2>awscli \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>amazon linux\u306b\u306faws cli\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001pip\u7d4c\u7531\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/p>\n<p>&nbsp;<\/p>\n<h2>pip\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u305d\u3082\u305d\u3082pip\u3082\u5165\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"lang:default decode:true\">sudo easy_install pip<\/pre>\n<p>&nbsp;<\/p>\n<h2>pip\u304b\u3089aws cli\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"lang:default decode:true\">sudo pip install awscli<\/pre>\n<p>&nbsp;<\/p>\n<h2>aws cli\u306e\u52d5\u4f5c\u78ba\u8a8d\u53ca\u3073\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/h2>\n<pre class=\"lang:default decode:true\">aws --version<\/pre>\n<p>&nbsp;<\/p>\n<h2>aws configure\u3067\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306a\u3069\u3092\u8a2d\u5b9a<\/h2>\n<pre class=\"\">aws configure --profile=[\u4efb\u610f\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d]<\/pre>\n<pre class=\"\">AWS Access Key ID [None]: \u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u5165\u529b\r\nAWS Secret Access Key [None]: \u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u5165\u529b\r\nDefault region name [None]: ap-northeast-1\r\nDefault output format [None]:<\/pre>\n<p>&nbsp;<\/p>\n<h2>S3\u306e\u30d0\u30b1\u30c3\u30c8\u4e00\u89a7\u51fa\u529b\u3057\u3066\u307f\u308b<\/h2>\n<pre class=\"lang:default decode:true\">aws s3 ls --profile=[\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305f\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d]<\/pre>\n<p>&nbsp;<\/p>\n<h2>S3\u3078\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc<\/h2>\n<pre class=\"lang:default decode:true\">aws s3 cp [\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb] s3:\/\/[\u30d0\u30b1\u30c3\u30c8\u540d]\/ --acl public-read --profile=[\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305f\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d]<\/pre>\n<h2><\/h2>\n<h2>\u30b3\u30d4\u30fc\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u7f72\u540d\u4ed8\u304dURL\u3092\u53d6\u5f97<\/h2>\n<pre class=\"lang:default decode:true\">aws s3 presign s3:\/\/[\u30d0\u30b1\u30c3\u30c8\u540d]\/[\u30d5\u30a1\u30a4\u30eb\u540d] --profile=[\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305f\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d]<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Amazon Linux\u304b\u3089\u30c7\u30fc\u30bf\u3092\u5f15\u3063<\/p>\n","protected":false},"author":1,"featured_media":45,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/2213"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=2213"}],"version-history":[{"count":4,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/2213\/revisions"}],"predecessor-version":[{"id":2221,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/2213\/revisions\/2221"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/45"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=2213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=2213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=2213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}