AWS S3 Basics
Quick reference for common AWS S3 CLI commands.
aws s3 mb s3://your-bucket-nameaws s3 lsThe bucket must be empty first.
aws s3 rb s3://your-bucket-nameUse --force to delete the bucket and all its contents.
aws s3 rb s3://your-bucket-name --forceaws s3 cp local-file.txt s3://your-bucket-name/remote-file.txtaws s3 cp s3://your-bucket-name/remote-file.txt local-file.txtaws s3 ls s3://your-bucket-nameaws s3 rm s3://your-bucket-name/remote-file.txtaws s3 sync . s3://your-bucket-name/aws s3 sync s3://your-bucket-name/ .