0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

aws-cliの環境を切り替える

0
Last updated at Posted at 2017-06-13

プロファイルの作成

aws configure --profile XXX
XXXのプロファイルを作成できる

AWS Access Key ID [None]:
AWS Secret Access Key [None]:
Default region name [None]:
Default output format [None]:

※既存のものはdefaultとして登録されている

確認

cat .aws/config
cat .aws/credentials

プロファイルを利用してコマンド実行

aws s3 ls
aws s3 ls --profile XXX
環境が切り替わっているのが確認できる

固定

export AWS_EB_PROFILE=XXX

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?