我想在跨越某些指定的费用/数据限制时为AWS资源创建结算提醒。
答案 0 :(得分:1)
答案 1 :(得分:0)
这是示例CloudFormation资源,用于创建结算/预算提醒。
Resources:
MonthlyBudget:
Type: "AWS::Budgets::Budget"
Properties:
Budget:
BudgetName: Monthly
BudgetType: COST
TimeUnit: MONTHLY
BudgetLimit:
Amount: 100
Unit: USD
NotificationsWithSubscribers:
- Notification:
NotificationType: ACTUAL
ComparisonOperator: GREATER_THAN
Threshold: 80 # 1st alert sent when % of Monthly total is spent.
Subscribers:
- SubscriptionType: EMAIL
Address: email@example.com
- Notification:
NotificationType: ACTUAL
ComparisonOperator: GREATER_THAN
Threshold: 95 # 2nd alert sent when % of Monthly total is spent.
Subscribers:
- SubscriptionType: EMAIL
Address: email@example.com