Skip to content

Copy files to Amazon S3 using CLI

Nate Williams edited this page Apr 18, 2017 · 13 revisions

Copy files to Amazon S3 using CLI

User problem

Ken needs to transfer a set of images to Amazon S3 to include in the user documentation he's writing. He wants to avoid the overhead of setting up access to S3 directly, and wants a simple way to upload image files directly from his desktop computer into a particular folder on S3.

Solution

Create a pipe to that copies files input from standard in on the command line to a selected folder on Amazon S3. Select the command line interface as the input source and a folder on Amazon S3 as the output destination. Create a pipe alias and configure the CLI with the API key, if needed. Run a test with the CLI using a single test image and then run the pipe manually from the CLI using standard in to add new images to S3.

Workflow

  • Select CLI as an input source
  • Set up API key for configuring the CLI, if needed
  • Copy the pipe alias for configuring the CLI
  • Select and authenticate output connection
  • Test the pipe to verify the output connection works
  • Turn the pipe "on" to enable it to run via the CLI

To-Do List

  • Display API key for the CLI in the input panel
  • Display pipe alias for the CLI in the input panel
  • Allow user to edit/update the pipe alias
  • Display notification if API key is not set up, and/or an option to generate API key
  • Display code examples for using the pipe with the CLI