/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) → {Promise.<String>}

The method creates a signed URL for a cloudfront resource.

Parameters:
NameTypeDescription
reqreq | string

Request object or URL string.

Returns:

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

Type: 
Promise.<String>