1
00:00:00,120 --> 00:00:06,120
In this video, we are going to do Hands On Love, which is the synthetic website hosting on Amazon

2
00:00:06,120 --> 00:00:08,880
S3 using a WS management console.

3
00:00:09,450 --> 00:00:11,700
You can see the image on the slide here.

4
00:00:11,700 --> 00:00:18,780
You can see that we are using Amazon S3 and Bucket and the Object and we will hosting a website and

5
00:00:18,780 --> 00:00:21,990
we will see these websites from the client application.

6
00:00:22,710 --> 00:00:27,330
So for that purpose, we have several steps that we are going to do one by one.

7
00:00:27,480 --> 00:00:33,840
Step one is create bucket enables website, hosting, edit, blog, public access settings.

8
00:00:34,080 --> 00:00:37,500
Add the bucket policy that makes bucket content public available.

9
00:00:37,500 --> 00:00:42,450
Configure an index, HTML document and test website and clear our resources.

10
00:00:42,450 --> 00:00:44,580
So now let's follow these steps.

11
00:00:44,580 --> 00:00:50,060
For that purpose, I have created a separate lecture folder on our we just do code.

12
00:00:50,100 --> 00:00:54,540
So basically in this video I will follow these first three step.

13
00:00:54,540 --> 00:01:01,020
So we will create a bucket and after that enables website hosting and after that edit will look public

14
00:01:01,290 --> 00:01:02,400
access settings.

15
00:01:02,550 --> 00:01:04,080
Okay, let's get started.

16
00:01:04,110 --> 00:01:08,430
Please open the measurement console and go to Amazon.

17
00:01:08,430 --> 00:01:11,040
S3 buckets click to Create Bucket.

18
00:01:11,040 --> 00:01:14,250
So I'm going to create a new bucket, which is a static.

19
00:01:16,180 --> 00:01:17,710
Website hosting.

20
00:01:18,860 --> 00:01:20,510
Now let me test this.

21
00:01:21,050 --> 00:01:24,370
Name is available or not by credit?

22
00:01:24,740 --> 00:01:26,030
No, it is not available.

23
00:01:26,030 --> 00:01:30,230
So for that purpose, I'm going to give some random numbers in here.

24
00:01:30,500 --> 00:01:34,010
After that, I'm leaving as it is for all configurations.

25
00:01:34,040 --> 00:01:40,640
Aces are disabled and now I'm going to block all public access and I will edit after that.

26
00:01:40,640 --> 00:01:47,810
So bucket versioning, disabled, no take, no encryption and no any advanced settings, just click

27
00:01:47,810 --> 00:01:48,920
the create bucket button.

28
00:01:53,670 --> 00:01:58,680
So as you can see that we have created our S3 bucket, which name is static website hosting and the

29
00:01:58,680 --> 00:01:59,520
random number.

30
00:01:59,520 --> 00:02:02,130
So basically we will complete the first step.

31
00:02:02,130 --> 00:02:07,020
If you come here and see that, we will finish the first step and now I am going to perform the second

32
00:02:07,020 --> 00:02:09,270
step, which is the enabled website hosting.

33
00:02:09,270 --> 00:02:14,910
For that purpose we are going to go to bucket properties, static website hosting configuration and

34
00:02:14,910 --> 00:02:15,870
make it enable.

35
00:02:15,870 --> 00:02:18,210
So please open the our.

36
00:02:19,700 --> 00:02:23,450
Management console and go to buckets, go to properties.

37
00:02:23,450 --> 00:02:29,480
And if you scroll down at the end of this page, you can see the static website hosting configurations.

38
00:02:29,480 --> 00:02:33,740
So click the edit button and enable website hosting.

39
00:02:33,770 --> 00:02:36,350
When you click the enable, you can see the hosting type.

40
00:02:36,350 --> 00:02:40,400
So we will choose a host aesthetic website.

41
00:02:40,400 --> 00:02:44,000
So you can also redirect requests for a specific object.

42
00:02:44,000 --> 00:02:51,410
But this case in this hands on, we will host a static website and we will we will redirect the page

43
00:02:51,410 --> 00:02:59,870
as an index that we can think that we are developing single page application and all page is rendering

44
00:02:59,870 --> 00:03:05,630
index HTML that we are going to hosting and deploying this application on the S3.

45
00:03:05,690 --> 00:03:07,970
So that's why I'm giving the index HTML.

46
00:03:08,000 --> 00:03:11,660
And you can also specify the error reg html, but it is optional.

47
00:03:11,660 --> 00:03:13,700
I don't set any error documentation.

48
00:03:13,820 --> 00:03:19,880
If you would like to redirection rules, you can specify the redirection rules in a JSON format automatically

49
00:03:19,910 --> 00:03:21,020
direct web page.

50
00:03:21,020 --> 00:03:28,610
So I have selected the enable and host aesthetic website and give on the index HTML and leave as it

51
00:03:28,610 --> 00:03:31,310
is for other complications and click the save changes.

52
00:03:31,580 --> 00:03:33,740
Now we have finished the second step.

53
00:03:33,740 --> 00:03:41,450
If you go to at the end of the page, you can see the site where web hosting is enabled now and hosting

54
00:03:41,450 --> 00:03:42,650
type is bucket hosting.

55
00:03:42,650 --> 00:03:50,360
And here you can see the hosting page that we can invoke our page when we developing our index html.

56
00:03:50,630 --> 00:03:51,050
Okay.

57
00:03:51,050 --> 00:03:56,840
If you come back to our we just do code project and see that we have finished the step two and now it's

58
00:03:56,840 --> 00:04:03,680
time to continue with the step three, which is the edit block public access settings even we enable

59
00:04:03,710 --> 00:04:05,000
static website hosting.

60
00:04:05,000 --> 00:04:07,580
We have to give the required permissions.

61
00:04:07,580 --> 00:04:13,370
For example, if you come here and click this link, most probably it is giving to forbidden because

62
00:04:13,370 --> 00:04:14,900
it is accessed denied.

63
00:04:14,900 --> 00:04:20,270
So that means we should give the required access for the public users.

64
00:04:20,270 --> 00:04:27,050
In order to do that, I'm going to use these configuration bucket permissions and clear our block public

65
00:04:27,050 --> 00:04:27,620
access.

66
00:04:27,620 --> 00:04:31,190
So go back the buckets and come to our bucket.

67
00:04:31,190 --> 00:04:37,340
And if you click the permissions tab, we can see the block public access configuration in here if you

68
00:04:37,340 --> 00:04:39,050
click the edit button.

69
00:04:39,200 --> 00:04:43,550
Now, as you can see that it is blocking all public access.

70
00:04:43,550 --> 00:04:52,370
So if you create this check now, this time we will give permissions to invoke our S3 from any public

71
00:04:52,370 --> 00:04:53,030
access.

72
00:04:53,030 --> 00:04:57,230
So please clear this check and click the save change.

73
00:04:57,230 --> 00:05:05,720
And it is required a confirmation because it is important thing that we are giving and allowing users

74
00:05:05,720 --> 00:05:08,720
to access our S3 bucket objects.

75
00:05:08,720 --> 00:05:15,050
We have successfully remove block all public access and now we have finished these three steps.

76
00:05:15,050 --> 00:05:22,580
In the next video we are going to continue to our other steps to perform website hosting into the Amazon

77
00:05:22,580 --> 00:05:23,150
S3.
