AWS-SDKを使うプラグインなどで、AWS-CLIのクレデンシャルを使いたいケースがたまにあるので覚書。
$ sudo apt update
$ sudo apt install python-pip
$ pip install --upgrade pip
$ pip install awscli --upgrade --user
$ export PATH=~/.local/bin:$PATH
$ aws
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: too few arguments
Playbookにした方がいいんだろうなという気はするので、この記事を読み返す回数が多そうだったら考える。