LoginSignup
1
0

More than 1 year has passed since last update.

Cloud9 AWS CLI のバージョンを1から2に変更するときのメモ

Last updated at Posted at 2021-08-11

起きた事象

CLI1 のアンインストール、CLI2のインストールは他のサイト参照。
CLI2のインストールを実施後にバージョン確認のコマンドを実行したところ以下のエラーが出た

***:~/environment $ aws --version
bash: /usr/bin/aws: No such file or directory

以下のコマンドを行えばOK

 hash -d aws

その後は、正しく使えるようになる

***:~/environment $ aws --version
aws-cli/2.2.28 Python/3.8.8 Linux/4.14.238-182.422.amzn2.x86_64 exe/x86_64.amzn.2 prompt/off

参考

https://qiita.com/kobayashiss/items/6b5faf11cc1391885bd4
https://superuser.com/questions/1637802/aws-version-error-bash-usr-bin-aws-no-such-file-or-directory

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