Amazon Web Services (AWS) Cheet Sheet
Page Contents
AWS CLI
Setup
apt install awscli aws configure set aws_access_key_id <AWS_ACCESS_KEY> [--profile <PROF_NAME>] aws configure set aws_secret_access_key <AWS_SECRET_KEY> [--profile <PROF_NAME>] aws configure set region "eu-west-1" [--profile <PROF_NAME>]
Profiles
List Available Profiles
$ cat ~/.aws/credentials # OR $ aws configure list
S3
# Sync local directory to AWS location. Use -sse only if stored encrypted. aws s3 sync . s3://your/dir --sse # Cat file to STDOUT s3 cp s3://mybucket/stream.txt -.