Skip to content

carlduevel/signed-s3-url-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

signed-s3-url-generator

Build

Tiny tool to generate presigned AWS S3 URLs.

Example usage

You need to upload data from a machine that is not authorized to access an S3 bucket (and should not do so otherwise). So on a machine with authorization create a url using the presigned url:

signed-s3-url-generator -b mybucket -k 'key/to/save/this/file/under/example.txt'

On the machine without S3 authorization run (works for files < 5 GB):

curl '<url generated earlier>' --upload-file example.txt --progress-bar | cat