Share

Search Unix Commands/Scripts


  Help us in improving the repository. Add new commands/scripts through 'Submit Commands/Scripts ' link.





Unix Commands/Scripts for '#Aws cli' - 9 Commands/Scripts found

 Sample 1. Install AWS CLI ( Amazon Web Service Command Line Interface ) using brew

brew install awscli

   Like      Feedback     


 Sample 2. Install AWS CLI on Linux / ubuntu

sudo apt-get install awscli

   Like      Feedback     


 Sample 3. Run df command ( check disk space usage ) using AWS CLI on AWS EC2 instance

Usage -

aws ssm send-command --document-name "AWS-RunPowerShellScript" --parameters commands=["df -a"] --targets "Key=instanceids,Values=<instanceId>"

Example -

aws ssm send-command --document-name "AWS-RunPowerShellScript" --parameters commands=["df -a"] --targets "Key=instanceids,Values= i-0981d8456ffd18wcb"

   Like      Feedback     aws cli  aws ssm  aws ssm send-command  check disk space usage on AWS instanc


 Sample 4. Get information about a particular replication group

aws describe-replication-groups --replication-group-id <REPLICATION_GROUP_ID> --output text

   Like      Feedback     AWS  Amazon AWS  AWS CLI  describe-replication-groups


Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner
 Sample 5. Get Elastic Beanstalk / EC2 instance information using instance name

aws ec2 describe-instances --output text --filters "Name=tag:Name,Values=<ELASTIC_BEANSTALK_INSTANCE_NAME>"

   Like      Feedback     AWS  Amazon AWS  AWS CLI  describe-instances  Amazon EC2


 Sample 6. Get all Tag information for EC2 instance using instance name

aws ec2 describe-instances --output text --filters "Name=tag:Name,Values=<ELASTIC_BEANSTALK_INSTANCE_NAME>" | grep "TAGS"

   Like      Feedback     AWS  Amazon AWS  AWS CLI  describe-instances  Amazon EC2


 Sample 7. Get Private IP address of a EC2 / Beanstalk instance using AWS CLI

aws ec2 describe-instances --output text --filters "Name=tag:Name,Values=<ELASTIC_BEANSTALK_INSTANCE_NAME>" | grep "PRIVATEIPADDRESSES"

   Like      Feedback     AWS  Amazon AWS  AWS CLI  describe-instances  Amazon EC2


 Sample 8. Stop an EC2 instance through AWS CLI

aws ec2 stop-instances --instance-id=<EC2_INSTANCE_ID>

   Like      Feedback     


 Sample 9. Start an EC2 instance using AWS CLI

aws ec2 start-instances --instance-id=<EC2_INSTANCE_ID>

   Like      Feedback     



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus