Skip to content

Commit

Permalink
setting up budgets daily cost alert
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacha Laurent committed Jan 13, 2025
1 parent a231a34 commit 6c9856c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions devops/envs/prod-unicc/budgets.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
resource "aws_budgets_budget" "daily-cost" {
# ...
budget_type = "COST"
limit_amount = "20"
limit_unit = "USD"
time_unit = "DAILY"
#Cost types must be defined for RI budgets because the settings conflict with the defaults

notification {
comparison_operator = "GREATER_THAN"
threshold = "100"
threshold_type = "PERCENTAGE"
notification_type = "ACTUAL"
subscriber_sns_topic_arns = [resource.aws_sns_topic.step-func-fail[0].arn]
}
}

0 comments on commit 6c9856c

Please sign in to comment.