Create High Availablity Architecture with AWS-CLI

 We will go through step by step process of building a high speed architecture of aws. For instance, we have created a website hosted it using AWS. Now, it is stored in our region let say, Mumbai. But, if someone from America wants to access it, then it has to travel all the distance through the internet.

Majorly effecting the speed of loading of our website. If it contains multiple medias, the latency will be higher. So, to overcome this a concept called content delivery network(CDN) is used. In simple terms, it means that creating a cache for global network in multiple regions. In aws this is achieved by a service called cloudfront.

To see its working we must have done few things-

  1. Web Server is configured  in our EC2 instance.
  2. The folder which contains our website must be mounted on an ebs volume of aws ec2.
  3. The static objects or media must be stored in s3 of aws.
In our case the website that we are launching is 

Here we are using the url of s3 to acess this image.

 
Now to use CDN we have to create a cloudfront distribution.
Using command aws cloudfront create-distribution --origin-domain-name s3domainname
By this, a distribution will be created. 
Now, we have to paste new domain created by cloudfront instead of our original s3 domain. 
To get the new domain 
Now copy the url in field DomainName and paste it in the code of html.

Now the low latency network is ready in AWS.
Thank You for reading.

I would like to thanks Vimal Daga Sir.

My Email — ayanchawlae@gmail.com








Comments

Popular posts from this blog

Key Announcements at Microsoft Ignite

Ansible Handlers

Ansible Roles (Httpd + Haproxy)