Skip to content
forked from cschneid/s3link

Little tool to put files up on S3, and get a time-limited URL to that file.

Notifications You must be signed in to change notification settings

nickjwebb/s3link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S3Link

Uploads a file up to Amazon's S3 Service, and provides a time limited URL to access.

Several options may be set via environment variables for ease of use.

Options:

--access-key <key> [ENV: AMAZON_ACCESS_KEY_ID] -- Amazon provided access key

--secret-key <key> [ENV: AMAZON_SECRET_ACCESS_KEY] -- Amazon provided secret key

--bucket <name> [ENV: S3LINK_BUCKET_NAME] -- Bucket to store the uploaded file

--expires-in <hours> [default: 24] -- How long the URL is valid for.

--never-expire -- Never expire the URL. If both expires commands are set, --expires-in will win.

--silent -- Quiet mode outputs ONLY the url

NOTE: This tool DOES NOT ever remove files from S3. Cleaning your S3 of old files manually is advised. Use the web interface, or the s3cmd tool.

WARNING: This tool will just silently overwrite a file that is already present. This is good to replace files with new versions, but bad if it destroys something. Don't destroy anything please.

About

Little tool to put files up on S3, and get a time-limited URL to that file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%