[AWS] 在 Linux 上安裝 AWS CLI

[AWS] 在 Linux 上安裝 AWS CLI

今天想在 CentOS 7 上執行 AWS CLI,

這才發現那台機器上沒有安裝,來裝一下吧~

 

首先下載 AWS CLI 套件,接著解壓縮後直接安裝:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
wget https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip
unzip awscli-exe-linux-x86_64.zip
sudo ./aws/install
wget https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip unzip awscli-exe-linux-x86_64.zip sudo ./aws/install
wget https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip
unzip awscli-exe-linux-x86_64.zip
sudo ./aws/install

 

這樣子就已經可以使用 aws 指令啦:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
testuser@localhost ~ $ aws
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
testuser@localhost ~ $ aws usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run: aws help aws <command> help aws <command> <subcommand> help
testuser@localhost ~ $ aws

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help

 

參考資料:Installing, updating, and uninstalling the AWS CLI version 2 on Linux – AWS Command Line Interface

(本頁面已被瀏覽過 318 次)

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料