Reputation: 439
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.
Upvotes: 3
Views: 7269
Reputation: 71
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:-
Upvotes: 7
Reputation: 106
Take a look here : Creating signed S3 and Cloudfront URLs via the AWS SDK
NPM package from the answer : https://www.npmjs.org/package/aws-cloudfront-sign
Upvotes: 1