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.
sudo yum -y install git
git clone https://github.com/bluishglc/aws-cli-plus.git
sudo ./aws-cli-plus/install.sh
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>'
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"
aws+ emr list-services --region "$REGION" --ssh-key "$SSH_KEY" --emr-cluster-id "$EMR_CLUSTER_ID"
aws+ emr list-packages --region "$REGION" --ssh-key "$SSH_KEY" --emr-cluster-id "$EMR_CLUSTER_ID"
aws+ emr find-log-errors --region "$REGION" --emr-cluster-id "$EMR_CLUSTER_ID"
# 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"
sudo aws+ mysql install --mysql-root-password 'Admin1234!'