In this video, we are going to do Hands On Love, which is the synthetic website hosting on Amazon
S3 using a WS management console.
You can see the image on the slide here.
You can see that we are using Amazon S3 and Bucket and the Object and we will hosting a website and
we will see these websites from the client application.
So for that purpose, we have several steps that we are going to do one by one.
Step one is create bucket enables website, hosting, edit, blog, public access settings.
Add the bucket policy that makes bucket content public available.
Configure an index, HTML document and test website and clear our resources.
So now let's follow these steps.
For that purpose, I have created a separate lecture folder on our we just do code.
So basically in this video I will follow these first three step.
So we will create a bucket and after that enables website hosting and after that edit will look public
access settings.
Okay, let's get started.
Please open the measurement console and go to Amazon.
S3 buckets click to Create Bucket.
So I'm going to create a new bucket, which is a static.
Website hosting.
Now let me test this.
Name is available or not by credit?
No, it is not available.
So for that purpose, I'm going to give some random numbers in here.
After that, I'm leaving as it is for all configurations.
Aces are disabled and now I'm going to block all public access and I will edit after that.
So bucket versioning, disabled, no take, no encryption and no any advanced settings, just click
the create bucket button.
So as you can see that we have created our S3 bucket, which name is static website hosting and the
random number.
So basically we will complete the first step.
If you come here and see that, we will finish the first step and now I am going to perform the second
step, which is the enabled website hosting.
For that purpose we are going to go to bucket properties, static website hosting configuration and
make it enable.
So please open the our.
Management console and go to buckets, go to properties.
And if you scroll down at the end of this page, you can see the static website hosting configurations.
So click the edit button and enable website hosting.
When you click the enable, you can see the hosting type.
So we will choose a host aesthetic website.
So you can also redirect requests for a specific object.
But this case in this hands on, we will host a static website and we will we will redirect the page
as an index that we can think that we are developing single page application and all page is rendering
index HTML that we are going to hosting and deploying this application on the S3.
So that's why I'm giving the index HTML.
And you can also specify the error reg html, but it is optional.
I don't set any error documentation.
If you would like to redirection rules, you can specify the redirection rules in a JSON format automatically
direct web page.
So I have selected the enable and host aesthetic website and give on the index HTML and leave as it
is for other complications and click the save changes.
Now we have finished the second step.
If you go to at the end of the page, you can see the site where web hosting is enabled now and hosting
type is bucket hosting.
And here you can see the hosting page that we can invoke our page when we developing our index html.
Okay.
If you come back to our we just do code project and see that we have finished the step two and now it's
time to continue with the step three, which is the edit block public access settings even we enable
static website hosting.
We have to give the required permissions.
For example, if you come here and click this link, most probably it is giving to forbidden because
it is accessed denied.
So that means we should give the required access for the public users.
In order to do that, I'm going to use these configuration bucket permissions and clear our block public
access.
So go back the buckets and come to our bucket.
And if you click the permissions tab, we can see the block public access configuration in here if you
click the edit button.
Now, as you can see that it is blocking all public access.
So if you create this check now, this time we will give permissions to invoke our S3 from any public
access.
So please clear this check and click the save change.
And it is required a confirmation because it is important thing that we are giving and allowing users
to access our S3 bucket objects.
We have successfully remove block all public access and now we have finished these three steps.
In the next video we are going to continue to our other steps to perform website hosting into the Amazon
S3.