This repository has been archived on 2023-12-13. You can view files and clone it, but cannot push or open issues or pull requests.
cloud-resources/azure-budget.tf
Torma Kristóf f67870fa25
All checks were successful
continuous-integration/drone/push Build is passing
add start date to budget
2022-05-17 19:19:01 +02:00

24 lines
534 B
HCL

data "azurerm_subscription" "current-subscription" {}
resource "azurerm_consumption_budget_subscription" "subscription-budget" {
name = "subscription-budget"
subscription_id = data.azurerm_subscription.current-subscription.id
amount = 5
time_grain = "Monthly"
time_period {
start_date = "2022-05-01T00:00:00Z"
}
notification {
enabled = true
threshold = 85.0
operator = "GreaterThan"
threshold_type = "Forecasted"
contact_roles = [
"Owner",
]
}
}