1
00:00:00,250 --> 00:00:02,960
Now let's talk about S3 Replication.

2
00:00:02,960 --> 00:00:05,450
And SSCRR and SRR

3
00:00:05,450 --> 00:00:07,950
because it means cross region replication

4
00:00:07,950 --> 00:00:09,790
and same region replication.

5
00:00:09,790 --> 00:00:12,000
And I will explain to you this in a second.

6
00:00:12,000 --> 00:00:13,510
So you have an S3 bucket

7
00:00:13,510 --> 00:00:16,680
and say that bucket is an EU west one,

8
00:00:16,680 --> 00:00:19,450
and you want to replicate all the bucket content

9
00:00:19,450 --> 00:00:23,660
continuously into another region US east one.

10
00:00:23,660 --> 00:00:25,170
And you would do so, for example,

11
00:00:25,170 --> 00:00:26,630
because you want to save data

12
00:00:26,630 --> 00:00:30,600
in another region in case a disaster hits EUS one.

13
00:00:30,600 --> 00:00:33,630
So you want asynchronous replication to happen

14
00:00:33,630 --> 00:00:35,180
behind the scenes.

15
00:00:35,180 --> 00:00:37,430
For this, you must enable versioning

16
00:00:37,430 --> 00:00:39,860
in source and destination buckets.

17
00:00:39,860 --> 00:00:42,450
And then you have either cross region replication.

18
00:00:42,450 --> 00:00:44,420
That means that you go from different regions.

19
00:00:44,420 --> 00:00:46,620
In this example, EU west one to US east one,

20
00:00:48,490 --> 00:00:50,510
and then same region replication

21
00:00:50,510 --> 00:00:52,980
SRR to go from the same regions.

22
00:00:52,980 --> 00:00:56,670
So from EU US one to EUS one.

23
00:00:56,670 --> 00:01:00,210
The buckets can also be in different AWS accounts

24
00:01:00,210 --> 00:01:02,210
and the copying is asynchronous,

25
00:01:02,210 --> 00:01:04,099
so it will happen behind the scenes.

26
00:01:04,099 --> 00:01:06,880
You must give proper IM permissions to S3 of course,

27
00:01:06,880 --> 00:01:08,180
to do the replication.

28
00:01:08,180 --> 00:01:11,880
And so the use cases of CRR are to do compliance,

29
00:01:11,880 --> 00:01:15,660
lower latency access, or replication across accounts.

30
00:01:15,660 --> 00:01:19,040
And SRR are going to be more around log aggregation

31
00:01:19,040 --> 00:01:20,420
across multiple accounts,

32
00:01:20,420 --> 00:01:24,050
live replication between production and test accounts,

33
00:01:24,050 --> 00:01:25,920
or disaster recovery.

34
00:01:25,920 --> 00:01:28,510
Now, some notes about S3 replication.

35
00:01:28,510 --> 00:01:30,790
When you enable S3 replication,

36
00:01:30,790 --> 00:01:33,520
only the new objects in your bucket are going to be

37
00:01:33,520 --> 00:01:35,460
replicated from then on.

38
00:01:35,460 --> 00:01:38,470
But if you want to replicate your existing objects,

39
00:01:38,470 --> 00:01:41,467
you have a feature called S3 batch replication,

40
00:01:41,467 --> 00:01:44,240
and it will replicate the existing objects,

41
00:01:44,240 --> 00:01:46,480
as well as any object that have failed

42
00:01:46,480 --> 00:01:49,310
the S3 replication mechanism.

43
00:01:49,310 --> 00:01:52,670
If you have a delete operation in your S3 buckets,

44
00:01:52,670 --> 00:01:54,960
then you can replicate the delete markers

45
00:01:54,960 --> 00:01:56,860
from source to the target bucket.

46
00:01:56,860 --> 00:01:58,790
And this is an optional setting.

47
00:01:58,790 --> 00:02:02,400
And if you have a deletion for a specific version ID,

48
00:02:02,400 --> 00:02:05,250
they're not replicated to avoid malicious deletes

49
00:02:05,250 --> 00:02:08,729
and for someone to delete data permanently in your buckets.

50
00:02:08,729 --> 00:02:11,800
And finally, there is no chaining of replication.

51
00:02:11,800 --> 00:02:14,680
So if bucket one has replication into bucket two,

52
00:02:14,680 --> 00:02:17,300
and bucket two has replication into bucket three,

53
00:02:17,300 --> 00:02:20,000
then the objects of bucket one are not going to be

54
00:02:20,000 --> 00:02:22,290
replicated to bucket three.

55
00:02:22,290 --> 00:02:24,540
Okay, that's it for S3 replication.

56
00:02:24,540 --> 00:02:25,540
I hope you liked it,

57
00:02:25,540 --> 00:02:27,490
and I will see you in the next lecture.

