Skip to content

s3

List

list of all of the commands available in high-level commands.

Bash
aws s3 help

list of all buckets.

Bash
aws s3 ls

list all the objects and folders I that bucket.

Bash
aws s3 ls s3://bucket-name

filter the output to a specific prefix.

Bash
aws s3 ls s3://bucket-name/path/

Copy

upload

Bash
aws s3 cp file.txt s3://bucket-name
Bash
aws s3 cp file.txt s3://bucket-name – storage-class STANDARD_IA

Options:

S3 Standard

S3 Intelligent-Tiering

S3 Standard-IA

S3 One Zone-IA

S3 Glacier

S3 Glacier Deep Archive

Copy from bucket to bucket

Bash
aws s3 cp s3://source-bucket-name/file.txt s3://destination-bucket-name/
  • recursive
Bash
aws s3 cp . s3://bucket-name  – recursive

download

Bash
aws s3 cp s3://bucket-name . – recursive

Setting the Access Control List (ACL) while copying an S3 object

Bash
aws s3 cp s3://source-bucket-name/file.txt s3://dest-bucket-name/ – acl public-read-write

options:

READ

WRITE

READ_ACP

WRITE_ACP

FULL_CONTROL

Back to top