Skip to main content
Kinetic Community

Amazon S3 Expiring Url Generator

Generate an expiring URL for S3.

Downloads

By downloading this file, you acknowledge that you agree to our Terms of Service

amazon_s3_expiring_url_generator_v1.zip

Detailed Description

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

Name Description
Region Name of the region of the bucket (required if not specified as an info value).
Bucket Name of the desired bucket.
Key Name of the key in desired bucket (path + filename).
Seconds To Expire Number of seconds in which URL will expire. This may not exceed 604,800 seconds or one week.

Sample Configuration

Parameter Example Configuration
Region us-east-1
Bucket sample-bucket
Key file-to-show.txt
Seconds To Expire 300

Results

Name Description
Public Url URL to desired bucket and key path for file.

Change Log

Version Date Description
1 2016-07-02 * Initial version. See README for details.