s3link

command module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: LGPL-3.0 Imports: 21 Imported by: 0

README

GoDoc

Upload files from Stdin to AWS S3 and generate an authenticated URL.

Install

Releases

or

 brew tap andrewrech/s3link
 brew install s3link

or

go get -u github.com/andrewrech/s3link

Usage

s3link -h
Upload files from Stdin to AWS S3 and generate an authenticated URL.

Usage of s3link:
  echo 'file.txt' | s3link
  echo 'pre-existing/bucket/key.ext' | s3link

Defaults:
  -expire string
        URL lifetime (default "1m")
  -public
        Create public link (insecure simple obfuscation)?
  -qr
        Generate QR code? (default true)
  -region string
        AWS region (default "us-east-1")

Environmental variables:

    export S3LINK_BUCKET=bucket
    export S3LINK_PUB_LINK_PREFIX=public-link-obfuscation-prefix

    export S3LINK_AWS_ACCESS_KEY_ID=my_iam_access_key
    export S3LINK_AWS_SECRET_ACCESS_KEY=my_iam_secret
    export S3LINK_AWS_SESSION_TOKEN=my_iam_session_token [optional]

Authors

License

GNU Lesser General Public License v3.0

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