1 00:00:00,330 --> 00:00:03,060 Okay, so let's practice using AWS Backups. 2 00:00:03,060 --> 00:00:07,180 So I'm going to type aws backup into the search bar 3 00:00:07,180 --> 00:00:09,270 and open the Backup service. 4 00:00:09,270 --> 00:00:11,630 So we are going to create our first Backup plan. 5 00:00:11,630 --> 00:00:13,730 So I'm going to click on Create Backup plan. 6 00:00:13,730 --> 00:00:14,810 And we have three options, 7 00:00:14,810 --> 00:00:17,750 either we Start with a template, or we Build a new plan, 8 00:00:17,750 --> 00:00:19,600 or we Define a plan using JSON. 9 00:00:19,600 --> 00:00:22,040 So the simplest for us is to Start with a template. 10 00:00:22,040 --> 00:00:23,190 And we can have different templates, 11 00:00:23,190 --> 00:00:25,730 for example, Daily-35day-Retention, 12 00:00:25,730 --> 00:00:27,790 Daily-Monthly-1yr-Retention and so on. 13 00:00:27,790 --> 00:00:30,430 So let's go with Daily-Monthly-1yr-Retention 14 00:00:30,430 --> 00:00:31,730 and I'll call it TestPlan. 15 00:00:33,560 --> 00:00:35,400 Next, we can look at Backup rules. 16 00:00:35,400 --> 00:00:37,420 And you see we can have many backup rules 17 00:00:37,420 --> 00:00:38,810 in our Backup rules. 18 00:00:38,810 --> 00:00:42,440 So we have two, we have DailyBackups and Monthly. 19 00:00:42,440 --> 00:00:44,440 So if I click on DailyBackup, 20 00:00:44,440 --> 00:00:46,040 as we can see, there's a rule name. 21 00:00:46,040 --> 00:00:48,160 The Backup vault is wherever the backup is going. 22 00:00:48,160 --> 00:00:50,510 So we can use a default one by AWS 23 00:00:50,510 --> 00:00:52,130 or we can create our own new Backup vault 24 00:00:52,130 --> 00:00:53,360 if we wanted to. 25 00:00:53,360 --> 00:00:55,700 The Backup frequency, the Backup windows, 26 00:00:55,700 --> 00:00:58,810 so when to start which is 5:00 AM, UTC, 27 00:00:58,810 --> 00:01:00,250 start within eight hours. 28 00:01:00,250 --> 00:01:01,960 But we can customize it if you want, 29 00:01:01,960 --> 00:01:04,500 whether or not you want to Transition to cold storage, 30 00:01:04,500 --> 00:01:07,250 Never, after some Days, Weeks, Months, or Years. 31 00:01:07,250 --> 00:01:08,740 And the retention period of your backup, 32 00:01:08,740 --> 00:01:11,650 for example, this one is retained for five weeks. 33 00:01:11,650 --> 00:01:13,820 Then we can also copy these backups 34 00:01:13,820 --> 00:01:15,370 to a specific destination, 35 00:01:15,370 --> 00:01:19,170 for example, another region for disaster recovery purposes. 36 00:01:19,170 --> 00:01:21,000 So I'm going to save this backup rule. 37 00:01:21,000 --> 00:01:23,400 And for Monthly, while we get this similar thing, 38 00:01:23,400 --> 00:01:25,770 so it's going into the Default Backup vault. 39 00:01:25,770 --> 00:01:28,780 It's monthly on day one of each month 40 00:01:28,780 --> 00:01:30,400 and the rest looks the same. 41 00:01:30,400 --> 00:01:31,890 So we actually transitioned these ones 42 00:01:31,890 --> 00:01:33,630 to cold storage after one month, 43 00:01:33,630 --> 00:01:35,913 and then we retain them for one year. 44 00:01:37,010 --> 00:01:39,510 Okay, so we have these ready 45 00:01:39,510 --> 00:01:43,350 and then I can just scroll down and click on Create plan. 46 00:01:43,350 --> 00:01:46,270 So now our TestPlan is created 47 00:01:46,270 --> 00:01:48,290 and we need to assign resources to it. 48 00:01:48,290 --> 00:01:50,690 So I'm going to click on Assign resources 49 00:01:50,690 --> 00:01:54,307 and I'll just call it TestAssignment. 50 00:01:54,307 --> 00:01:56,680 And here we can choose our IAM role 51 00:01:56,680 --> 00:01:57,660 to perform these backups. 52 00:01:57,660 --> 00:01:59,210 So let's use the Default role, 53 00:01:59,210 --> 00:02:00,610 but we can create our own IAM role 54 00:02:00,610 --> 00:02:01,620 if we wanted to. 55 00:02:01,620 --> 00:02:02,610 And because we don't have 56 00:02:02,610 --> 00:02:05,740 an AWS Backup default role already, 57 00:02:05,740 --> 00:02:07,230 one is going to be created for us 58 00:02:07,230 --> 00:02:08,500 with the correct permissions. 59 00:02:08,500 --> 00:02:09,820 So that's perfect. 60 00:02:09,820 --> 00:02:11,430 And then to assign resources, 61 00:02:11,430 --> 00:02:13,630 we can either assign them a Resource ID, 62 00:02:13,630 --> 00:02:16,962 for example, saying hey, I want this DynamoDB table 63 00:02:16,962 --> 00:02:19,490 with this resource ID to be backed up 64 00:02:19,490 --> 00:02:23,080 or this EC2 Instance or this EBS volume. 65 00:02:23,080 --> 00:02:24,480 Or you can say by tags, 66 00:02:24,480 --> 00:02:29,480 for example, I can say Environment and then Production. 67 00:02:30,480 --> 00:02:31,780 And so anything that will be tagged 68 00:02:31,780 --> 00:02:34,600 with Environment Production is going to be backed up. 69 00:02:34,600 --> 00:02:36,120 So I'm going to keep these tags. 70 00:02:36,120 --> 00:02:38,260 And so anything that will be tagged within AWS 71 00:02:38,260 --> 00:02:40,500 with these tags is going to be backed up. 72 00:02:40,500 --> 00:02:42,280 So click on Assign resources. 73 00:02:42,280 --> 00:02:44,830 And so just to make it very, very clear, 74 00:02:44,830 --> 00:02:47,100 if I went into EC2 75 00:02:47,100 --> 00:02:50,030 and I were to create an EBS Volume 76 00:02:51,610 --> 00:02:53,170 and that volume would have, 77 00:02:53,170 --> 00:02:55,580 so for example, one gigabyte. 78 00:02:55,580 --> 00:03:00,580 And then the key would be Environment Production, 79 00:03:00,960 --> 00:03:03,480 then this would be automatically backed up 80 00:03:03,480 --> 00:03:04,450 by my backup plan, 81 00:03:04,450 --> 00:03:06,240 because it has the correct tags. 82 00:03:06,240 --> 00:03:09,500 So if you look at our Volume right now, and we go into Tags, 83 00:03:09,500 --> 00:03:11,990 as we can see, it has Environment Production, 84 00:03:11,990 --> 00:03:14,670 which corresponds to the tags that I've set up 85 00:03:14,670 --> 00:03:16,140 for my backup plan. 86 00:03:16,140 --> 00:03:18,800 Okay, so this is the assignments right here. 87 00:03:18,800 --> 00:03:21,980 And we can have multiple assignments as well in here. 88 00:03:21,980 --> 00:03:23,800 Okay, and then that's it. 89 00:03:23,800 --> 00:03:26,340 The backup plan is going to run automatically. 90 00:03:26,340 --> 00:03:29,840 And then the backups are going appear in my backup vaults. 91 00:03:29,840 --> 00:03:34,030 Okay, the jobs are going to be scheduled and happening. 92 00:03:34,030 --> 00:03:36,340 So we have Backup jobs, Restore jobs, and Copy jobs 93 00:03:36,340 --> 00:03:37,720 if we wanted to. 94 00:03:37,720 --> 00:03:39,640 And then we can look at the Settings. 95 00:03:39,640 --> 00:03:41,140 So the settings is around, 96 00:03:41,140 --> 00:03:42,700 do you want to have Backup policies, 97 00:03:42,700 --> 00:03:43,820 Cross-account monitoring, 98 00:03:43,820 --> 00:03:45,720 Cross-account backups, and so on. 99 00:03:45,720 --> 00:03:48,990 But we've seen the basics of how backups work 100 00:03:48,990 --> 00:03:50,040 and so that's it. 101 00:03:50,040 --> 00:03:51,910 I wanted to show you all this, okay? 102 00:03:51,910 --> 00:03:53,190 That's all you need to know, 103 00:03:53,190 --> 00:03:54,570 and now I'm going to delete everything. 104 00:03:54,570 --> 00:03:57,880 So for that, please make sure to delete your EBS volume 105 00:03:57,880 --> 00:03:59,260 or you could wait a day if you wanted to see 106 00:03:59,260 --> 00:04:01,310 if the backups work, obviously. 107 00:04:01,310 --> 00:04:02,590 And then when you're done, 108 00:04:02,590 --> 00:04:04,890 you take the assignment and you Delete it. 109 00:04:04,890 --> 00:04:08,683 So type the name of the assignment in here. 110 00:04:10,680 --> 00:04:12,260 And then for the daily backup rules, 111 00:04:12,260 --> 00:04:14,840 we can Delete them or delete directly the backup plan. 112 00:04:14,840 --> 00:04:17,440 And for this, just enter the name of the backup plan 113 00:04:17,440 --> 00:04:19,031 and press Delete. 114 00:04:19,031 --> 00:04:19,865 And that's it. 115 00:04:19,865 --> 00:04:20,697 We've seen backups. 116 00:04:20,697 --> 00:04:21,531 I hope you liked it. 117 00:04:21,531 --> 00:04:23,200 And I will see you in the next lecture.