AWS CLI Aliases
Requirements
AWS CLI 1.11.24
or higher, see
AWS CLI User Guide for more info.
Use awscli.sh
script to install / update AWS CLI if yours is out of date. Use aws --version
to verify.
More detailed Installation and Usage Instructions are available in the Wiki.
Usage
$ mkdir -p GitHub; cd GitHub
$ git clone https://github.com/LanikSJ/awscli-aliases
$ mkdir -p ~/.aws/cli
$ ln -sf ~/GitHub/awscli-aliases/alias ~/.aws/cli/alias
Test
aws whoami
Same as aws sts get-caller-identity
Output:
{
"Account": "1234567890",
"UserId": "ABCDEFGHIJKLMNOPQRSTUV",
"Arn": "arn:aws:sts::1234567890:user/UserId"
}
Docker
If you would like to try the aliases in a docker container:
$ docker run -v ~/.aws/credentials:/root/.aws/credentials:ro -it ghcr.io/laniksj/awscli-aliases whoami
Bugs
Please report any bugs or issues you find. Thanks!