These are excitements of a newcomer to the aws-cli ecosystem.
- Using aws cli without installing
- AWS Profiles
- aws-cli history
I was following https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html for installing version 2 of aws cli.
Three commands are needed to install it. If you don't want to install (like me), don't do last step.
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
Instead create a bash alias like this, which pointing
If you want use it all the time (which you probably want), just add above alias to your
~/.bash_aliases (Bash aliases are loaded in most distros automatically, if not you might load it with
This is a useful feature if you using multiple accounts of aws.
In short, create a profile by following command
aws configure --profile theProfileName
After passing proper credentials, you can use it with almost all commands. For example,
aws s3 ls --profile theProfileName
Actually, these values are stored in
~/.aws/credentials (Linux & Mac) or
%USERPROFILE%\.aws\credentials (Windows). I guess, you can edit and change if you want (I didn't test my self).
Use following command once to enable
aws configure set cli_history enabled
Now onwards use following commands to see
aws history list