AWS

How to create a billing alarm on AWS CloudWatch (Step by Step)

How to create a billing alarm on AWS CloudWatch

The main reason why people still choose AWS over other cloud providers is because of its “free tier for full 1 year“. Although it has some limits so, small developers of small start-ups need an “Easy to Start” server of other internet services for their product for testing purpose. CloudWatch is one of the important services offered by AWS, and today we are going to learn about “billing alarm on AWS CloudWatch“.

Question: Why do we need to create a billing alarm on AWS CloudWatch?

Answer: We will understand this with and example:

  • Say you own a start-up company and currently have deployed your application on AWS using the “free tier” services.
  • But “free tier” services have limits.
  • What if your application is currently attending users which leads to the exhaustion of these “free tier limits“.
  • Then it is easy for you manager funding as required if you know about that say your account has used the “credits over $50” and you will be informed via an E-mail.
  • This is where creating a billing alarm using the aws’s cloudwatch service comes in handy.

Step 1: Enable the Billing Alarm option on AWS

From the AWS dashboard, search for “billing” as shown in the picture below, and select it.

Search and Select the Billing service from the AWS console
Search and Select the “Billing” service from the AWS console

After that, you will be seeing a screen like this on your side as well, from there select the “Billing preferences” option as shown in the screenshot below.

Select billing from billing and cost management dashboard on aws
Select “billing preferences” from “billing and cost management” dashboard on aws

Now you will be seeing something like “Receive Billing Alerts” option with a checkbox under the preferences.

Check the box, as shown below and click on “Save preferences“.

Check the box for Receive Billing Alerts and hit Save preferences
Check the box for “Receive Billing Alerts” and hit “Save preferences”

Step 2: Select the CloudWatch service and create an alarm

Click on the drop-down menu for services, and select the “CloudWatch” service under “Management & Governance” tab, for reference check the image below.

Select the cloudwatch service under management and governance
Select the “cloudwatch” service under “management and governance”

Now, you will be seeing some options like this (below), from there click on the “Create Alarm” option.

From cloudwatch dashboard click on create alarm
From cloudwatch dashboard click on “create alarm”

Further, provide the limit for money, as we did “exceed = $50” and also provide an “E-mail address” also for receiving the alerts from this AWS account, then click on “Create Alarm“.

Define the billing Alarm
Define the billing Alarm

You will be prompted for “E-mail Address verification“, go to your provided “E-mail” dashboard and from there you will seeing an E-mail from AWS, open it.

Waiting for email address verification
Waiting for “email address verification”

After opening the E-mail, you will have to click on “confirm subscription” link, as shown below.

Click on cnfirm subscription inside the email sent to you by aws
Click on “confirm subscription” inside the email sent to you by aws

After clicking on the “confirm subscription” link you will be redirected to a link and you will be seeing something like this, as shown in the image below.

Subscription confirmed message
“Subscription confirmed” message

Come back to you AWS CloudWatch dashboard, and you will see a “Green Tick” which means that your provided E-mail ID has been verified for receiving “Billing Alerts“, and now click on “View Alarm“.

Email for the alarm has been confirm
Email for the “alarm” has been confirm

Finally, you will be seeing a screen similar looking to the shown below, and if you click on the alarm the more meta-data can be gathered.

New billing alarm has been successfully created
New “billing alarm” has been successfully created

More on AWS:

Comment here