• Home
  • Articles
    • IT
      • Web Multimedia
      • Oracle
    • Social Media
    • Options
    • Miscellaneous
  • About
  • Contact
Articles IT Web Multimedia How to use Amazon S3 with your Website

How to use Amazon S3 with your Website

Saturday, 17 April 2010 16:26

Using Amazon Simple Storage Service (Amazon S3) to host your website’s large files (such as MP4 video files and MP3’s, etc) is an excellent way to provide great content to your website visitors in a fast (high bandwidth), convenient, and inexpensive way. And the fact that you’re using Amazon S3 will be completely oblivious to your website visitors.

how_to_use_amazons3_tease

In my article Forget downloading from YouTube, use Amazon S3 instead I covered why you should use Amazon S3 instead of trying to download MP4 files directly from YouTube, in essence, using YouTube as a host for your video files. I also mentioned in this article that Amazon didn’t market it’s S3 service directly to consumers like us, so it wasn’t obvious at all how to use it, HOWEVER, this article will explain everything you need to know to begin using Amazon S3.

Signing up for Amazon S3

  1. Go to “SIGNUP” and either create a new Amazon account, or use your existing Amazon account that you use for shopping on Amazon.com.
  2. Follow the onscreen prompts, such as entering your website name, url, and your payment information. I personally didn’t add any ASW Premium Support, you could probably add it later if you need it.
  3. Once you complete the signup, you’ll need to wait until you receive the confirmation email, that way you know when your account has been activated.

Creating your Access Identifiers (Keys)

Before you can use Amazon S3, you must first create an Access Identifier, or put more simply, create a pair of keys that you’ll use to upload files, change file permissions, etc.

  1. Go to the Amazon Web Services (AWS) console at https://console.aws.amazon.com/ec2/home and logon.
  2. You DON’T need to sign up for Amazon EC2, or anything else, so you can ignore that.
  3. Click Account at the top of the page. This is where you can see usage reports, billing info and security info.
  4. Click Security Credentials and scroll down to Access Credentials.
  5. You should see that an Access Key has already been created when the account was created, however if there isn’t one there, create one. What you need to do is make a note of the Access Key ID and it’s Secret Access Key.
  6. Once you have the Access Key ID and it’s Secret Access Key, you have everything you need to start uploading files.

Using Amazon S3

At the time of writing this article, Amazon doesn’t have a way for you to upload files, change security permissions, create directories, etc from THEIR website. However, they do have plans to add it at some point in the future. HOWEVER, there is a very easy to use add-on to Firefox that has everything you need to start using Amazon S3. There MAY be one for IE, I’m just not aware of it.

Setting up the Amazon S3 Organizer Add-on for Firefox

  1. Launch Firefox and go to Tools at the top of the page and then click Add-ons.
  2. Click Get Add-ons and then search for Amazon S3, and once you see Amazon S3 Firefox Organizer (S3Fox) click Add to Firefox and go through the onscreen instructions.

    Amazon S3 Add-on For Firefox


  3. Once the add-on is installed, go to the Tools menu at the top of the page again, and click S3 Organizer.
  4. Once the S3 Organizer launches, click Manage Accounts and add your account using the 2 keys you noted down from #5 above or copy and paste.
  5. Next you need to create what Amazon calls a Bucket and I recommend you think of a good name for it as it will be used in the URL you will be using to access your files, and also I suggest you only have one “Bucket” and put all your directories underneath this “Bucket”. To create a bucket, click the button shown below:

    Amazon S3 Add-on for Firefox - adding a Bucket

  6. I just used garethhooper as my bucket name. IF you expect that most of your website visitors are in Europe, check the Place this bucket in Europe checkbox. That way your website visitors will download your files from Amazon S3’s European Data centers instead of downloading them from the USA.

Using the Amazon S3 Organizer Add-on for Firefox

  1. Now that you have created a bucket, you can now proceed to create directories underneath the bucket.
  2. To upload a file, such as an MP4, browse to the location of that file in the left-hand pane and then right-hand click on it and select Upload. The file will then be uploaded and you’ll see its progress at the bottom of the page.
  3. Once the file has uploaded, you’ll see it in the right-hand pane (on Amazon S3), right-hand click on it and select Edit ACL. Give Everyone the Read permission by clicking the X to the right of Everyone and underneath Read and making it a tick/check. Click OK.
  4. Now, to use the uploaded file you will need to know it’s URL so you can reference it. Right-hand click on the file again and click Copy URL to Clipboard. Now you’ll be able to paste the URL wherever you need it on your code, such as specifying the a video file with your JW Player.
  5. Repeat #1 - #4 above for all of the files you need to upload and host on Amazon S3.

Please leave me a comment if you found this article useful or if you have any questions.

Share This
Email This

Comments (6)

Subscribe to this comment's feed
...
0
Hi Gareth, thanks so much for your time to write this article. THis is great. I just have one question. We pay for the bandwidth used too? I have clips, each of them about 500MB (in HD) and weekly I upload about 4 to my site. So what do you think is this worth the money?? daily about 500 hits on the video...

thanks.
Michael
Michael , April 20, 2010
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Hi Michael,

Try http://calculator.s3.amazonaws.com/calc5.html to help estimate the cost. Just make sure you select S3 from the left-hand menu and then Ireland/Europe from the dropdown menu.

Something to bear in mind with videos that large (500MB), your website visitors may click off and not download the whole thing, so 500 views of the video may not be 500 x 500MB of data transfer.

You can use the gpro-1 JW Player add-in if you want to know how much of your video is actually being viewed.

I hope that helps,

Gareth
Gareth , April 20, 2010 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Hi Gareth,
It's a very useful article. It really simplifies the process of using Amazon s3.
Thanks for that.

Thota
Thota , September 08, 2010
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Hi Gareth,

I found this page through Google. Very helpful data! I assume the same holds true for uploading audio files to Amazon S3 that you want to stream at your web site and also add to iTunes so folks can subscribe to a podcast there?
Stan Dubin , September 12, 2010 | url
  • report abuse
  • +1
  • vote down
  • vote up
...
0
Hi Stan,

Thank you! Yes, that's exactly right, you can do the same with audio and xml, and as far as I know, any file extension.

Gareth
gareth , September 12, 2010 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Hi Gareth,

Great article. Everything explained so I can create an account and upload. However, this may seem like a dull question, but, what are the advantages of doing this. I'm left a bit up in the air as to how I use this to my advantage.
Thanks.
Robert , January 19, 2012 | url
  • report abuse
  • +0
  • vote down
  • vote up

Write comment

feedShow/Hide comment form
bold italicize underline strike url image quote smile wink laugh grin angry sad shocked cool tongue kiss cry
smaller | bigger

busy
< Prev   Next >

Like us on Facebook

Recommended Articles

  • Site Map
  • Legal
  • Privacy Policy
2011 GarethHooper.com