1 00:00:00,320 --> 00:00:01,320 So, in this account, 2 00:00:01,320 --> 00:00:03,520 we're going to make sure to spend the least amount of money 3 00:00:03,520 --> 00:00:04,830 or no money, and I will let you know 4 00:00:04,830 --> 00:00:06,260 when something will cost you some money. 5 00:00:06,260 --> 00:00:07,093 But nonetheless, 6 00:00:07,093 --> 00:00:09,630 it is a good idea to set up a billing budget, 7 00:00:09,630 --> 00:00:12,740 so that we know when we go over spending some money 8 00:00:12,740 --> 00:00:14,840 and we can get alerted in case of that. 9 00:00:14,840 --> 00:00:17,620 So, what I'm going to do is click on my account 10 00:00:17,620 --> 00:00:19,990 and then click on my billing dashboard. 11 00:00:19,990 --> 00:00:20,830 Now, as you can see, 12 00:00:20,830 --> 00:00:22,260 I need permissions. 13 00:00:22,260 --> 00:00:25,380 And this is because I'm logged in as IAM user on my account, 14 00:00:25,380 --> 00:00:27,330 and we need to change something on the root account 15 00:00:27,330 --> 00:00:29,750 before we get access with IAM users, 16 00:00:29,750 --> 00:00:31,070 even administrators, 17 00:00:31,070 --> 00:00:33,810 to the billing and cost management dashboard. 18 00:00:33,810 --> 00:00:34,850 So, to solve this, 19 00:00:34,850 --> 00:00:36,830 I logged in as my root account. 20 00:00:36,830 --> 00:00:37,663 So, as you can see now, 21 00:00:37,663 --> 00:00:38,770 it just says my account number. 22 00:00:38,770 --> 00:00:39,820 Doesn't say the IAM user, 23 00:00:39,820 --> 00:00:41,480 so I'm logged in as my root account. 24 00:00:41,480 --> 00:00:42,980 And then I click on my account. 25 00:00:42,980 --> 00:00:44,470 So, you need to be on root account to do this. 26 00:00:44,470 --> 00:00:46,710 You scroll down and you're going to find 27 00:00:46,710 --> 00:00:49,620 this one setting called IAM user and role access 28 00:00:49,620 --> 00:00:51,440 to billing information. 29 00:00:51,440 --> 00:00:54,460 And we'll edit this and we'll activate IAM access. 30 00:00:54,460 --> 00:00:57,830 And this will allow IAM users who are administrators 31 00:00:57,830 --> 00:00:59,550 to access billing data. 32 00:00:59,550 --> 00:01:00,383 If you don't want that, 33 00:01:00,383 --> 00:01:02,660 you can also set up a billing alarm using the root account 34 00:01:02,660 --> 00:01:03,520 if you want it to. 35 00:01:03,520 --> 00:01:04,352 But I want to show you how 36 00:01:04,352 --> 00:01:06,200 to set up a billing alarm using an IAM user 37 00:01:06,200 --> 00:01:08,250 in case this is something you want it to do. 38 00:01:08,250 --> 00:01:10,523 So, once the setting is activated, 39 00:01:11,780 --> 00:01:14,490 you can go back into your IAM user 40 00:01:14,490 --> 00:01:17,100 and then refresh this page, 41 00:01:17,100 --> 00:01:17,933 and you have access 42 00:01:17,933 --> 00:01:20,420 to your billing and cost management dashboard. 43 00:01:20,420 --> 00:01:23,710 Next, let's have a look at how to read an AWS bill. 44 00:01:23,710 --> 00:01:26,340 So, if I take the bill for October 2021, 45 00:01:26,340 --> 00:01:31,340 as we can see, I paid $4.24 for my account. 46 00:01:31,430 --> 00:01:34,160 And when you start accruing charges for your accounts, 47 00:01:34,160 --> 00:01:36,770 it needs, you need to be able to understand how 48 00:01:36,770 --> 00:01:39,550 to figure out which service did incur some charges, 49 00:01:39,550 --> 00:01:41,540 where in which region, and how. 50 00:01:41,540 --> 00:01:43,410 So, if we look at the total service charges 51 00:01:43,410 --> 00:01:46,070 and these will be updated on daily basis in your account, 52 00:01:46,070 --> 00:01:47,160 so you can look at any month, 53 00:01:47,160 --> 00:01:48,510 even the current month. 54 00:01:48,510 --> 00:01:49,343 Then as we can see, 55 00:01:49,343 --> 00:01:53,123 for example, I have under elastic compute cloud $2.18. 56 00:01:54,160 --> 00:01:56,250 And it looks like in the Frankfurt region, 57 00:01:56,250 --> 00:01:59,210 I have $2.18, whereas in the Ireland region, 58 00:01:59,210 --> 00:02:00,520 I only have zero. 59 00:02:00,520 --> 00:02:01,353 So, as we can see, 60 00:02:01,353 --> 00:02:03,790 I can draw down my analysis to Frankfurt. 61 00:02:03,790 --> 00:02:06,930 And then it gives me the breakdown of all the pricing 62 00:02:06,930 --> 00:02:09,169 of all these things based on my usage. 63 00:02:09,169 --> 00:02:10,130 And so, you can see, 64 00:02:10,130 --> 00:02:13,280 there is a NAT gateway that was running for 31 hours 65 00:02:13,280 --> 00:02:16,370 and that cost me $1.61. 66 00:02:16,370 --> 00:02:17,490 And if I scroll down, 67 00:02:17,490 --> 00:02:19,770 there was some elastic IP addresses not attached 68 00:02:19,770 --> 00:02:21,930 to an instance for 114 hours, 69 00:02:21,930 --> 00:02:25,400 which cost me $0.57 and so on. 70 00:02:25,400 --> 00:02:27,680 So, these will give you the information you need 71 00:02:27,680 --> 00:02:30,040 to be able to understand why you have some charges 72 00:02:30,040 --> 00:02:33,060 on your AWS account and turn off or delete the resources 73 00:02:33,060 --> 00:02:34,630 that are incurring you some charges. 74 00:02:34,630 --> 00:02:37,530 It's super important that you generate this skill 75 00:02:37,530 --> 00:02:39,460 and not ask me how to solve this for you. 76 00:02:39,460 --> 00:02:41,200 So again, if you have any charges, 77 00:02:41,200 --> 00:02:42,840 I will always say, 78 00:02:42,840 --> 00:02:46,540 please go to your bill and look at the bill of the month, 79 00:02:46,540 --> 00:02:47,490 of the current month. 80 00:02:47,490 --> 00:02:49,270 And then look at the details of your charges 81 00:02:49,270 --> 00:02:52,130 and understand where the service are coming from. 82 00:02:52,130 --> 00:02:54,470 And then it's up to you to understand what this means 83 00:02:54,470 --> 00:02:55,810 and what you've created, 84 00:02:55,810 --> 00:02:57,290 but this is part of your learning, okay? 85 00:02:57,290 --> 00:02:59,260 But if you follow the tutorial correctly, 86 00:02:59,260 --> 00:03:00,420 you should not have any charges, 87 00:03:00,420 --> 00:03:02,840 and as I tell you, you will have some. 88 00:03:02,840 --> 00:03:05,620 So, this is how you read the bills. 89 00:03:05,620 --> 00:03:09,350 And then another thing is that if you go to the homepage 90 00:03:10,300 --> 00:03:11,620 and that you scroll down, 91 00:03:11,620 --> 00:03:14,460 you're going to get the top free tier services by usage, 92 00:03:14,460 --> 00:03:15,870 and click on View all. 93 00:03:15,870 --> 00:03:17,550 And this is going to give you some information 94 00:03:17,550 --> 00:03:20,170 around the free, the free tier of your accounts. 95 00:03:20,170 --> 00:03:24,020 So, where you stand against the free tier for Amazon S3, 96 00:03:24,020 --> 00:03:25,670 Amazon CloudWatch, and so on. 97 00:03:25,670 --> 00:03:27,370 Which can be some very helpful information, 98 00:03:27,370 --> 00:03:31,560 again, for you to know where you stand on the free tier. 99 00:03:31,560 --> 00:03:32,393 Okay, so next, 100 00:03:32,393 --> 00:03:33,226 let's set up a budget. 101 00:03:33,226 --> 00:03:34,397 So, on the left hand side, 102 00:03:34,397 --> 00:03:35,810 I'm going to the budget console. 103 00:03:35,810 --> 00:03:37,430 I will create a budget. 104 00:03:37,430 --> 00:03:38,670 And you have different kinds of budgets 105 00:03:38,670 --> 00:03:39,620 but to keep it simple, 106 00:03:39,620 --> 00:03:41,950 we're going to create a cost budget. 107 00:03:41,950 --> 00:03:43,180 Click on Next. 108 00:03:43,180 --> 00:03:45,760 And then when to set up a budget amount. 109 00:03:45,760 --> 00:03:48,010 So, it's going to be a monthly budget, 110 00:03:48,010 --> 00:03:48,910 recurring. 111 00:03:48,910 --> 00:03:50,670 It starts in November. 112 00:03:50,670 --> 00:03:52,030 And it's a fixed budget, 113 00:03:52,030 --> 00:03:52,890 and let's say, 114 00:03:52,890 --> 00:03:55,680 we wanna spend no more than $10 on this course. 115 00:03:55,680 --> 00:03:56,513 Now, again, 116 00:03:56,513 --> 00:03:58,650 I will try to make sure to tell you 117 00:03:58,650 --> 00:04:00,840 whenever you are about to incur some cost, 118 00:04:00,840 --> 00:04:03,430 but sometimes it happens that some students get more cost 119 00:04:03,430 --> 00:04:04,910 because well, you're just trying it out 120 00:04:04,910 --> 00:04:06,960 and sometimes you're just playing more than you should, 121 00:04:06,960 --> 00:04:07,793 but it's okay. 122 00:04:07,793 --> 00:04:10,800 So, let's put a $10 budget in this course. 123 00:04:10,800 --> 00:04:15,220 And then we'll click on Next. 124 00:04:15,220 --> 00:04:16,480 So, once you put a budget name, 125 00:04:16,480 --> 00:04:19,339 so, demo budgets, 126 00:04:19,339 --> 00:04:20,430 or course budgets. 127 00:04:20,430 --> 00:04:21,649 Here we go. 128 00:04:21,649 --> 00:04:23,150 Click on Next. 129 00:04:23,150 --> 00:04:24,360 Next, we need to configure alerts. 130 00:04:24,360 --> 00:04:26,830 So, what happens when we reach these, 131 00:04:26,830 --> 00:04:27,663 this budget. 132 00:04:27,663 --> 00:04:29,490 So, we need to create a threshold. 133 00:04:29,490 --> 00:04:30,323 So, it's add, 134 00:04:30,323 --> 00:04:32,020 or the first alert threshold. 135 00:04:32,020 --> 00:04:32,853 And let's say, 136 00:04:32,853 --> 00:04:35,680 hey, when we reach 80% of the budget amount, 137 00:04:35,680 --> 00:04:37,200 okay, the actual amount, 138 00:04:37,200 --> 00:04:38,040 then send us an email. 139 00:04:38,040 --> 00:04:40,830 So, when we have $8 of accrued charges, 140 00:04:40,830 --> 00:04:42,370 then we'll receive an email. 141 00:04:42,370 --> 00:04:46,943 And the email recipient may be stephane@example.com. 142 00:04:47,970 --> 00:04:50,690 And if we want to have a second alert, 143 00:04:50,690 --> 00:04:51,553 so we could say, for example, 144 00:04:51,553 --> 00:04:55,790 hey, when you reach 60% of the budgeted amount 145 00:04:55,790 --> 00:04:57,520 but it's a forecast. 146 00:04:57,520 --> 00:05:01,060 So, when you have $6 of forecasted budget, 147 00:05:01,060 --> 00:05:02,700 then again, send me an email. 148 00:05:02,700 --> 00:05:04,260 So, we have two thresholds. 149 00:05:04,260 --> 00:05:07,720 One that is actual cost and two that is forecast. 150 00:05:07,720 --> 00:05:09,750 So, we have both emails entered at the same time here, 151 00:05:09,750 --> 00:05:10,583 so it's perfect. 152 00:05:10,583 --> 00:05:11,416 Click on Next. 153 00:05:11,416 --> 00:05:12,570 Next, we have budget actions. 154 00:05:12,570 --> 00:05:14,300 So, what do you wanna do 155 00:05:14,300 --> 00:05:17,010 in case these thresholds are reached. 156 00:05:17,010 --> 00:05:19,230 And you can have actions but right now we don't need to. 157 00:05:19,230 --> 00:05:22,320 We just wanna receive an email and we'll be good to go. 158 00:05:22,320 --> 00:05:23,780 So, next, 159 00:05:23,780 --> 00:05:27,298 and we review everything and create this budget. 160 00:05:27,298 --> 00:05:29,450 So now, we have a course budget and we'll have, 161 00:05:29,450 --> 00:05:31,880 definitely, email alerts in case we reach 162 00:05:31,880 --> 00:05:35,740 some 80% of the actual budget or 60% of the forecast. 163 00:05:35,740 --> 00:05:37,700 And then this will allow us to control our cost 164 00:05:37,700 --> 00:05:39,810 in case you did something wrong in this course, 165 00:05:39,810 --> 00:05:40,643 okay? 166 00:05:40,643 --> 00:05:41,580 So, that's it for this lecture. 167 00:05:41,580 --> 00:05:44,530 I hope you liked it and I will see you in the next lecture.