https://github.com/robertpeteuil/aws-quick-cli
Control AWS EC2 instances using only their name (forget about Instance-Id's forever). Examples: aws-ssh NAME (connect via ssh), aws-list, aws-start NAME, aws-stop NAME
https://github.com/robertpeteuil/aws-quick-cli
aws aws-cli aws-cli-utilities aws-console aws-manage aws-shell aws-ssh cli ec2-instance ssh ssh-config
Last synced: 14 days ago
JSON representation
Control AWS EC2 instances using only their name (forget about Instance-Id's forever). Examples: aws-ssh NAME (connect via ssh), aws-list, aws-start NAME, aws-stop NAME
- Host: GitHub
- URL: https://github.com/robertpeteuil/aws-quick-cli
- Owner: robertpeteuil
- License: gpl-3.0
- Created: 2017-03-12T20:27:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T23:08:45.000Z (over 7 years ago)
- Last Synced: 2025-05-07T16:12:21.602Z (14 days ago)
- Topics: aws, aws-cli, aws-cli-utilities, aws-console, aws-manage, aws-shell, aws-ssh, cli, ec2-instance, ssh, ssh-config
- Language: Shell
- Homepage:
- Size: 74.2 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# AWS Quick CLI
### Easily control and ssh to AWS instances using their Name
[](https://www.codacy.com/app/robertpeteuil/aws-quick-cli?utm_source=github.com&utm_medium=referral&utm_content=robertpeteuil/aws-quick-cli&utm_campaign=Badge_Grade)
[](https://github.com/robertpeteuil/aws-quick-cli)
[](https://github.com/robertpeteuil/aws-quick-cli)
[](https://github.com/robertpeteuil/aws-quick-cli)
[](https://github.com/robertpeteuil/aws-quick-cli)---
AWS Quick CLI allows listing, starting, stopping and connecting to instances by name or instance-id.
### Example of `aws-list` sub-utility:
### Overview:
This utility suite consists of four utilities: `aws-list`, `aws-start`, `aws-stop`, and `aws-ssh`.
- SSH to an Instance: `aws-ssh NAME` or `aws-ssh -i ID`
- Additional parameters described in Details
- List Instances: `aws-list`
- Additional parameters described in Details
- Start Instance: `aws-start NAME` or `aws-start -i ID`
- Stop Instance: `aws-stop NAME` or `aws-stop -i ID`### Details
- SSH to Instance: `aws-ssh NAME` or `aws-ssh -i ID`
- automatically calculates login-name based on the image-type of the instance
- override the calculated login-name `-u USERNAME`
- connect without PEM keys (if properly configured) `-p`
- command specific help `aws-ssh -h`- List Instances: `aws-list`
- list all instances (default).
- list running instances `-r` or `--running`
- list stopped instances `-s` or `--stopped`
- list instances with specified name `aws-list NAME`
- list instance with specified instance-id `aws-list -i ID`
- command specific help `aws-list -h`- Start Instance: `aws-start NAME` or `aws-start -i ID`
- start instance by name or instance-id
- command specific help `aws-start -h`- Stop Instance: `aws-stop NAME` or `aws-stop -i ID`
- start instance by name or instance-id
- command specific help `aws-stop -h`### Supported Platforms:
- Linux
- macOS (OS X)
- Windows 10 'Bash on Windows'### Pre-Requisites:
- The AWS CLI utilities must installed and configured
- **Do not install the AWS CLI via a package manager** - this usually installs an outdated version which will not work with these utilities.
- Instructions for installing the AWS-CLI utilities are included at the bottom of this README in the section *Reference - Installation of AWS-CLI* and or on the [AWS Website](http://docs.aws.amazon.com/cli/latest/userguide/installing.html).## Installation:
The utilities in the repo can be installed with curl
```shell
bash -c "`curl -s -L https://raw.github.com/robertpeteuil/aws-quick-cli/master/install.sh`"
```If the repo has been downloaded locally, cd into the directory and run install.sh
```shell
cd aws-quick-cli
./install.sh
```### Reference - Installation of AWS-CLI
##### Pre-Requisites:
- Installation requires Python 2 version 2.6.5+ or Python 3 version 3.3+
- Installation requires the `unzip` command, which can be installed by typing `sudo apt-get install unzip`
- **Do not install the AWS CLI via a package manager** - this may install an outdated version that's incompatible with these utilities.
- For help or additional instruction see the [AWS Website](http://docs.aws.amazon.com/cli/latest/userguide/installing.html)#### Installation with `sudo` capabilities:
```shell
$ cd ~
$ mkdir tmpawsinstall
$ cd tmpawsinstall
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ unzip awscli-bundle.zip
$ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
$ cd ..
$ rm -rf tmpawsinstall
```#### Installation without `sudo` capabilities:
```shell
$ cd ~
$ mkdir tmpawsinstall
$ cd tmpawsinstall
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ unzip awscli-bundle.zip
$ ./awscli-bundle/install -b ~/bin/aws
$ cd ..
$ rm -rf tmpawsinstall
```Additional steps for non-sudo installations:
- manually add the `~/bin` directory to your PATH
- This is performed by editing your shell profile
- This file is either `~/.profile`, `~/.bash_profile` or `~/.bash_rc` depending on your OS.#### Configure the AWS CLI utilities
- Configuration requires using your AWS Access Key ID # and AWS Secret Access Key and running the command: `aws configure`
- If you don't have these, refer to the [AWS getting started page](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html)
- Check here for more information on [configuring the AWS-CLI](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-quick-configuration)