■高権限ユーザに切り替え
$su -■tmpフォルダで作業
#cd /tmp■パッケージをダウンロード
#curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"■公開ドキュメントに記載の公開鍵(文字列)を任意のファイル名(pub.key)に保存
■AWS CLI パブリックキーをインポート
#gpg --import pub.keygpg: directory `/root/.gnupg' created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 4672475C: public key "AWS CLI Team <aws-cli@amazon.com>" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
■AWS CLI 署名ファイルをダウンロード
#curl -o awscliv2.sig https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip.sig■パッケージの署名検証
#gpg --verify ./awscliv2.sig ./awscliv2.zipawscliv2.sig awscliv2.zipgpg: Signature made Thu 07 May 2020 10:58:13 PM UTC using RSA key ID 4672475C
gpg: Good signature from "AWS CLI Team <aws-cli@amazon.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: FB5D B77F D5C1 18B8 0511 ADA8 A631 0ACC 4672 475C
■パッケージファイルを解凍
#unzip awscliv2.zip■CLIインストール
#./aws/install■インストール(バージョン)確認
#aws --versionaws-cli/2.0.12 Python/3.7.3 Linux/4.14.173-137.229.amzn2.x86_64 botocore/2.0.0dev16
インストール完了
0 件のコメント:
コメントを投稿