Skip to content

This command line tool is a useful complement to aws-cli. It offers a suite of utilities that manages and operates ec2, emr and other aws services.

Notifications You must be signed in to change notification settings

bluishglc/aws-cli-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS CLI PLUS

NOTE: a bug to be fix: readlink can NOT solve original link of aws+

This command line tool is a useful complement to aws-cli. It offers a suite of utilities that manages and operates ec2, emr and other aws services.

1. Install

sudo yum -y install git
git clone https://github.com/bluishglc/aws-cli-plus.git
sudo ./aws-cli-plus/install.sh

2. Prerequisites

export REGION='<your-region>'
export SSH_KEY='<your-pem-file-path>'
export ACCESS_KEY_ID='<your-access-key-id>'
export SECRET_ACCESS_KEY='<your-secret-access-key>'
export EMR_CLUSTER_ID='<your-emr-cluster-id>'

3. Usage

3.1 EMR

3.1.1 List Apps

aws+ emr list-apps --region "$REGION" --emr-cluster-id "$EMR_CLUSTER_ID"
amz emr list-apps --region "$REGION" --emr-cluster-id "$EMR_CLUSTER_ID"


aws+ emr list-apps --region "$REGION" --emr-cluster-id "$EMR_CLUSTER_ID"

3.1.2 List Services

aws+ emr list-services --region "$REGION" --ssh-key "$SSH_KEY" --emr-cluster-id "$EMR_CLUSTER_ID"

3.1.3 List Packages

aws+ emr list-packages --region "$REGION" --ssh-key "$SSH_KEY" --emr-cluster-id "$EMR_CLUSTER_ID"

3.1.4 Find Log Errors

aws+ emr find-log-errors --region "$REGION" --emr-cluster-id "$EMR_CLUSTER_ID"

3.2 EC2

3.2.1 Init EC2 Instance

# sudo is required for ec2 init operation
sudo aws+ ec2 init --region "$REGION" --access-key-id "$ACCESS_KEY_ID" --secret-access-key "$SECRET_ACCESS_KEY"

3.3 MySQL

3.3.1 Install MySQL

sudo aws+ mysql install --mysql-root-password 'Admin1234!'

About

This command line tool is a useful complement to aws-cli. It offers a suite of utilities that manages and operates ec2, emr and other aws services.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages