Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Follow the instructions in the AWS documentation under Quick Configuration. This will require you to input the access key ID and secret access key provided to you by DevOps.

Using the tool

...

List a directory:

Code Block
title

...

Command
aws s3 ls s3://bucket-name/path/to/file

...

Code Block
titleResponse
						PRE dir1/
						PRE dir2/
2015-01-01 10:10:10    1234 File1.zip
2015-01-02 11:11:11 7654321 File2.pdf

 

This directory contains 4 things: 2 folders (named dir1 and dir2) and 2 files (File1.zip and File2.pdf). File1.zip was created on January 1, 2015 at 10:10:10 and is 1234 bytes large (roughly  kilobytes). File2.pdf was created on January 2, 2015 at 11:11:11 and is 7654321 bytes large (about 7 megabytes).

Tip
titleTip: Add the --human-readable flag to the end of your command to get more human-readable sizes

...

Code Block

...

titleCommand
aws s3 ls s3://bucket-name/path/to/file --human-readable

...

Code Block
titleResponse
						PRE dir1/
						PRE dir2/
2015-01-01 10:10:10 1.2 KiB File1.zip
2015-01-02 11:11:11 7.3 MiB File2.pdf

Download a file:

 

Code Block
aws s3 cp s3://bucket-name/path/to/file ~/Downloads

The file will be saved to your Downloads folder.

Upload a file:

Code Block
aws s3 cp ~/Downloads/file1.zip s3://bucket-name/path/to/destination
Tip
titleTip

Instead of typing the path to the file on your computer, simply drag the file into the terminal.

Remove a file:

Code Block
aws s3 rm s3://bucket-name/path/to/file

 

 

 

 

 

Info

Filter by label (Content by label)
showLabelsfalse
max5
spacesEdxOps
showSpacefalse
sortmodified
reversetrue
typepage
labelss3

Page Properties
hiddentrue
Related issues