/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) → {Promise.<String>}
The method creates a signed URL for a cloudfront resource.
Parameters:
Name | Type | Description |
---|---|---|
req | req | | Request object or URL string. |
- Source
Returns:
The method resolves to a string which contains the signed url.
- Type:
- Promise.<String>