Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Amazon S3 Essentials

You're reading from   Amazon S3 Essentials Get started with Amazon S3 for virtually unlimited cloud and Internet storage

Arrow left icon
Product type Paperback
Published in Nov 2015
Publisher Packt
ISBN-13 9781783554898
Length 112 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Sunil Gulabani Sunil Gulabani
Author Profile Icon Sunil Gulabani
Sunil Gulabani
Arrow right icon
View More author details
Toc

Mapping a custom domain with website configuration in Amazon S3

First of all, we need a domain name to display our static website that is hosted on Amazon S3. The domain name can be used for any of the domain providers. For our example, we purchased the domain from Route 53 (tweakings3.com). You can take a look at the hosted zone under Route 53 in the AWS Management Console. As we bought the domain from Route 53, it created an entry for the hosted zone as well. Otherwise, we would have needed to manually create the hosted zone and enter the namespace of the DNS provider.

Mapping a custom domain with website configuration in Amazon S3

For the static website content, we need to create two buckets: one bucket is for www.tweakings3.com and another for tweakings3.com. This would be helpful if a user tries to open the website by either URL.

Mapping a custom domain with website configuration in Amazon S3
Mapping a custom domain with website configuration in Amazon S3

We added the index.html and error.html pages to both our website buckets. After adding the HTML, don't forget to make it public; this is required for other users to access it. Then, add the bucket policy to access the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime