isabella232 / s3signed

Generate a signed URL for a private S3 object

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌇 As of January 2020, this module is deprecated. It is provided as-is, with no warranty. We are not accepting new bugfixes or feature requests at this time.

s3signed

Generate a temporary signed URL for a private object on S3.

Installation

npm install -g @mapbox/s3signed

Usage

First, confirm that your shell is configured with appropriate AWS credentials.

s3signed <s3 url> [seconds until expires]
  • s3url must be of the form s3://my-bucket/my/private/file
  • defaults to expire in 10 min if unspecified

Example

# Copy the signed URL to the clipboard on OSX
$ s3signed s3://my-bucket/my/private/file 3600 | pbcopy

About

Generate a signed URL for a private S3 object

License:ISC License


Languages

Language:JavaScript 100.0%