Hybrid Multi Cloud

Arifiya Khan
6 min readJun 6, 2020

Hello!!

So here is the blog for the next two sessions under the guidance of vimal daga sir,Where I will let you know about CDN(content delivery network) and its practical.Then,I will show you that how I have created my own image in AWS and launch Instance from my image in different regions and also the use of global accelerator.

In AWS,cloudfront provides the service of CDN.To deliver content faster we have small data centres which keeps the local copy of the content we request and this is done through cloudfront.

For this,we have to create distribution in cloudfront.While creating distribution we will find two options web and RTMP.Web is for webservers and all whereas RTMP is for live streaming like Netflix,jio savan etc.

Step-by-step Implementation

We will go for web

Creating distribution.Here we have selected the option redirect HTTP to HTTPS,as you may know that whenever we type a url on browser,it automatically gets converted to HTTPS and also it is secure.

Now the distribution has been created.

We want only CDN to access my bucket.So we will change some of the permissions.Now,you can see something written in bucket policy which was not there before.

By this distribution,we will get the url and with this url we can access our page.

Also we can set Geo-restrictions,where we have two types,i.e,Whitelist and blacklist.Whatever the countries name we will write in white list,only those countries can access my page.Blacklist works just opposite of whitelist.

My instance is running

I have created a page with simple code.

I can access the image in my bucket using the url I got after creating distribution.

Another session:-

Guys,Now this one is very interesting.As I have created my own image and launched the instance from different regions from my own image and used Global accelerator.

Step-by-step implementation

For now,I don’t have any image

I am launching instance as I have shown in my previous blog.

As you can see that my Instance has been launched and now I am going to create a simple page using PHP code in this instance.

Before this I am Installing PHP and httpd in my instance.

yum install httpd

yum install php

remember to enable httpd using

systemctl enable httpd

Now you can see that my page is running perfectly.Now I will make the copy of this instance.

Making copy

Now my copy has been created and from here I will create my Image.

Now my image has been created.So now,I will launch my os from this image.

My image name is arifiyaFirstimage1

Now I am launching os from my image in the same way we did before.

I am launching my os without a key pair

so my image in mumbai region has been created.But I want my image to be used by someone in california.so for this I will create a copy of my image in california region so that some client in california region can access my page.

creating copy of image in california region.

So now my image is getting created in california region.It will take some time.

You can see at the top that I am in california region.

In this region I can see my image from which I will create new instance in this region.

Now I am again launching os in this region with the same process I created before.

Now from the IP of my california region instance,I will run my page.

And yes,It is running perfectly.

So now here comes the use of Global accelerator

I don’t want to run the page through IP.So,I will run the page using the url given by Global accelerator.This service is provided from oregon region.

Remember that this service is not provided by every region.

We can say that internally Global accelerator are creating a program and give a unique IP.

Note:-Global accelerator is paid

so here is the step of creating global accelerator.First of all go to the global accelerator and then create accelerator and give name to your accelerator.

Adding listener
Adding endpoints and endpoint groups

My accelerator has been created now.

Now we can configure our accelerator

And now with the help of url we can run our page and can give the url to our client to access my page.

so,

Thank you for giving it a read.Hope that my blogs are helping you.Feel free to ask your queries in case you need it.

Happy learning!!

--

--