{"id":13,"date":"2017-11-03T08:00:05","date_gmt":"2017-11-02T23:00:05","guid":{"rendered":"http:\/\/www.itc109.com\/knowledge\/?p=13"},"modified":"2021-09-30T09:00:53","modified_gmt":"2021-09-30T00:00:53","slug":"install-aws-cil","status":"publish","type":"post","link":"https:\/\/www.itc109.com\/knowledge\/aws\/install-aws-cil","title":{"rendered":"AWS CIL &#8211; \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<h4><strong>\u6982\u8981<\/strong><\/h4>\n<hr \/>\n<p>AWS\u3067\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5c0e\u5165\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4eca\u5f8c\u7d39\u4ecb\u3059\u308bAWS\u95a2\u9023\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u4e0a\u3067\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u5c0e\u5165\u3059\u308b\u4e8b\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u53c2\u7167\uff1a<a href=\"https:\/\/aws.amazon.com\/jp\/cli\/?sc_channel=PS&amp;sc_campaign=acquisition_JP&amp;sc_publisher=google&amp;sc_medium=command_line_interface_b&amp;sc_content=amazon_cli_p&amp;sc_detail=aws%20cli&amp;sc_category=command_line_interface&amp;sc_segment=152980463278&amp;sc_matchtype=p&amp;sc_country=JP&amp;sc_brand=brand&amp;ef_id=WcR2IwAABaY8bSG0:20170922023203:s\" target=\"_blank\" rel=\"noopener\">AWS \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9<\/a><\/p>\n<p>&nbsp;<\/p>\n<h4><strong>\u624b\u9806<\/strong><\/h4>\n<hr \/>\n<ul>\n<li>AWS CLI\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>IAM\u306e\u30e6\u30fc\u30b6\u30fc\u4f5c\u6210<\/li>\n<li>AWS CLI\u306e\u8a2d\u5b9a<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h5><strong>AWS CLI \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/h5>\n<hr \/>\n<p><strong>1.pip \u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u5b9f\u884c\u3057\u307e\u3059\u3002<\/strong><\/p>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<pre>curl \"https:\/\/bootstrap.pypa.io\/get-pip.py\" -o \"get-pip.py\"\r\nsudo python get-pip.py\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre>#\r\n<\/pre>\n<p>\u203b\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2.pip \u3092\u4f7f\u7528\u3057\u3066 AWS CLI \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/strong><\/p>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<pre>sudo pip install awscli\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre>#\r\n<\/pre>\n<p>\u203b\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3.\u30b3\u30de\u30f3\u30c9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/strong><\/p>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<pre>aws help\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre>AWS()                                                                    AWS()\r\n\r\n\r\n\r\nNAME\r\n       aws -\r\n\r\nDESCRIPTION\r\n       The  AWS  Command  Line  Interface is a unified tool to manage your AWS services.\r\n\r\nSYNOPSIS\r\n          aws [options] <command><\/command> <subcommand> [parameters]\r\n\r\n       Use aws command help for information on a  specific  command.  Use  aws help  topics  to view a list of available help topics. The synopsis for each command shows its parameters and their usage. Optional  parameters are shown in square brackets.\r\n\r\nOPTIONS\r\n       --debug (boolean)\r\n\r\n       Turn on debug logging.\r\n\r\n       --endpoint-url (string)\r\n\r\n       Override command's default URL with the given URL.\r\n\r\n       --no-verify-ssl (boolean)\r\n\r\n       By  default, the AWS CLI uses SSL when communicating with AWS services.\r\n       For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.\r\n\r\n       --no-paginate (boolean)\r\n\r\n       Disable automatic pagination.\r\n\r\n       --output (string)\r\n\r\n       The formatting style for command output.\r\n\r\n       o json\r\n\r\n       o text\r\n\r\n:\r\n<\/subcommand><\/pre>\n<p>\u203b\u30d8\u30eb\u30d7\u306e\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>AWS CLI\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/strong><\/p>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<pre>aws --version\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre>aws-cli\/1.11.169 Python\/2.7.5 Linux\/3.10.0-693.2.2.el7.x86_64 botocore\/1.7.27\r\n<\/pre>\n<p>\u203baws-cli\/1.11.169 \u3067\u3042\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h5><strong>IAM\u306e\u30e6\u30fc\u30b6\u30fc\u4f5c\u6210<\/strong><\/h5>\n<hr \/>\n<p><a href=\"http:\/\/www.itc109.com\/knowledge\/?p=313&amp;preview=true\" target=\"_blank\" rel=\"noopener\">AWS &#8211; AWS CLI\u7528IAM\u30e6\u30fc\u30b6\u4f5c\u6210<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066IAM\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h5><strong>AWS CLI \u306e\u8a2d\u5b9a<\/strong><\/h5>\n<hr \/>\n<p><strong>1.aws configure \u30b3\u30de\u30f3\u30c9\u3001AWS CLI \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002\u3000<\/strong><br \/>\n<span style=\"color: #0000ff;\">\u203b\u4f8b\u3068\u3057\u3066\u30ed\u30b0\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc(ec2-user\u306a\u3069)\u3068IAM\u30e6\u30fc\u30b6\u30fc\u3092\u7d10\u4ed8\u3051\u307e\u3059\u3002<\/span><\/p>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<pre>aws configure\r\n<\/pre>\n<p>\u6b21\u306e\u5165\u529b\u5024\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre>AWS Access Key ID [None]: \u203b1\r\nAWS Secret Access Key [None]: \u203b2\r\nDefault region name [None]: \u203b3\r\nDefault output format [None]: json\r\n<\/pre>\n<p>\u203b1 IAM\u30e6\u30fc\u30b6\u30fc\u306eAccess key ID<\/p>\n<p>\u203b2 IAM\u30e6\u30fc\u30b6\u30fc\u306eSercret Access key ID<\/p>\n<p>\u203b3 \u65e5\u672c\u306a\u3089\u300c ap-northeast-1 \u300d\u3092\u8a2d\u5b9a<\/p>\n<p>\u203b4 \u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3068\u3057\u3066\u300cjson\u300d\u300ctext\u300d\u300ctable\u300d\u306e\u3044\u305a\u308c\u304b\u3092\u8a2d\u5b9a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 AWS\u3067\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5c0e\u5165\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002 \u4eca\u5f8c\u7d39\u4ecb\u3059\u308bAWS\u95a2\u9023\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u4e0a\u3067\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u5c0e\u5165\u3059\u308b\u4e8b\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002 \u53c2\u7167\uff1aAWS \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9&#8230;<\/p>\n","protected":false},"author":3,"featured_media":23,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2],"tags":[30],"class_list":["post-13","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","tag-aws-cli"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.itc109.com\/knowledge\/wp-content\/uploads\/sites\/2\/logo\/logo-aws.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pacZwp-d","_links":{"self":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":19,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":2641,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/13\/revisions\/2641"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media\/23"}],"wp:attachment":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}