LoginSignup
0
0

More than 3 years have passed since last update.

CentOSにAWSコマンドライン(awscli)をインストールして使う手順

Posted at

やりたいこと

前提

  • CentOSがインストール済であり、root権限でSSH接続済であること。
  • curlコマンドが実行できること。

インストール前

awsコマンドは使えない。awsと打つと

bash: aws: command not found

と表示される。

インストール方法

任意のディレクトリにて、root権限で下記を実行する。

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install
You can now run: /usr/local/bin/aws --version

と表示されたらインストール成功である。
下記のように打つとバージョンが確認できる。

aws --version
aws-cli/2.1.1 Python/3.7.3 Linux/3.10.0-1062.12.1.el7.x86_64 exe/x86_64.centos.7
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