To be used in conjunction with this medium article.
Referenced from https://medium.com/@apalshah/node-js-serve-private-content-using-aws-cloudfront-992e846259ae
- Run
npm install
to install dependencies - Run
node app.js
to get signed url. Should look something like this
- Click on link and view in browser.
- Remember to create an invalidation after each changes in cloudfront distribution configuration else updated behavior might be delayed.