/sign/cloudfront

The cloudfront sign module exports a method to sign requests to an AWS cloudfront service.

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:
NameTypeDescription
req_urlString

Cloudfront resource URL.

Returns:

The method resolves to a string which contains the signed url.

Type: 
Promise.<String>