aws cli documentation code example

Example 1: amazon cli on commadline

sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

Example 2: aws cli

$ aws ec2 describe-instances



$ aws ec2 start-instances --instance-ids i-1348636c



$ aws sns publish --topic-arn arn:aws:sns:us-east-1:546419318123:OperationsError --message "Script Failure"



$ aws sqs receive-message --queue-url https://queue.amazonaws.com/546419318123/Test

Example 3: amazon cli on commadline

curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"

Tags:

Misc Example