Help us understand the problem. What is going on with this article?

aws cli install mac

More than 3 years have passed since last update.

色んな所に手順ありすぎて無駄すぎですけどメモ

公式のドキュメントはこちらです。
http://docs.aws.amazon.com/ja_jp/cli/latest/userguide/tutorial-ec2-ubuntu.html#install-cli

でもpythonとかpipとか入れるのだるいのでhomebrew一択です。依存関係もだるい。

homebrewをインストールする

事前準備

sudo できるパスワードいるので注意

事前準備2

事前準備はこちらを参考にXcodeのインストール含め
http://qiita.com/_daisuke/items/d3b2477d15ed2611a058

homebrewインストール

http://brew.sh/index_ja.html
から以下の部分コピペしてシェルで実行

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

確認

brew -v
Homebrew 0.9.5

でたらOK

aws cli のインストール

installする

brew install awscli

確認

aws --version
aws-cli/1.7.18 Python/2.7.6 Darwin/14.1.0

でたらOK

使えるようにプロファイル設定

aws configure --profile システム名とか

キー名を聞かれるので入力

AWS Access Key ID []: 

シークレットキーを聞かれるので入力

AWS Secret Access Key []: 

利用するリージョンを聞かれるので入力(ap-northeast-1は東京リージョン)

Default region name []: 

出力する結果形式を指定(defaultはjsonなので何もいれないでEnter)

Default output format [None]: 

終わり

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away