{"id":12224,"date":"2023-06-05T21:22:40","date_gmt":"2023-06-05T12:22:40","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=12224"},"modified":"2023-08-03T06:58:40","modified_gmt":"2023-08-02T21:58:40","slug":"aws-shell%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/12224","title":{"rendered":"AWS CLI\u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3057\u305fAWS Shell\u3092\u4f7f\u7528\u3059\u308b\uff01"},"content":{"rendered":"<p>AWS CLI\u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3057\u305fAWS Shell\u3092\u5229\u7528\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3001AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/11284\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/eyecatch_aws_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09<\/div><div class=\"substr\">Rocky Linux 9\u306b\u3001AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>AWS Shell\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>Python\u306e\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u6210\u3057\u3066\u3001AWS Shell\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u74b0\u5883\u306f\u3001Rocky Linux 9.2\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u304c\u3001Python\u74b0\u5883\u3067\u306f\u540c\u69d8\u306a\u624b\u9806\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,3]; title: ; notranslate\" title=\"\">\r\n$ python3 -m venv aws\r\n$ source ~\/aws\/bin\/activate\r\n$ pip install aws-shell\r\nCollecting aws-shell\r\n  Downloading aws_shell-0.2.2-py2.py3-none-any.whl (50 kB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 50 kB 960 kB\/s \r\nCollecting configobj&lt;6.0.0,&gt;=5.0.6\r\n  Downloading configobj-5.0.8-py2.py3-none-any.whl (36 kB)\r\nCollecting prompt-toolkit&lt;1.1.0,&gt;=1.0.0\r\n  Downloading prompt_toolkit-1.0.18-py3-none-any.whl (245 kB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 245 kB 2.8 MB\/s \r\nCollecting Pygments&lt;3.0.0,&gt;=2.1.3\r\n  Downloading Pygments-2.15.1-py3-none-any.whl (1.1 MB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 1.1 MB 5.3 MB\/s \r\nCollecting boto3&lt;2.0.0,&gt;=1.9.0\r\n  Downloading boto3-1.26.146-py3-none-any.whl (135 kB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 135 kB 9.9 MB\/s \r\nCollecting awscli&lt;2.0.0,&gt;=1.16.10\r\n  Downloading awscli-1.27.146-py3-none-any.whl (4.1 MB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 4.1 MB 8.2 MB\/s \r\nCollecting botocore==1.29.146\r\n  Downloading botocore-1.29.146-py3-none-any.whl (10.8 MB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 10.8 MB 3.8 MB\/s \r\nCollecting rsa&lt;4.8,&gt;=3.1.2\r\n  Downloading rsa-4.7.2-py3-none-any.whl (34 kB)\r\nCollecting docutils&lt;0.17,&gt;=0.10\r\n  Downloading docutils-0.16-py2.py3-none-any.whl (548 kB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 548 kB 9.5 MB\/s \r\nCollecting s3transfer&lt;0.7.0,&gt;=0.6.0\r\n  Downloading s3transfer-0.6.1-py3-none-any.whl (79 kB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 79 kB 7.0 MB\/s \r\nCollecting PyYAML&lt;5.5,&gt;=3.10\r\n  Downloading PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 630 kB 9.7 MB\/s \r\nCollecting colorama&lt;0.4.5,&gt;=0.2.5\r\n  Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)\r\nCollecting jmespath&lt;2.0.0,&gt;=0.7.1\r\n  Downloading jmespath-1.0.1-py3-none-any.whl (20 kB)\r\nCollecting urllib3&lt;1.27,&gt;=1.25.4\r\n  Downloading urllib3-1.26.16-py2.py3-none-any.whl (143 kB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 143 kB 9.4 MB\/s \r\nCollecting python-dateutil&lt;3.0.0,&gt;=2.1\r\n  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 247 kB 7.3 MB\/s \r\nCollecting six\r\n  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)\r\nCollecting wcwidth\r\n  Downloading wcwidth-0.2.6-py2.py3-none-any.whl (29 kB)\r\nCollecting pyasn1&gt;=0.1.3\r\n  Downloading pyasn1-0.5.0-py2.py3-none-any.whl (83 kB)\r\n     |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 83 kB 2.2 MB\/s \r\nInstalling collected packages: six, urllib3, python-dateutil, jmespath, pyasn1, botocore, wcwidth, s3transfer, rsa, PyYAML, docutils, colorama, Pygments, prompt-toolkit, configobj, boto3, awscli, aws-shell\r\nSuccessfully installed PyYAML-5.4.1 Pygments-2.15.1 aws-shell-0.2.2 awscli-1.27.146 boto3-1.26.146 botocore-1.29.146 colorama-0.4.4 configobj-5.0.8 docutils-0.16 jmespath-1.0.1 prompt-toolkit-1.0.18 pyasn1-0.5.0 python-dateutil-2.8.2 rsa-4.7.2 s3transfer-0.6.1 six-1.16.0 urllib3-1.26.16 wcwidth-0.2.6\r\nWARNING: You are using pip version 21.2.3; however, version 23.1.2 is available.\r\nYou should consider upgrading via the '\/home\/usradmin\/aws\/bin\/python3 -m pip install --upgrade pip' command.\r\n<\/pre>\n<h2>AWS Shell\u3092\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>\u300caws-shell\u300d\u30b3\u30de\u30f3\u30c9\u3067\u3001AWS Shell\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ aws-shell\r\n<\/pre>\n<h2>AWS Shell\u306e\u30b3\u30de\u30f3\u30c9\u88dc\u5b8c\u3092\u5229\u7528\u3059\u308b\uff01<\/h2>\n<p>\u300caws-shell\u300d\u3067\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068\u3001\u81ea\u52d5\u3067\u30b3\u30de\u30f3\u30c9\u306e\u5019\u88dc\u304c\u8996\u899a\u7684\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2023\/06\/aws_shell_start_01.png\"><img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2023\/06\/aws_shell_start_01.png\" alt=\"\" width=\"1146\" height=\"749\" class=\"alignnone size-full wp-image-12228 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2023\/06\/aws_shell_start_01.png 1146w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2023\/06\/aws_shell_start_01-300x196.png 300w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2023\/06\/aws_shell_start_01-1024x669.png 1024w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2023\/06\/aws_shell_start_01-768x502.png 768w\" data-sizes=\"auto, (max-width: 1146px) 100vw, 1146px\" \/><\/a><\/p>\n<h2>AWS Shell\u3092\u7d42\u4e86\u3059\u308b\uff01<\/h2>\n<p>AWS Shell\u306f\u3001\u300cCtrl-d\u300d\u3067\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>AWS Shell\u3067\u306f\u3001\u30b3\u30de\u30f3\u30c9\u88dc\u5b8c\u304c\u8996\u899a\u7684\u306b\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3092\u6c17\u8efd\u306b\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306f\u3001AWS CLI\u3088\u308a\u4fbf\u5229\u306b\u4f7f\u7528\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/cli\/latest\/userguide\/cli-configure-completion.html\" rel=\"noopener\" target=\"_blank\">AWS CLI\u306e\u30b3\u30de\u30f3\u30c9\u88dc\u5b8c<\/a><\/li>\n<\/ul>\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>AWS CLI\u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3057\u305fAWS Shell\u3092\u5229\u7528\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":[397,288,395,396],"class_list":["post-12224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-operation","tag-awl-cli","tag-aws","tag-aws-shell","tag-python"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12224","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=12224"}],"version-history":[{"count":8,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12224\/revisions"}],"predecessor-version":[{"id":13397,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12224\/revisions\/13397"}],"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=12224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=12224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=12224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}