Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 562 Bytes

awscli.md

File metadata and controls

30 lines (25 loc) · 562 Bytes

AWS CLI

S3

Commands

  • List a bucket
aws s3 ls bucket-name
  • Copy to a bucket with ACL public-read
aws s3 cp hello.txt s3://bucket-name/ --acl public-read
  • Sync to a bucket with ACL public-read
aws s3 sync folder-name  s3://bucket-name/ --acl public-read
  • Remove a file from a bucket
aws s3 rm s3://bucket-name/hello.txt
  • Remove recursiverly from a bucket
aws s3 rm s3://bucket-name --recursive

Resources