LoginSignup
1
1

More than 3 years have passed since last update.

AWS CLI の設定

Last updated at Posted at 2021-04-21

やったこと

AWS CLIのインストール(公式)

CLI1とCLI2があって一部互換性がないらしい。自分の環境はCLI1
https://docs.aws.amazon.com/ja_jp/cli/latest/userguide/cliv2-migration.html

随分前の設定が残っていたので自分の環境の設定を追加

.aws/config
.aws/credentials

S3 を見てみる。あっさり

~ $ aws s3 ls
2021-04-20 23:39:46 gogo-for-upload
~ $ aws s3 ls s3://gogo-for-upload
2021-04-21 00:34:05      56130 android-chrome-260.png
~ $

AWS CLIにaliasの設定

便利そうだったので設定

早速これをやってみる。適当なインスタンスにタグを設定して表示させてみる

~ $ aws nametag
Enter the value:"*"
--------------
|DescribeTags|
+------------+
~ $

あれ?
何もでない。

普通にインスタンスの情報を表示してみる。これはできた
( インスタンスに Name タグを設定しないで実行していたので表示されなかったという落ち

~ $ aws ec2 describe-instances --instance-ids i-xxxxxxxxxx --output table
------------------------------------------------------------------------------------------
|                                    DescribeInstances                                   |
+----------------------------------------------------------------------------------------+
||                                     Reservations                                     ||

また今度

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