Amazon S3 library and command-line tools
This is a simple C++ library and set of command line tools for working with Amazon S3. Amazon S3 is a web storage service by Amazon. Essentially, you get buckets you can store objects (files) in, each object is referred to using a key (which can be used as though it were a file name or a path), and objects can be accessed directly through the S3 service or via the web. With some fancy DNS CNAME tricks, you can have files hosted on S3 which appear to be hosted on your own server.
Like this: http://media.arklyffe.com/emaganim.mp4
This is a C++ library using the REST interface for accessing S3, and performing some related operations.
Library features:
- MD5 checksum computation
- Access Control List reading and setting
- s3tool: a command line tool giving access to the functionality of the library:
- s3ls – list buckets or contents of a bucket
- s3put, s3wput – upload object
- s3get – download object
- s3putmeta – set metadata for object
- s3getmeta – get metadata for object
- s3cp – copy object (does copy through the S3 service)
- s3mv – move or rename object (does copy and delete)
- s3rm – delete object
- s3mkbkt – create bucket
- s3rmbkt – delete bucket
- s3setacl – set Access Control List for bucket or object
- s3getacl – get Access Control List for bucket or object
- s3genidx – generate and upload an index.html file for bucket. Example: http://tmp.arklyffe.com/index.html
Download:
License: BSD download
Recent changes:
- Version 0.1
- Fixed incorrect usage help call that kept s3tool from compiling.
- Added version number
- Added genidx command…running genidx on a bucket generates a index.html file for that bucket.