aws configure
Named profiles
to manage your various AWS CLI credientails. Open your AWS credentials files~/.aws/credentials (Linux & Mac) or %USERPROFILE%.awscredentials (Windows)
aws s3 ls --profile user1
--dryrun
parameter flag before running AWS CLI commands which will display the operations without actually running them. This is good for debugging and being sure of the commands you want to execute.aws s3 ls
aws s3 mb s3://bucket-name
make_bucket: bucket-name
aws s3 rb s3://bucket-name
remove_bucket: bucket-name
aws s3 sync s3://bucket-name .
aws s3 sync . s3://bucket-name
--delete
parameter flag.aws s3 sync . s3://bucket-name --delete
--dryrun
flag and running the command to make sure you are deleting exactly what you want.aws s3 cp filename s3://bucket-name
aws s3 rm s3://bucket-name/filename
--delete
flag added to the sync command. --acl
parameter. e.g.aws s3 cp filename s3://bucket-name --acl public-read
aws s3 sync . s3://my-bucket/path --acl public-read