-
Notifications
You must be signed in to change notification settings - Fork 19
/
budget.tf
21 lines (19 loc) · 922 Bytes
/
budget.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -----------------------------------------------------------------------------
# Create budgeting for parent compartment
# -----------------------------------------------------------------------------
module "budget" {
count = var.budget_alerting ? 1 : 0
source = "./budget"
tenancy_ocid = var.tenancy_ocid
budget_target = module.parent-compartment.parent_compartment_id
budget_amount = var.budget_amount
budget_target_name = module.parent-compartment.parent_compartment_name
budget_alert_rule_message = var.budget_alert_rule_message
budget_alert_rule_threshold = var.budget_alert_rule_threshold
budget_alert_rule_recipients = var.budget_alert_rule_recipients
tag_geo_location = var.tag_geo_location
tag_cost_center = var.tag_cost_center
providers = {
oci = oci.home_region
}
}