{"id":12109,"date":"2023-06-03T15:06:14","date_gmt":"2023-06-03T06:06:14","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=12109"},"modified":"2023-08-03T06:57:44","modified_gmt":"2023-08-02T21:57:44","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%88ubuntu-desktop-22-04%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/12109","title":{"rendered":"AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Ubuntu Desktop 22.04\uff09"},"content":{"rendered":"<p>Ubuntu Desktop 22.02\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]; title: ; notranslate\" title=\"\">\r\n$ wget &quot;https:\/\/awscli.amazonaws.com\/awscli-exe-linux-x86_64.zip&quot;\r\n--2023-07-29 19:28:51--  https:\/\/awscli.amazonaws.com\/awscli-exe-linux-x86_64.zip\r\nResolving awscli.amazonaws.com (awscli.amazonaws.com)... 18.65.185.19, 18.65.185.73, 18.65.185.99, ...\r\nConnecting to awscli.amazonaws.com (awscli.amazonaws.com)|18.65.185.19|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 58279788 (56M) &#x5B;application\/zip]\r\nSaving to: \u2018awscli-exe-linux-x86_64.zip\u2019\r\n\r\nawscli-exe-linux-x86_64.zip   100%&#x5B;=================================================&gt;]  55.58M  32.2MB\/s    in 1.7s    \r\n\r\n2023-07-29 19:28:53 (32.2 MB\/s) - \u2018awscli-exe-linux-x86_64.zip\u2019 saved &#x5B;58279788\/58279788]\r\n\r\n<\/pre>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ unzip awscli-exe-linux-x86_64.zip\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]; title: ; notranslate\" title=\"\">\r\n$ sudo .\/aws\/install\r\nYou can now run: \/usr\/local\/bin\/aws --version\r\n<\/pre>\n<h2>AWS CLI\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fAWS CLI\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ aws --version\r\naws-cli\/2.13.5 Python\/3.11.4 Linux\/5.19.0-43-generic exe\/x86_64.ubuntu.22 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 ec2 describe-regions\r\n{\r\n    &quot;Regions&quot;: &#x5B;\r\n        {\r\n            &quot;Endpoint&quot;: &quot;ec2.ap-south-1.amazonaws.com&quot;,\r\n            &quot;RegionName&quot;: &quot;ap-south-1&quot;,\r\n            &quot;OptInStatus&quot;: &quot;opt-in-not-required&quot;\r\n        },\r\n...\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\u3001Ubuntu Desktop 22.04\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>Ubuntu Desktop 22.02\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,274,52],"class_list":["post-12109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-operation","tag-aws-cli","tag-ubuntu-desktop","tag-52"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12109","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=12109"}],"version-history":[{"count":11,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12109\/revisions"}],"predecessor-version":[{"id":13396,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12109\/revisions\/13396"}],"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=12109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=12109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=12109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}