https://github.com/awslabs/awscli-aliases
Repository for AWS CLI aliases.
https://github.com/awslabs/awscli-aliases
Last synced: 3 months ago
JSON representation
Repository for AWS CLI aliases.
- Host: GitHub
- URL: https://github.com/awslabs/awscli-aliases
- Owner: awslabs
- License: mit-0
- Created: 2016-11-25T22:13:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-17T04:18:03.000Z (almost 3 years ago)
- Last Synced: 2024-08-08T23:20:55.699Z (7 months ago)
- Size: 22.5 KB
- Stars: 465
- Watchers: 38
- Forks: 85
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - awslabs/awscli-aliases - Repository for AWS CLI aliases. (Others)
README
# 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](http://docs.aws.amazon.com/cli/latest/userguide/installing.html).## 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/