LoginSignup
0
0

More than 3 years have passed since last update.

macOSにAWS CLIをインストールしてコマンド操作をするまでの初期設定

Last updated at Posted at 2019-09-19

詳細はこちらのリンクをみてください
https://docs.aws.amazon.com/ja_jp/cli/latest/userguide/install-macos.html

前提条件

pythonがインストールされていること
※macはデフォルトで、pyhtonがインストールされているので、アンインストールされてない限り必要ないと思います。。。

AWS CLIをインストール

terminal
$ pip install awscli

確認のためバージョン確認

terminal
$ aws --version

AWS CLIのconfig設定

以下のコマンドを入力すると、AWS CLI によって、アクセスキー、シークレットアクセスキー、AWS リージョン、出力形式の 4 つの情報の入力が求められます。

terminal
//ユーザ名を指定する
$ aws configure --profile <ユーザ名>
AWS Access Key ID [None]: {アクセスキー}
AWS Secret Access Key [None]: {シークレットアクセスキー}
Default region name [None]: ap-northeast-1
Default output format [None]: json

ちなみに、--profile <ユーザ名>を省略するとdefault という名前のプロファイルに保存されます。

プロファイルの確認

terminal
//指定のプロファイル
$ aws configure list --profile <ユーザ名>

//デフォルト
$ aws configure list

以上で登録完了です!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0