Hosting a static website on aws s3 | AltF9 Technology solutions

Hosting a static website on aws s3

Amazon internet Services provides a 12-month free trial with a precise usage threshold. Let’s jump into it and see what we are able to do with it. The AWS Management Console provides completely different guides to induce started. I started with a straightforward static web site.

1. created a user management
Firstly produce associate AWS account — simply follow the directions on their homepage.

Next created associate “Identity and Access Management” (IAM) to form access keys and not being forced to use your own account credentials. Use the IAM console to feature a brand new user and a brand new cluster.

Tip: once work in with the new user, take care to use the positive identification from your main account and not the set “console positive identification” — since it isn’t touching on your AWS Management Console password.
2. produce Buckets
You can use Amazon easy Storage Service (Amazon S3) to store all the content that creates up your static web site, as well as hypertext mark-up language pages, images, CSS files, videos, and JavaScript files. every file is held on in Amazon S3 as an associated object in a very location referred to as a bucket.
The buckets ought to have a similar name as your domain to be resolved properly.

To create the bucket exploitation the S3 console.

3. tack together buckets
S3 delivers the files within the bucket to the net browsers as if they were hosted on a server. Permissions need to be granted to form the files accessible for everybody.

Use the S3 console to vary permissions and properties of the bucket.

Logging permits pursuit the number of tourists, that are accessing the web site.

There is no additional charge for sanctionative work on a bucket; but, you'll accrue charges to store the ensuing log files within the bucket that you just specify.
4. Deploy web site
Create associated transfer an Index and Custom Error document. Use the S3 console to transfer your files to the bucket. it's conjointly potential to form folders within the bucket itself.

Configure your bucket as an internet site, in order that files square measure served as if they were hosted on an internet server.

Redirecting By redirecting traffic from the web subdomain bucket to the basic domain bucket, you'll be able to maintain one version of your web site files in Amazon S3 whereas still supporting each the basis and web subdomain versions of your website’s address.

Test to examine if the preparation was sure-fire navigate to the provided computer address.

5. Variation: exploitation your own domain name
Again: Before you pay to register a site name, confirm the name that you just used after you created your buckets in Amazon S3 (as delineated in Step 1: produce the Buckets for Your Website) is out there with a site name registrar.

A Domain Name System ( DNS) net service routes guests to websites by translating domain names (such as into the numeric scientific discipline addresses (such as that computers use to attach to every different.
Use Amazon Route fifty-three as your DNS service, to associate {a domain|a web site|a site} name along with your website.

To do that United States of America the Route53 console

a “hosted zone” permits you to handle your domain and subdomain management
“recordsets” re-direct route queries for your name to your S3 bucked

6. Addition: Speed up your web site with CloudFront

CloudFront merely provides CDN practicality.

When a visitant requests a file from your web site, the request is mechanically redirected to a duplicate of the file at the closest edge location, which ends in quicker transfer times than if the visitant had requested the content from an information center farther away
Use the CloudFront console to line up information centers around the world.

 Don’t forget to update your recordsets to purpose to the CloudFront distributions similarly.

This once more is completed within the Route53 console.

The guide shows however simple it truly is to line up a static hosting web site. It is wiped out many hours and provides plenty of options. This 1st tutorial already demonstrates the ability of AWS. each beginner will simply publish his 1st web site while not complicated data of the way to discover a hosting structure


Altf9 Technology Solutions Pvt.Ltd
5/181, J4A Third Floor
Periyar Street, Medavakkam
Chennai, India
INDIA: +91 8056005901
 USA: +1 (845) 576-5295
Australia : +61291880753


Popular posts from this blog

AWS EFS vs EBS vs S3 (difference,price & use)

7 reasons to migrate your enterprise IT system to the cloud

Intro in AWS - virtual private networks