Here are some basic commands for interacting with Amazon. 

Installing AWS CLI

If you haven't installed the AWS CLI, you can issue the folllowing command on your mac.

> brew install awscli


Basic Commands

Command

Description

Command

Description

aws s3 ls s3://<BUCKET>/<FOLDER>

List contents of an S3 bucket

ex. aws s3 ls s3://dpay-payu-meta/master/zombie/no_app.js/

aws s3 cp s3://<BUCKET>/<FOLDER> s3://<BUCKET>/<FOLDER>Copy from one folder in S3 bucket to another


export AWS_ACCESS_KEY_ID=XXX
export AWS_SECRET_ACCESS_KEY=XXX

Add credentials to for aws
mvn -Ptest,verifier,all,dev-test install -Dit.test=LocalStorageTestRun test


ssh -i <PEM_FILE> ec2-user@<HOST_IP>

Connect to an amazon image using ssh and a PEM file.


Reference Material

Title

URL

Amazon in Plain English

https://www.expeditedssl.com/aws-in-plain-english