How are you?
And welcome back.
Now, in today's video, we go ahead and look into how we can deploy at cloud for distribution.
Now, the overall steps that are involved towards our goal of deploying the cloud distribution are three.
So the first one is you need to have a specific website endpoint.
So what we'll do, we'll go ahead and create a simple a steaming website, this website, you can host
it anywhere.
It can be easy to instant, it can be a three bucket and so on.
So we'll be going ahead and uploading assemblies to the website to S3 when the website is up and running,
what we'll do, we'll go ahead and create a cloud run distribution, and this cloud from distribution
will get associated with the website End Point.
So very high level three steps there to enjoy audio.
Now just to quickly realize the importance of CLI and let's say that you have a server where a specific
image is hosted.
Now when you go ahead and deploy a cloud and this cloud and distribution gets associated with the specific
website endpoint and a cloud and distribution also has multiple edge locations across the board.
So vanilla, you have users across the world.
These users will go ahead and connect to these edge locations.
Aurier Since this edge locations are spread across the globe, the connection from the users to the
edge location will be much more faster.
And yet a website will also load in a much more fast manner when we discuss about using cloud for in
distribution with education across the globe.
So with this basic, let's go ahead and deploy at workload distribution.
Now as we're discussing in these steps in one before we go ahead and deploy cloud trend distribution,
the first thing that we need is a sample website.
So what will be doing will go ahead and create a simple S3 bucket which will be hosting a simple website.
So let us call it the Escape Labs Cloud Frame S3 website.
You can just give me any random name over here.
Will they select the option of block all public access and will go ahead and create a I?
So once this bucket is created, what we'll be doing will be uploading a negative streaming file over
to you.
So let's go ahead and click on Upload.
I'll click on Add Files and here I have a sample index to each the email file that is available.
I'll also be adding this file in the resource so that you can.
Gordon, use this in one more thing.
Now along with this under the properties.
Let's go ahead and quickly enable the static website hosting and click on Enable and within the index
document will just give the same name of the file that was uploaded, which is indexed Northeast immediately
conceived and just perfect along with that what we'll be doing in the permissions.
Under the object ownership lets us select the vehicles enabled over here.
I just select this checkbox.
And what will you be doing under the access control list will go ahead and click on edit and for everyone
will just allow list and delete permissions so this bucket will become a public bucket.
I will select this checkbox and I literally conceived in this eyelet.
So if you will see this bucket is not publicly accessible.
So if will quickly go to properties over here, you'll have the link.
If I just open it up in the new that it is currently showing access the inside.
So what you can quickly do over here under the objects just click on make public using easy it.
Perfect.
So now if you'll quickly refresh this page, you'll have this sit sample message stating, did you load
it from cloud print?
So this is basically the content that is coming from the index, not a steam page.
Great.
So our first step is now completed.
The second important step is to create a cloud trend distribution.
So from the console, let's quickly open up the cloud front console.
And within here, we'll go ahead and create a new cloud trend distribution.
So under the origin domain name, as we were looking into the slide as well, the cloud trend distribution
needs to connect to a specific website endpoint and hence we had first created our first static website
hosting industry.
So in the auditing domain, you can either select S3 bucket.
If you go big down, you can select elastic load balancer and various other media store containers as
well.
Now what we'll be doing, we already have a stream bucket that is created.
So let's go ahead and select the bucket name with this capabilities cloud thing.
So this is the bucket that we had created here.
Let's go.
Big dump.
Now, if you look already at under the price class, there is an edge allocation that you can select,
as we were discussing.
Once the cloud friend gets created, there are also edge locations that are associated with it.
So depending upon from which continent or from which country you're expecting the users from, you can
go ahead and select the edge locations accordingly.
So let's say that you have your users coming only from North America and Europe, so you can select
that in case if your users are going to come from this continent, you can select that.
However, generally for production websites, it is recommended to use all the edge location which is
also associated with the best performance already.
Audio.
And within the default route object you can just see index dot is the image.
Once then you can go ahead and create a distribution.
Perfect.
So at this specific stage, if you will see the distribution status is enabled and it is currently in
the deploying stage.
So let us wait for a moment for the speed to be changed.
All right.
So it has been around two, 3 minutes.
And you see this date is not changed over here.
So this means that our cloud run distribution is now ready.
Now, if you look into the cloud print distribution, you're also getting a domain name.
So this is basically the end point of the cloud trend.
So let's go ahead and copy this link.
And from another tab, I'll add the cloud print distribution link and you see you're basically getting
the same page, which is did you load it from Cloud Friend?
So this time what is happening, we are sending a query to cloud thing and cloud print is loading the
data from S3 bucket and presenting it to us.
Along with this, you can also do various interesting things.
Let me quickly show you.
So if you'll go to the geography restrictions audio, you can click on edit and you can basically have
a block list or allow list.
So block list basically means from which country the users should be blocked from.
So you can go ahead and select a country from which the users should be blocked from.
So currently, in fact I am in Dubai for a project.
So what I be doing, I'll be selecting the United Arab Emirates and I'll click on this.
So this basically means that whenever the user comes from this specific location, he will not be able
to open a website through cloud friendly.
So if we try to.
So if you try to rephrase the piece again, you see we immediately got an error, which is 403 error.
Their request cannot be satisfied.
So there are a lot of interesting things that you can do.
One, to have a cloud print distribution in place.
Not only it will help you load the website faster, but it also allows you to have a deal restriction.
It allows you to integrate with web application, firewall and various interesting things.
So again, make sure that once you have completed your practical white cloud print distribution, you
can go ahead and delete it.
Now, if you want to delete the cloud from distribution, you cannot go ahead and directly do that.
What you will have to do first, you'll have to disable the cloud print distribution.
So let's go ahead and click on disable the clear trend distribution from here.
So again, you will see the state is now deploying and only after the cloud phone distribution has been
disabled and this date has been changed from deploying, then you will be able to go ahead and click
on Delete.
So let's quickly wait for a moment here for this thing to change.
All right.
So it has been around 2 to 3 minutes and you see the status is now modified.
So after the cloud, when distribution is disabled, then you can go ahead and easily delete the cloud
phone distribution from the console.
Great.
So this is the high level overview about the cloud trend distribution.
And with this will conclude today's video.