aws configure
aws_access_key_id=[Access Key ID]
aws_secret_access_key=[Secret Access Key]
Default region name=ap-southeast-1
Hit enter to accept the defaults for output format
aws ec2 describe-instances
This gives a description of all the EC2 instances in the account for the specified region.
aws ec2 describe-key-pairs
Note: This is a very brief introduction to AWS CLI. With great power comes great responsibility, so familiarise yourself and practice before using it to automate instances. Your wallet will thank you.
Next, you will use the AWS CLI to interact with Amazon S3.