Skip to content

Instantly share code, notes, and snippets.

@dautovri
Last active September 28, 2019 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dautovri/af5560093a3a0cc4e4f96cc192a9a1e8 to your computer and use it in GitHub Desktop.
Save dautovri/af5560093a3a0cc4e4f96cc192a9a1e8 to your computer and use it in GitHub Desktop.
AWS S3
# List all buckets
aws s3 ls
# List content of a bucket
aws s3 ls s3://<bucket>
# Create a bucket
aws s3 mb s3://<bucket>
# Copy into bucket
aws s3 cp <path> s3://<bucket>
# Copy from bucket
aws s3 cp s3://<bucket> <path>
# Move within bucket
aws mv s3://<bucket>/<src> <dest>
# Remove empty bucket
aws s3 rb s3://<bucket>
# Remove object from bucket
aws s3 rm s3://<bucket>/<path>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment