Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tv42/s3-url-sign

Sign a URL for use with S3
https://github.com/tv42/s3-url-sign

Last synced: 20 days ago
JSON representation

Sign a URL for use with S3

Awesome Lists containing this project

README

        

======================================================
S3-URL-Sign -- easy way to sign URLs for use with S3
======================================================

To get started, type::

./bootstrap

Set up your ``~/.boto`` config file, something like::

[Credentials]
aws_access_key_id = EDIT-ME
aws_secret_access_key = EDIT-ME

And then run (replace ``BUCKET`` and ``OBJECT`` as appropriate)::

./virtualenv/bin/s3-url-sign BUCKET
./virtualenv/bin/s3-url-sign BUCKET OBJECT

Some more examples::

$ wget -q -O- "$(./virtualenv/bin/s3-url-sign BUCKET)"|xmlstarlet fo|head -3


BUCKET

$ wget -O SOMETHING "$(./virtualenv/bin/s3-url-sign BUCKET OBJECT)"
--2011-06-21 12:40:15-- https://BUCKET.s3.amazonaws.com/OBJECT?Signature=...&Expires=...&AWSAccessKeyId=...
Resolving BUCKET.s3.amazonaws.com... 207.171.187.118
Connecting to BUCKET.s3.amazonaws.com|207.171.187.118|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10888 (11K) [application/x-object]
Saving to: `SOMETHING'

100%[=========================================================>] 10,888 --.-K/s in 0s

2011-06-21 12:40:15 (39.3 MB/s) - `SOMETHING' saved [10888/10888]