« Monitor your AWS bill with alerts.
January 24, 2020
BillingAWSBudgetAlerts
I’ve worked with a number of clients using AWS and I’m always surprised by the number of companies that don’t have billing alerts enabled. One of the first things you want to do when you start using an AWS account, is create billing alerts.
AWS lets you plan service usage and costs, and get alerts when you cross a threshold (percentage) of a configured budget.
You can configure a budget manually by navigating to My Billing Dashboard
> Budgets
, or use a CloudFormation template such as the one below.
resources:Description: "Set billing/budget alerts for the AWS account."Resources:MonthlyBudget:Type: "AWS::Budgets::Budget"Properties:Budget:BudgetName: MonthlyBudgetType: COSTTimeUnit: MONTHLYBudgetLimit:Amount: 100Unit: USDNotificationsWithSubscribers:- Notification:NotificationType: ACTUALComparisonOperator: GREATER_THANThreshold: 80 # 1st alert sent when % of Monthly total is spent.Subscribers:- SubscriptionType: EMAILAddress: email@example.com- Notification:NotificationType: ACTUALComparisonOperator: GREATER_THANThreshold: 95 # 2nd alert sent when % of Monthly total is spent.Subscribers:- SubscriptionType: EMAILAddress: email@example.com
Here’s a link to a Serverless framework project to do the same.
https://github.com/murali44/AWSAccountBillingAlerts
The first 2 budgets are free. Any budget beyond that costs $7.30 per year. See here for details.