Skip to content

awslabs/awscli-aliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

awscli-aliases

Repository for AWS CLI aliases.

Requirements

Make sure that you are using version 1.11.24 or higher of the AWS CLI. You can determine the version by running:

$ aws --version

For information on installation and upgrading of the AWS CLI, please refer to the AWS CLI User Guide.

Quickstart

To start using aliases available in this repository, run the following commands:

Note that running the commands below will delete any existing alias file you may have had:

$ git clone https://github.com/awslabs/awscli-aliases.git
$ mkdir -p ~/.aws/cli
$ cp awscli-aliases/alias ~/.aws/cli/alias

To test that the aliases now work, run the following alias:

aws whoami

This will display the same response as the aws sts get-caller-identity command:

{
    "Account": "012345678901",
    "UserId": "AIUAINBADX2VEG2TC6HD6",
    "Arn": "arn:aws:iam::012345678901:user/myuser"
}

Dependencies

tostring alias

The tostring alias requires to have the jp command installed.
For installing the command line interface for JMESPath (jp), please see the README.md at https://github.com/jmespath/jp

tostring-with-jq alias

The tostring-with-jq alias requires to have the jq command installed.
For installing the Command-line JSON processor (jq), please see this page: https://stedolan.github.io/jq/download/

About

Repository for AWS CLI aliases.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published