Review billing dashboard and set up a billing alarm to avoid paying too much for AWS

Tomasz Łakomy
InstructorTomasz Łakomy
Share this video with your friends

Social Share Links

Send Tweet
Published 5 years ago
Updated a year ago

AWS free tier is awesome because we get to experiment with various services (like Lambda, DynamoDB, S3 etc.) and not having to pay for anything.

Unless we go over the limit and notice that instead of $0 we have to pay $100, which is not pleasant.

In this lesson we're going to learn how to review the AWS Billing & Cost Management Dashboard and how to set up a billing alarm in order to be notified once we start paying more than $5 per month of our AWS account

Instructor: [0:00] When experimenting with AWS, we may want to stay within the free tier in order to avoid paying for the service. In order to find out how much are we paying for the services that we use today, click on your account name and go to billing dashboard. Otherwise, you can search for billing in the search box over here.

[0:15] After choosing billing, we are going to be redirected to a billing and cost management dashboard. As we can see, currently I'm not spending much on AWS. We can see on this graph over here that my bill for the last month, and also for the current month, is exactly zero dollars, because on this account, I am trying to stay within the free tier.

[0:32] In order to find out how much are you using from the free tier, you can checkout top free tier services by usage table. Here, we can see that I am using .04 percent of the free Amazon as free storage, and for instance, I've also used .03 percent of Free AWS Lambda function invocation. But this might change.

[0:50] What I would like to do is to avoid excess charges whenever my services start to get a bit more traffic and attention. In order to do that, we're going to set up a billing alarm. First up, click on Services and search for "Cloud Watch," and click. We are going to see the Cloud Watch console.

[1:06] Next, click on the Billing section in the menu over here, and here we can create a billing alarm. By default, you get 10 free alarms and 1,000 free email notifications each month as a part of AWS free tier.

[1:17] To create an alarm, first up, we have to track a metric. This alarm is going to track an estimated charges metric in American dollars. Whenever this value is going to be greater than, for instance, five dollars, I would like to trigger an alarm, because that might mean that I'm using something that I may not actually need, and I would like to avoid paying too much for AWS on this free-tier account.

[1:37] Next up, click on Next, and here we're going to set up a notification. Whenever this alarm is in "Alarm" state, that means that I'm paying over five dollars. I would like to send a notification to my email.

[1:48] Next, let's create a new Simple Notification Service topic. I'm going to call it "Paying Too Much for AWS Alarm," and I'm going to send it to my email. Next, we're going to click on Create Topic.

[1:58] Once a topic is created, go ahead, click on Next, and define an alarm name. I'm going to use the exactly the same name I have for the topic, so "I'm Paying Too Much for AWS" and click on Next.

[2:08] Here I can review my alarm. Here I'm going to see that I'm tracking the estimated charges. Whenever the estimated charges is greater than five dollars, I would like to trigger this alarm, sending a notification to my email and go ahead and create an alarm.

[2:22] This alarm is not yet 100 percent active, because it's pending confirmation. As we can see over here, Amazon SNS doesn't send messages to an endpoint until the subscription is confirmed, so open up your inbox and click on the link in the email.

egghead
egghead

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today