1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS CLIインストール手順

Last updated at Posted at 2024-04-03

はじめに

Amazon LinuxではデフォルトでAWS CLIがインストールされていますが、他のOSでは手動でのインストールが必要なものもあります。今回は新規にAWS CLIをRHEL8にインストールする手順を記載します。

目次

  • curlコマンドでawscli2.zipダウンロード
  • zip、unzipをインストール
  • awscli2.zipを解凍
  • 解凍したawscli2を実行してインストール
  • バージョン確認

手順

1.以下コマンドを実行してawscli2.zipをダウンロードしてください。

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"

2.以下コマンドを実行してzip、unzipパッケージをインストールしてください。

sudo dnf install zip unzip

3.以下コマンドを実行してawscli2.zipファイルを解凍してください。

unzip awscliv2.zip

4.以下コマンドを実行してAWS CLIをインストールしてください。

sudo ./aws/install

5.以下コマンドを実行して、正常にインストールできていることとインストールされているバージョンを確認してください。

aws --version

参考URL

AWS CLI の最新バージョンを使用してインストールまたは更新を行う

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?