Introducing Amazon S3 Website Features

13,321 views

Published on

We're excited to announce new features that make it easy to host static websites on Amazon S3. Customers already use Amazon S3 to host images, video, and other content for their website, but until now they haven't been able to effectively host their entire website on Amazon S3. That's because even though customers can configure an Amazon S3 bucket as a website, users accessing the root of the website (e.g. http://www.mywebsite.com/) would see the list of objects in the Amazon S3 bucket instead of the website's home page. Also, if an error occurred, users would see an Amazon S3 error message instead of a website specific error message. In response to customer requests, we've added support for root and custom error documents to address these issues.

Published in: Technology
  • Be the first to comment

Introducing Amazon S3 Website Features

  1. 1. Introducing Amazon S3 Website Features<br />Matt Davis, Amazon S3 Senior Product ManagerCarl Perry, Amazon S3 Development ManagerFebruary 24, 2011<br />
  2. 2. Agenda<br />Brief overview of Amazon S3<br />Review the new Website Features <br />Discuss how to use them<br />
  3. 3. What is Amazon S3?<br />Amazon S3 is storage for the Internet. It can be used to store and retrieve any amount of data, at any time, from anywhere on the web.<br />AWS Cloud<br />3rd Party Applications<br />Durable<br />Scalable<br />Secure<br />Available<br />Your Applications<br />Libraries<br />Cost Effective<br />3<br />
  4. 4. Amazon S3 has always been a great repository for images, video, documents and other website content because it provides…<br />High Availability, Scalability, and Durability for any web content<br />Global access makes it easy to share content publically<br />Ability to customize your URLs for content hosted on Amazon S3 (Virtual Hosting – more on this later)<br />Easy integration with CloudFront (AWS Content Delivery Network)<br />Prior to this release…<br />
  5. 5. Feedback we received from website customers<br />Currently, when a request is made to the root of a bucket, we return a list of the bucket’s contents or an error…<br />So, customers hosting websites could not host their root document on Amazon S3<br />
  6. 6. Feedback we received from website customers<br />Also, all error messages are XML and the error message is not customizable <br />So, customers could not easily provide user-friendly error messaging<br />
  7. 7. Amazon S3 Website Features<br />Root/Subdirectory Index Document<br />HTML Error Pages<br />Custom Error Pages for 4xx class errors<br />
  8. 8. Enabling your bucket as a Website<br />Using Amazon S3 Management Console<br />
  9. 9. Also supported by… <br />Enabling your bucket as a Website<br />Applications<br /><ul><li> AWS Management Console
  10. 10. Bucket Explorer
  11. 11. CloudBerry S3 Explorer</li></ul>Amazon S3 API<br /><ul><li> Put Bucket website</li></ul>SDKs<br /><ul><li> AWS .NET Library
  12. 12. AWS JAVA Library
  13. 13. AWS PHP Library
  14. 14. boto Library (Python)
  15. 15. Jets3t Library (JAVA) </li></li></ul><li>Root/Subdirectory Index Document<br />http://www.dualnatureofmatter1.net.s3-website-us-east-1.amazonaws.com/<br />http://www.dualnatureofmatter1.net.s3-website-us-east-1.amazonaws.com/music/<br />
  16. 16. HTML and Custom 4xx Errors<br />http://www.dualnatureofmatter1.net.s3-website-us-east-1.amazonaws.com/typo<br />
  17. 17. What happens if I continue to use the original endpoints? <br />http://www.dualnatureofmatter1.net.s3.amazonaws.com/<br />Traditional endpoint behavior does not change<br />
  18. 18. Keep in mind… <br />New website endpoints<br />Amazon S3 has a new set of endpoints for accessing website content<br />Use the existing REST API to enable, use the new website endpoints for referencing content<br />Amazon S3 website endpoints support GET and HEAD only <br />Public content<br />All content must be marked as public (via ACLs or Bucket Policies)<br />Signed requests are not validated, but aspects of the request may be validated (i.e. IP address, HTTP referrer)<br />Static websites<br />Amazon S3 does not support server-side code<br />However, you can still host websites that utilize Flash, HTML5, Silverlight, etc…<br />Amazon S3 Website Features<br />
  19. 19. Using your own web URL<br />Assume your website domain is named www.mywebsite.com and you want to move your entire website to Amazon S3.<br />You would create a CNAME that points requests from your website domain to your Amazon S3 bucket website URL:<br />www.mywebsite.com CNAME www.mywebsite.com.s3-website-us-east-1.amazonaws.com <br />http://www.mywebsite.com/subdir/image.jpg<br />User requests resolve to your bucket<br />http://www.mywebsite.com.s3-website.amazonaws.com/subdir/image.jpg<br />http://www.mywebsite.com<br />…and you also get the benefit of the S3 Website features<br />http://www.mywebsite.com.s3-website.amazonaws.com/index.com<br />Reference Amazon S3 Virtual Hosting documentation for more information<br />
  20. 20. Keep in mind…<br />Bucket name must match your website domain<br />Bucket name must be all lower case<br />The DNS entry you point at Amazon S3 must be a CNAME (i.e. www.myexcitingbucket.com)<br />Virtual Hosting<br />
  21. 21. All of our feature releases are driven by direct customer feedback<br />Website Features 2/16/11<br />5TB Object Support 12/9/10<br />Multipart Upload 11/10/10<br />RRS Notifications 7/14/10<br />Bucket Policies 7/6/10<br />Reduced Redundancy Storage 5/19/10<br />Ways to provide feedback<br />Amazon S3 Forums<br />Matt Davis, Amazon S3 Product Manager: mattd@amazon.com<br />We Want to Hear Your Feedback<br />
  22. 22. Thank you for attending<br />Note:<br /><ul><li>This slide deck and recorded webinar will be posted on the AWS “Videos & Webinars” website within 2 days…
  23. 23. http://aws.amazon.com/resources/webinars/</li></li></ul><li>Appendix<br />
  24. 24. Website Endpoints<br />+ .amazonaws.com<br />
  25. 25. {<br /> "Version":"2008-10-17",<br /> "Id":"Policy1298564050193",<br /> "Statement":[{<br /> "Sid":"Stmt1298564047107",<br /> "Effect":"Allow",<br /> "Principal":{<br /> "AWS":"*"<br /> },<br /> "Action":"s3:GetObject",<br /> "Resource":"arn:aws:s3:::www.dualnatureofmatter1.net/*"<br /> }<br /> ]<br />}<br />Bucket Policy<br />

×