Log into your Amazon S3 Console by visiting https://console.aws.amazon.com/
Once in, under Storage & Content Delivery, select "S3."
Create a Bucket. If you already have one, proceed to the next step
To create a Bucket, simply click "Create Bucket."
In the prompt that appears, name your bucket and then click “Create.”
Once you've chosen a name, write it down. This is important, as we'll be using it later on!
After creating your bucket, select it from the menu.
Upload your video by selecting the “Upload” button in the top-left corner.
Select your video by clicking “Add File.” Then, choose “Start Upload.”
Select your Video File, then click “Properties.”
Inside of Properties, select “Metadata.”
In Metadata, change the value to video/[your video extension].
Please note: The extension you enter must correspond with the one shown at the end of your video link.
In this example, an MP4 video file is used. If you upload an MOV, AVI, or any other video type, be sure to place that extension after video/ in the value field.
Once your changes have been made, click Save.
Generate a Bucket Policy in order to grant streaming access to this file.
To do this, visit http://awspolicygen.s3.amazonaws.com/policygen.html.
Inside of the Policy Generator, select “S3 Bucket Policy” as the policy type.
Next to “Effect,” select “Allow.” Then, place an asterisk in the “Principal” field.
In the Actions dropdown menu, select “GetObject.”
Enter your Amazon Resource Name (ARN).
Your Amazon Resource Name (ARN) will look like this:
Replace Bucket name with the name you’d selected earlier on in the tutorial, followed by a backslash and an asterisk.
At the beginning of this tutorial, I’d named by Bucket codeiscode. Therefore, my ARN is:
Once this step is completed, choose “Add Statement”.
After your Statement appears below, select “Generate Policy.”
Copy all the text from the text box that appears, then click “Close.”
Navigate back to https://console.aws.amazon.com.
Once you’re back to your Bucket list, follow the steps below.
a. Select your Bucket from the list.
b. Click the “Properties” button.
c. In the Properties panel, select “Permissions.”
d. Permission options will expand below it. Select “Add Bucket Policy.”
Paste the Policy Code copied to your clipboard in the text box that appears, then click Save.
Now your Amazon S3 Account is configured to Stream Video