Amazon S3 Expiring Url Generator VERSION 1


This handler generates an expiring URL for S3. Expiring URLs take a bucket, a key (path + filename) and an expiration and build up a special URL that will give the user access to the file only for a certain time period.

Authentication

This handler requires two info values for AWS authentication: Access Key ID and the Secret Access Key. These are analogous to username and password.

To find authentication values from the AWS account:

  1. Navigate to the following URL: https://aws.amazon.com/account/

  2. Click the "Security Credentials" link (if you are not logged in, you will be prompted to do so).

  3. Click the "Access Credentials" link. Here you will find a list of your Access Keys.

  4. Use the Access Key ID to configure the accesskeyid info value of this handler.

  5. To retrieve the Secret Access Key, click the "Show" link next to the Access Key ID that will be used.

  6. Use the Secret Access Key to configure the secretaccesskey info value of this handler.


Parameters

NameDescription
RegionName of the region of the bucket (required if not specified as an info value).
BucketName of the desired bucket.
KeyName of the key in desired bucket (path + filename).
Seconds To ExpireNumber of seconds in which URL will expire. This may not exceed 604,800 seconds or one week.

Sample Configuration

NameDescription
Regionus-east-1
Bucketsample-bucket
Keyfile-to-show.txt
Seconds To Expire300

Results

NameSample Result
Public UrlURL to desired bucket and key path for file.

Changelog

Amazon S3 Expiring Url Generator V1 (2016-07-02)

* Initial version. See README for details.