The video will cover the following:
Step 1: Install AWS CLI
sudo pip install awscli
Pre-req: Python 2 version 2.6.5+ or Python 3 version 3.3+
Pre-req: pip is installed
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
Step 2: Configure AWS Credentials (aws configure)
Step 3: Run AWS S3 CLI commands (Most common/useful commands)
- Create/Remove bucket
- Copy and sync files to S3
- Browse S3 bucket
- Others: view file content, recursive operations, bucket size
aws s3 ls s3://bucket/folder --recursive | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024" MB"}'