aws-s3-signurl

Create signed urls for a bucket/key or the contents of a bucket


Keywords
aws, s3, signed, url, node, signature, access, cmd
License
Apache-2.0
Install
npm install aws-s3-signurl@1.4.0

Documentation

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).