/sign/cloudfront
The cloudfront sign module exports a method to sign requests to an AWS cloudfront service.
- Source
Requires
- module:fs
- module:path
- module:aws-sdk/cloudfront-signer
- module:/utils/processEnv
Methods
(async, inner) cloudfront_signer(req_url) → {Promise.<String>}
The method creates a signed URL for a cloudfront resource.
Parameters:
Name | Type | Description |
---|---|---|
req_url | String | Cloudfront resource URL. |
- Source
Returns:
The method resolves to a string which contains the signed url.
- Type:
- Promise.<String>