Step by step instructions to Create an Amazon AWS Billing Alarm
Since you have set up your AWS account and enabled multi-factor authentication, it’s time to set up an AWS billing alarm in order to be notified whenever your account reaches a certain limit.
In this example, going to set up a charging caution that will send an email at whatever point my AWS charging goes above $10 USD.
This is a 2 stage process whereby we initially make an email notice with the Simple Notification Service (SNS) trailed by making our charging caution inside Cloud Watch.
Setup SNS E-Mail Notification
Once you have signed in to your AWS console, click on services, and in the search files, type in sns. Click on the Simple Notification Service.
Next, click on ‘Topics’ within the left-hand side menu.
Give your topic a name and display name. In my case, I used ‘Billing-Alarm-10-USD’ for the Name and ‘Billing Alarm 10 USD’ for the Display name. Click ‘Create topic’ at the bottom of the page.
You will now see that your AWS billing alarm topic has been created successfully. Displayed are some details. If you already have a lot of topics setup, you will want to take note of the ARN value, as we will be using this in the next step.
Within the same window as the screenshot above, click on the orange button entitled ‘Create Subscription’? Enter in the word ‘Billing’ within the Topic ARN field, the ARN value for your topic will automatically pop up. Select your Billing topic.
Under Protocol, select Email and within the Endpoint field, type in the email address where you will receive the Billing alarm whenever costs reach above $10 USD. Click on ‘Create Subscription’ below.
Your email subscription is now setup, and you can see within the Details window that it is a member of the Topic we created earlier called ‘Billing-Alarm-10-USD’
Shortly, you will receive an email asking that you affirm your email. Basically click on the connection gave which will affirm your membership. Snap ‘Points’ inside the left-hand side menu. You will see that your subscribed email address is now confirmed.
In the event that you commit an error on the email address or don’t tap on the connection in the affirmation email, AWS will expel the subscription inside 3 days. You can’t physically delete it. In any case, you can manually delete a confirmed subscriber.
Now it’s time to head on over to Cloud Watch. Click on Services at the top of the page and within the search field type in ‘cloud watch’. Click on Cloud Watch once it automatically pops up.
Setup Cloud Watch Billing Alarm
Once you’re in Cloud Watch, click on ‘Alarms’ on the left-hand side.
Click the orange button, ‘Create alarm’ at the top right-hand side.
Use the following settings for the metric section:
Metric Name: Estimated Charges
Currency: USD (Change for your preference)
Period: 6 hours
Use the following settings for the Conditions:
Threshold Type: Static
Whenever Estimated Charges is..: Greater/Equal
than…: 10 (Optionally change this to the threshold you want)
For step 2, we configure the action. Use the following settings:
Whenever this alarm state is…: in Alarm
Select an SNS topic: Select an existing SNS topic
Send a notification to…: Billing-Alarm-10-USD
We now define an Alarm name for our alarm, along with an optional description. Our Alarm name will be ‘Billing-Over-10-USD’ and for the description, we will use ‘AWS Billing is greater than $10 USD’
You are now presented with a summary of the settings you have used to create your Billing Alarm. If you need to change anything you can click on the Edit button for that section or click on the previous button. If you are happy with all your settings click ‘Create Alarm’
Your Billing Alarm has now been created and is gathering data.
After a few hours, when your Billing Alarm has gathered enough information, it will change status from INSUFFICIENT to OK, as should be obvious right now
The screen capture below.
Enable Free Tier Usage Alarms
The next alert we will arrange is valuable in the event that you are utilizing the AWS complementary plan. Empowering this choice will inform you by means of email when you are near arriving at your month to month complementary plan limit or on the off chance that it has been surpassed.
Snap-on Services at the upper right of the screen and quest for Billing. Snap-on the Billing administration. Inside the Billing administration, click on ‘Charging inclinations’ under the Preferences segment on the right-hand side.
Tick the container by ‘Get Free Tier Usage Alerts’ and enter an email address where you wish to get the alarms. When you are done tap the ‘Spare inclinations’ catch.