Creating signed url for amazon cloudfront using javascript
amazon-cloudfront, amazon-s3, amazon-web-services
Solution
I think the aws-cloudfront-sign package is deprecated now. You can use this package https://www.npmjs.com/package/aws-sdk
Here is the link to know how you can use this:-
https://medium.com/roam-and-wander/using-cloudfront-signed-urls-to-serve-private-s3-content-e7c63ee271db
Problem
In my app i need to create the signed url for cloudfront. I am using the javascript sdk for browser. I dont want to use node.js. I am not getting how to create the signed url. I didn't find any sample code for javascript in amazon website. I included this js file: ``` <script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.0-rc1.min.js"></script> ``` Other than this do i need to include any js file? I am having all the parameters like, Key-id, cloudfront domain then pem file everything. IBut i dont know how to implement it. Can anyone help me by showing some samples. I searched a lot but i am not getting it. I got the sample code for creating signed url using node.js, but i dont want to use node.js.