Amazon CLI for S3

Some useful commands


aws ec2 describe-instances
aws ec2 describe-instances --region us-east-1
aws ec2 describe-instances --region us-east-1 --output table

Any aws cli command can use the following flags
*–profile – name of a profile to use, or “default” to use the default profile.
*–region – AWS region to call.
*–output – output format.
*–endpoint-url – The endpoint to make the call against. The endpoint can be the address of a proxy or an endpoint URL for the in-use AWS region. Specifying an endpoint is not required for normal use as the AWS CLI determines which endpoint to call based on the in-use region.


# make a bucket
aws s3 mb s3://bucket-name
# remove a bucket
aws s3 rb s3://bucket-name
# by default will not remove non-empty buckets, use force
aws s3 rb s3://bucket-name --force
# list buckets
aws s3 ls
# list contents of a bucket
aws s3 ls s3://bucket-name

Since the bioconductor image is hosted on the east cost us-east-1, we should have our S3 bucket in the same availability zone/region.

aws s3 mb s3://bioarchive.1 --region us-east-1