AWS s3 - mrmiguez/citrus GitHub Wiki

DPLA uses AWS s3 buckets for bulk data transfers. Instructions for using a graphical application are available on their wiki.

Amazon also offers a CLI client for interacting with s3 buckets: documentation. Transferring files from an AWS server to another AWS server is very simple.

Configure AWS CLI

The first step is to configure the CLI client with your s3 credentials. These will be provided by DPLA in a secure transfer.

aws configure will walk you through setting up the client with your credentials:

aws-config

  • Access Key ID is in the DPLA credentials
  • Secret Access Key is in the DPLA credentials
  • Default region name should be left empty
  • Default output format should be left empty

These credentials can be changed manually by editing the files: ~/.aws/config/config & ~/.aws/credentials/credentials

Interacting with buckets

The s3 mode of the aws client has typical file manipulation tools:

  • ls listing bucket contents
  • cp copy to/from bucket
  • mv move file to/from bucket
  • rm delete file from bucket

aws-ls

Copying a file to a bucket uses the pattern: aws s3 cp <file> s3://<bucket-name>

⚠️ **GitHub.com Fallback** ⚠️