cpilsworth / aws-s3-signurl

CLI for generating signed urls for s3 bucket keys
https://www.npmjs.com/package/aws-s3-signurl
Apache License 2.0
1 stars 0 forks source link
access aws cmd node s3 signature url

aws-s3-signurl

Build Status Greenkeeper badge

The AWS CLI does not currently have the ability to sign urls for time restricted access to secure buckets. This simple utility takes a bucketname and (optionally) a keyname and outputs a signed url for them. If just the bucketname is provided a signed url for each of the keys is output. If the key is specified also, then just that bucket/key combo is output.

Credentials are loaded from environment variables or from ~/.aws/config, if present. See the Setting AWS Credentials for more details.

install:

npm install --global aws-s3-signurl

usage:

aws-s3-signurl {bucketname} [{keyname}] [{expires}]

If a just a bucketname is supplied, the contents of the bucket will be listed.

If a key is supplied, then just that key will be output.

If an expires is supplied (number, in seconds) then the link will be valid for that many seconds (default = 900 seconds).