aws-s3

aws-s3

TLDR

Show files in a bucket

>_ aws s3 ls [bucket_name]
copy

Sync files and directories from local to bucket

>_ aws s3 sync [path/to/files] s3://[bucket_name]
copy

Sync files and directories from bucket to local

>_ aws s3 sync s3://[bucket_name] [path/to/target]
copy

Sync files and directories with exclusions

>_ aws s3 sync [path/to/files] s3://[bucket_name] --exclude [path/to/file] --exclude [path/to/directory]/*
copy

Remove file from bucket

>_ aws s3 rm s3://[bucket]/[path/to/file]
copy

Preview changes only

>_ aws s3 [any_command] --dryrun
copy

Copied to clipboard
free 100$ digital ocean credit