Created
December 30, 2022 18:20
-
-
Save jorgetovar/e23084202380fcb19e40cd689fe8097f to your computer and use it in GitHub Desktop.
CloudFormation template to setting up alert billing in AWS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
AWSTemplateFormatVersion: "2010-09-09" | |
Description: "Simple budget example" | |
Parameters: | |
Email: | |
Type: String | |
Default: email@example.com | |
Description: Please enter the email address to which budget notifications should be addressed. | |
Resources: | |
BasicBudget: | |
Type: "AWS::Budgets::Budget" | |
Properties: | |
Budget: | |
BudgetLimit: | |
Amount: 10 | |
Unit: USD | |
TimeUnit: MONTHLY | |
BudgetType: COST | |
NotificationsWithSubscribers: | |
- Notification: | |
NotificationType: ACTUAL | |
ComparisonOperator: GREATER_THAN | |
Threshold: 99 | |
Subscribers: | |
- SubscriptionType: EMAIL | |
Address: !Ref Email | |
- Notification: | |
NotificationType: ACTUAL | |
ComparisonOperator: GREATER_THAN | |
Threshold: 80 | |
Subscribers: | |
- SubscriptionType: EMAIL | |
Address: !Ref Email | |
Outputs: | |
BudgetId: | |
Value: !Ref BasicBudget |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment