website logo

How to upload video in Amazon aws and access from salesforce apps or any web pages

Procedure to upload and access video from amazon server
For accessing video from amazon server you need to create permission
Log into your Amazon s3 consol https://console.aws.amazon.com
Enter email id or password and click sign in using our secure server button for login


aws login

click on S3 link from storage & content Delivery

s3 services

click on create bucket for creating new bucket and store video

create-bucket

After clicking on create bucket button popup window will appear .enter bucket name and region and click on create button.

bucket-name-and-region

After creating bucket select it
Uplade video by clicking upload button or by clicking action->upload

upload video

Select video by clicking Add file button and than click start upload button.

select video

Your video upload will start on right side.after upload Select uploaded video and click property button and In Metadata change video value to video/mp4 and click save button.

change video type

Now you need to generate bucket policy open url http://awspolicygen.s3.amazonaws.com/policygen.html for generate bucket policy. and Select policy type s3 bucket policy and Action getobject

generate bucket policy

And in amazon resource name(ARM)enter arm:aws:s3:::myvideofolder1/* and click Add Statement button.

amazon resource name field

After Adding statement Click Generate policy button
Your bucket Policy will be generated now copy bucket policy

bucket-policy

Now select Your Folder from Amazon s3 consol https://console.aws.amazon.com and click property button and open permission link. Click on add bucket policy link popup will generate now past your bucket policy in this window and click save button .

save bucket policy

After Saving bucket policy select video file and property of that file.you can find video url now copy that url.

copy video url

After completing this procedure you can access video from amazon server .

<iframe width="560" height="315" src="http://s3-us-west-2.amazonaws.com/myappsvideo/temp.mp4" frameborder="0" allowfullscreen="true"></iframe>

Copy this code to your salesforce page or any oter web page for accessing video.