{"id":11284,"date":"2023-05-08T10:53:03","date_gmt":"2023-05-08T01:53:03","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=11284"},"modified":"2023-08-01T07:26:08","modified_gmt":"2023-07-31T22:26:08","slug":"aws-cli%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88locky-linux-9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/11284","title":{"rendered":"AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09"},"content":{"rendered":"<p>Rocky Linux 9\u306b\u3001AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>AWS CLI\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5c55\u958b\u3059\u308b\uff01<\/h2>\n<p>AWS CLI\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,3]; title: ; notranslate\" title=\"\">\r\n$ curl &quot;https:\/\/awscli.amazonaws.com\/awscli-exe-linux-x86_64.zip&quot; -o &quot;awscliv2.zip&quot;\r\n$ unzip awscliv2.zip\r\n...\r\n$ ls -ld aws\r\ndrwxr-xr-x. 3 usradmin usradmin 78 May  5 21:12 aws\r\n<\/pre>\n<h2>AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\r\n$ sudo .\/aws\/install\r\nYou can now run: \/usr\/local\/bin\/aws --version\r\n$ aws --version\r\naws-cli\/2.11.18 Python\/3.11.3 Linux\/5.14.0-162.6.1.el9_1.x86_64 exe\/x86_64.rocky.9 prompt\/off\r\n<\/pre>\n<h2>AWS CLI\u306e\u63a5\u7d9a\u60c5\u5831\u3092\u8a2d\u5b9a\u3059\u308b\uff01<\/h2>\n<p>IAM\u3067\u4f5c\u6210\u3057\u305f\u30a2\u30af\u30bb\u30b9\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ aws configure\r\nAWS Access Key ID &#x5B;None]: ...\r\nAWS Secret Access Key &#x5B;None]: ...\r\nDefault region name &#x5B;None]: ap-northeast-1\r\nDefault output format &#x5B;None]: json\r\n<\/pre>\n<p>\u8a2d\u5b9a\u3057\u305f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat .aws\/credentials \r\n&#x5B;default]\r\naws_access_key_id = ...\r\naws_secret_access_key = ...\r\n<\/pre>\n<p>\u8a2d\u5b9a\u3057\u305f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u4ee5\u5916\u306e\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat .aws\/config \r\n&#x5B;default]\r\nregion = ap-northeast-1\r\noutput = json\r\n<\/pre>\n<h2>AWS\u306b\u63a5\u7d9a\u3057\u3066\u307f\u308b\uff01<\/h2>\n<p>\u4f5c\u6210\u6e08\u307f\u306eS3\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ aws s3 ls\r\n2023-03-24 09:44:05 rhel86iso\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>AWS CLI\u306f\u3001Linux\u3092\u5e83\u304f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001Rocky Linux 9\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/12112\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AWS\u3092\u64cd\u4f5c\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/eyecatch_aws_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AWS\u3092\u64cd\u4f5c\u3059\u308b\uff01<\/div><div class=\"substr\">AWS\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 9\u306b\u3001AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":8172,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[370],"tags":[353,282],"class_list":["post-11284","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-operation","tag-aws-cli","tag-linux"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/11284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=11284"}],"version-history":[{"count":13,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/11284\/revisions"}],"predecessor-version":[{"id":13375,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/11284\/revisions\/13375"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/8172"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=11284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=11284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=11284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}