Skip to main content
The AWS CLI is the command-line client for S3, and boto3 is the Python library underneath it. Both work against a Tapedrive bucket once a profile points them at the gateway.

Before you start

You need a bucket and a credential. A bucket is a tape that has delegated writes to the gateway, and a credential is an access key pair the gateway operator issues you. Set up a bucket walks through both.

Configure

Add a profile for the gateway:
~/.aws/config
~/.aws/credentials
The gateway ignores the region, so any label works. These pages use solana.

Everyday commands

Large files switch to multipart upload on their own.

boto3

The same three values build a client:
A 24 MiB upload goes as a three-part multipart upload in about 2 s and downloads in under a second.

Good to know

  • You cannot create a bucket through S3. Create the tape with tape create and delegate it to the gateway.
  • ETags are not MD5 hashes. Tools that compare an ETag with a local MD5 report a mismatch that is not corruption (compatibility).
  • Every object write is a transaction on the chain. A bucket takes one write per block, so many small uploads to one bucket are paced by the block time, not by bandwidth.

Next

  • Uploads for multipart uploads and overwrites.
  • Integrations for the errors every S3 client shares.