π Introduction
Hosting your static website on AWS S3 is simple, but by default you get a long AWS URL like:
http://myapp.com.s3-website-us-east-1.amazonaws.com
To make your site look professional, you need a custom domain (like myapp.com
).
In this guide, youβll learn how to:
- Buy/register a domain (Route 53 or third-party like GoDaddy/BigRock)
- Create a hosted zone in Route 53
- Configure S3 for website hosting
- Point your domain to S3 using Route 53 records
By the end, youβll have your app live on http://myapp.com π
πͺͺ Step 1: Buy / Register a Domain
- You can buy from Route 53 or another registrar like GoDaddy or BigRock.
- In this example, weβll use a domain from BigRock:
myapp.com
π Step 2: Create a Hosted Zone in Route 53
- Go to AWS Console β Route 53 β Hosted Zones β Create Hosted Zone.
- Enter your domain name:
myapp.com
- Choose Public Hosted Zone β Click Create Hosted Zone.
- Route 53 will give you 4 NS (Name Server) records.
- Copy these NS records β Go to your domain registrar (BigRock, GoDaddy, etc.) β Update your domainβs Nameserver settings with these 4 values.
πͺ£ Step 3: Configure S3 for Website Hosting
- Create an S3 bucket with the exact name of your domain:
myapp.com
- (If you want a subdomain, bucket name must be:
www.myapp.com
) - Enable Static Website Hosting in bucket properties.
- Disable Block All Public Access.
- Add a read-only bucket policy (same as in previous blog).
- After saving, youβll get a website endpoint like:
http://myapp.com.s3-website-us-east-1.amazonaws.com
π Step 4: Create a Record in Route 53
- Go to your Hosted Zone in Route 53.
- Click Create Record.
- Name:
myapp.com
(orwww.myapp.com
for subdomain). - Record Type: A β Route traffic to IPv4 & AWS resources.
- Alias: Yes.
- Route traffic to: S3 website endpoint.
- Select the correct region.
- Save the record.
β
Done! Now your domain points to your S3 bucket.
Visiting http://myapp.com
will show your hosted website π
π― Conclusion
Youβve successfully connected your custom domain to an AWS S3 hosted site using Route 53.
This setup gives you:
- A professional domain name
- Easy DNS management inside AWS
- A scalable static website hosting solution
β Next Steps
π Be interview-ready in the era of AI & Cloud β start your DevOps journey today!
π‘ YouTube wonβt get you a job. Real projects + real internship certificate will.
π₯ AI is reshaping jobs. Donβt watch it happen, be part of it with DevOps & Cloud skills.
π― βΉ2000/month today = Dream job tomorrow. Secure your spot now.
β³ Every month you wait, Cloud + AI jobs are being filled. Donβt miss out!
π DevOps + AWS + AI = The skillset every recruiter is hunting for in 2025.
Top comments (0)