1 00:00:00,120 --> 00:00:01,680 ‫Now we are getting into 2 00:00:01,680 --> 00:00:03,990 ‫the monitoring aspect of our billing. 3 00:00:03,990 --> 00:00:06,780 ‫So we've seen about billing alarm and billing metric. 4 00:00:06,780 --> 00:00:09,660 ‫So we know that the billing metric is only stored 5 00:00:09,660 --> 00:00:12,810 ‫in the region us-east-1 in CloudWatch, 6 00:00:12,810 --> 00:00:15,270 ‫and this will be a nice graph that looks like this. 7 00:00:15,270 --> 00:00:17,770 ‫And then the data in the us-east-1 8 00:00:18,918 --> 00:00:22,470 ‫it is aggregated for all your regions in AWS. 9 00:00:22,470 --> 00:00:24,720 ‫It corresponds to the actual cost, 10 00:00:24,720 --> 00:00:26,850 ‫not for the projected cost. 11 00:00:26,850 --> 00:00:28,410 ‫And then you can create the billing alarm 12 00:00:28,410 --> 00:00:29,790 ‫on top of the billing metric. 13 00:00:29,790 --> 00:00:30,750 ‫It's a simple alarm. 14 00:00:30,750 --> 00:00:32,370 ‫It's not as powerful as budgets 15 00:00:32,370 --> 00:00:35,010 ‫as we'll see in the next slide, 16 00:00:35,010 --> 00:00:37,530 ‫but this will be helpful to send you an email notification, 17 00:00:37,530 --> 00:00:40,860 ‫for example, in case you go over a certain threshold. 18 00:00:40,860 --> 00:00:44,040 ‫And on the graph right here I set my threshold to $70. 19 00:00:44,040 --> 00:00:46,740 ‫And so as soon as I crossed the $70, 20 00:00:46,740 --> 00:00:48,750 ‫I received an email notification. 21 00:00:48,750 --> 00:00:51,510 ‫So we've seen billing alarms, so I won't go over it again. 22 00:00:51,510 --> 00:00:52,470 ‫Next we have budgets. 23 00:00:52,470 --> 00:00:53,850 ‫We haven't seen budgets yet. 24 00:00:53,850 --> 00:00:56,550 ‫So budgets are very helpful to send alarms 25 00:00:56,550 --> 00:00:58,470 ‫when costs exceed the budget, 26 00:00:58,470 --> 00:01:01,770 ‫or when a forecast also exceeds the budget. 27 00:01:01,770 --> 00:01:04,020 ‫So we have four types of budgets we can create, 28 00:01:04,020 --> 00:01:07,470 ‫usage, cost, reservation, and savings plan. 29 00:01:07,470 --> 00:01:08,970 ‫And for Reserved Instances 30 00:01:08,970 --> 00:01:11,250 ‫it can track the utilization of them. 31 00:01:11,250 --> 00:01:13,620 ‫It supports EC2 Reserved Instances, 32 00:01:13,620 --> 00:01:17,010 ‫ElastiCache Reserved Instances, RDS and Redshift. 33 00:01:17,010 --> 00:01:20,070 ‫And it supports up to five SNS notifications per budget. 34 00:01:20,070 --> 00:01:23,517 ‫So we can send emails, trigger another function, and so on. 35 00:01:23,517 --> 00:01:26,970 ‫And we can filter by service, linked account, tag, 36 00:01:26,970 --> 00:01:29,793 ‫purchase option, instance type, region, AZ, 37 00:01:30,790 --> 00:01:33,000 ‫API Operation, et cetera, et cetera. 38 00:01:33,000 --> 00:01:34,650 ‫You actually get the same operations 39 00:01:34,650 --> 00:01:36,030 ‫as in the cost explorer, 40 00:01:36,030 --> 00:01:38,310 ‫and their first two budgets are going to be free, 41 00:01:38,310 --> 00:01:42,210 ‫then you're going to pay $0.02 per day per budget. 42 00:01:42,210 --> 00:01:45,570 ‫So for the budget we can just in the console enter Budgets 43 00:01:45,570 --> 00:01:48,300 ‫and we are taken into the budget console. 44 00:01:48,300 --> 00:01:50,100 ‫So we can see we have one budget we have created 45 00:01:50,100 --> 00:01:52,740 ‫from before called Don't go over $10. 46 00:01:52,740 --> 00:01:54,360 ‫And we see we exceeded it. 47 00:01:54,360 --> 00:01:55,260 ‫This was the budget, 48 00:01:55,260 --> 00:01:58,020 ‫this is the amount used and the forecasted amount, 49 00:01:58,020 --> 00:01:59,880 ‫and the current versus budgeted amount. 50 00:01:59,880 --> 00:02:02,820 ‫So it's just because I've been using my account a lot, 51 00:02:02,820 --> 00:02:04,230 ‫so I went over it. 52 00:02:04,230 --> 00:02:07,170 ‫But we could go and create our own budget if we wanted to. 53 00:02:07,170 --> 00:02:08,250 ‫And we have two options. 54 00:02:08,250 --> 00:02:12,150 ‫Either we use a template and we have one of these options, 55 00:02:12,150 --> 00:02:14,610 ‫or we do and want to customize the budget, 56 00:02:14,610 --> 00:02:16,380 ‫and we have the four options 57 00:02:16,380 --> 00:02:17,370 ‫that I discussed with you before. 58 00:02:17,370 --> 00:02:20,430 ‫So cost budget, usage, savings plan, 59 00:02:20,430 --> 00:02:22,470 ‫and reservation budget. 60 00:02:22,470 --> 00:02:25,290 ‫So just to go again over the cost budgets, 61 00:02:25,290 --> 00:02:26,640 ‫if I click on it 62 00:02:26,640 --> 00:02:30,450 ‫I'm able to have a look at my cost data over time. 63 00:02:30,450 --> 00:02:32,040 ‫Then I can enter my budget name. 64 00:02:32,040 --> 00:02:33,423 ‫So, DemoBudget. 65 00:02:35,370 --> 00:02:36,480 ‫Then we can set the period. 66 00:02:36,480 --> 00:02:39,480 ‫Is it a monthly budget, a daily, quarterly, or annually? 67 00:02:39,480 --> 00:02:41,010 ‫Is it recurring or expiring? 68 00:02:41,010 --> 00:02:42,810 ‫And when does it start and when does it end? 69 00:02:42,810 --> 00:02:47,070 ‫So it's, say it's a fixed amount of $10 again. 70 00:02:47,070 --> 00:02:49,620 ‫And then we can filter the budget scope. 71 00:02:49,620 --> 00:02:53,580 ‫So we can have all AWS services if we wanted to, 72 00:02:53,580 --> 00:02:57,960 ‫or we can filter for specific AWS cost dimensions. 73 00:02:57,960 --> 00:03:02,520 ‫For example, we just want to have a look at a filter. 74 00:03:02,520 --> 00:03:06,360 ‫And the filter being that we want the service 75 00:03:06,360 --> 00:03:10,173 ‫to be only EC2, so elastic. 76 00:03:12,510 --> 00:03:13,620 ‫EC2-Other, for example. 77 00:03:13,620 --> 00:03:16,530 ‫Or if we go here, we can have a look at other things 78 00:03:16,530 --> 00:03:18,510 ‫such as, for example, the Key Management Service. 79 00:03:18,510 --> 00:03:20,550 ‫So you can apply this filter 80 00:03:20,550 --> 00:03:22,890 ‫and then see what is your actual budget 81 00:03:22,890 --> 00:03:24,270 ‫regarding these two services. 82 00:03:24,270 --> 00:03:27,300 ‫So we can definitely drill down into our budget 83 00:03:27,300 --> 00:03:30,660 ‫and make it the way we want to, which is super nice. 84 00:03:30,660 --> 00:03:32,640 ‫Then we can click on Next. 85 00:03:32,640 --> 00:03:34,800 ‫And then we have budget alerts. 86 00:03:34,800 --> 00:03:37,687 ‫So we can add an alert, a threshold, and, for example, say, 87 00:03:37,687 --> 00:03:41,850 ‫"Hey, at 80% of the actual budgeted amount, 88 00:03:41,850 --> 00:03:44,220 ‫then send me an email." 89 00:03:44,220 --> 00:03:46,410 ‫And we can set up emails right here. 90 00:03:46,410 --> 00:03:47,917 ‫Or we can say, for example, and I can say, 91 00:03:47,917 --> 00:03:50,487 ‫"stephane@example.com." 92 00:03:52,560 --> 00:03:54,720 ‫And also we can add another one. 93 00:03:54,720 --> 00:03:59,720 ‫For example, say, "At 80% of the forecasted amounts 94 00:04:00,810 --> 00:04:02,430 ‫right here on the right hand side, 95 00:04:02,430 --> 00:04:06,090 ‫then again, send me an email at stephane@example.com." 96 00:04:06,090 --> 00:04:08,100 ‫And the cool thing is that here on this graph 97 00:04:08,100 --> 00:04:10,710 ‫you can see where the thresholds lie 98 00:04:10,710 --> 00:04:12,810 ‫and then where we are at, and so on. 99 00:04:12,810 --> 00:04:15,330 ‫We can also, if you wanted to, drill down all these costs 100 00:04:15,330 --> 00:04:17,790 ‫in Cost Explorer because the two things are linked. 101 00:04:17,790 --> 00:04:18,810 ‫So that's it. 102 00:04:18,810 --> 00:04:20,430 ‫I won't go over creating that budget, 103 00:04:20,430 --> 00:04:22,440 ‫but we've seen all the options 104 00:04:22,440 --> 00:04:25,650 ‫and now we understand how AWS Budgets can be used. 105 00:04:25,650 --> 00:04:26,910 ‫So I hope you liked it, 106 00:04:26,910 --> 00:04:29,013 ‫and I will see you in the next lecture.