s3signer

command module
v0.0.0-...-c27f8f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2015 License: MIT Imports: 9 Imported by: 0

README

s3signer

A simple web service to return S3 signed URLs.

Usage

$ curl http://localhost:8080/mybucket/myfile/
https://s3-us-west-1.amazonaws.com/mybucket/myfile?AWSAccessKeyId=RANDOMLETTERS&Expires=1234567890&Signature=MORERANDOMLETTERS

The signed URLs returned are valid for 5 seconds.

Configuration

Configuration is via environment variables. The the goamz.aws.EnvAuth variables need to be provided, and s3signer uses one additional variable AWS_REGION to specify the region by name. Something like us-west-1, (as defined here).

Buckets, files

All buckets that the credentials have access to are cached on startup. If a new bucket is created, the service will need to be restarted. Files inside of buckets are searched for on each request.

Nested files in buckets are not supported at this time.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL