How to host AMP landing pages on Amazon S3 servers and map Route 53 to Godaddy domain hosting

You can host a static website on Amazon Simple Storage Service (Amazon S3). On a static website, individual webpages include static content. They might also contain client-side scripts. By contrast, a dynamic website relies on server-side processing, including server-side scripts such as PHP, JSP, or ASP.NET. Amazon S3 does not support server-side scripting. Amazon Web Services (AWS) also has resources for hosting dynamic websites.

Pricing Details of S3 :

Register Domain/Transfer domain to AWS Route53:

The most elegant way is to migrate DNS service from GoDaddy to Route 53. You still will be with GoDaddy, but handling requests for your site will be on Amazon’s side.

1)  Create Hosted Zone for your site in Route 53 console:

2)  Open newly added domain name, find NS record and copy servers:

3)  In GoDaddy‘s Domain Manager set custom DNS nameservers :

Migrating might take some time,so please be patience

Create Buckets using S3 and Upload the content :

When you configure a bucket for website hosting, you can access the website using the Amazon S3 assigned bucket website endpoint.

In this step, you configure both buckets for website hosting. First, you configure example.com as a website and then you configure www.example.com to redirect all requests to the example.com bucket.

1) Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.

2)In the Bucket name list, choose the name of the bucket that you want to enable static website hosting for.

3)Choose Properties.

4)Choose Static website hosting.

5)Configure the example.com bucket for website hosting. In the Index Document box, type the name that you gave your index page.

Dont Know how to use s3 properly ,do not worry .please refer the blog here you will find how to upload files.

https://nectarspot.com/how-to-upload-file-in-aws/

Configure Route53 with S3 Endpoint :

1)In the Amazon S3 console, in the Buckets list, choose your bucket ( www.example.com, in this example).

2)Choose Properties.

3)Choose Static website hosting.

4)Choose Redirect requests. In the Target bucket or domain box, type example.com.

5)Choose Save.

Now the end point is created,now we need to create a A record Alias to send the endpoint traffic to domain.

1) Open the Route 53 console in your web browser.

2) On the Dashboard, choose Hosted zones.

3) Choose your domain name in the table of hosted zones.

4) Choose Create Record Set.

5) In the Create Record Set form that appears on the right, choose Yes for Alias.

6) In Alias Target, provide the Amazon S3 website endpoint—for example, s3-website-us-west-2.amazonaws.com.

7) Choose Save Record Set.

It may some time to serve as a website,Once it is done you can see your static AMP website running on your Custom Domain.

4) Testing :

Go to URL of your custom domain and check with the link ( example.com ) whether the site is working or not.

Errors :

1) Page Not Visible : that may be your cache,try clearing the cache.

Looking for a Top Rated* Marketing Company?

Contact us at +1 630 999 SPOT (7768) or submit a business inquiry online.

Looking for AWS Experts?