@@ -15,7 +15,7 @@ limitations under the License.
15
15
*/
16
16
17
17
data "google_monitoring_notification_channel" "sig_k8s_infra_leads" {
18
- project = data. google_project . kubernetes_public . project_id
18
+ project = data. google_project . kubernetes_public . project_id
19
19
display_name = " [email protected] "
20
20
}
21
21
@@ -25,25 +25,26 @@ data "google_project" "k8s_infra_sandbox_capg" {
25
25
26
26
resource "google_billing_budget" "capg_budget" {
27
27
billing_account = data. google_billing_account . account . billing_account
28
- display_name = " k8s-infra-sandbox-capg"
28
+ display_name = " k8s-infra-sandbox-capg"
29
29
budget_filter {
30
30
# calendar_period = "MONTH" # TODO: terraform doesn't support this?
31
- projects = [ " projects/${ data . google_project . k8s_infra_sandbox_capg . number } " ]
31
+ projects = [" projects/${ data . google_project . k8s_infra_sandbox_capg . number } " ]
32
32
# exclude promotions, which is where our credits come from, since that zeros out cost
33
33
credit_types_treatment = " INCLUDE_SPECIFIED_CREDITS"
34
- credit_types = [
35
- " SUSTAINED_USAGE_DISCOUNT" ,
36
- " DISCOUNT" ,
37
- " COMMITTED_USAGE_DISCOUNT" ,
38
- " FREE_TIER" ,
39
- " COMMITTED_USAGE_DISCOUNT_DOLLAR_BASE" ,
40
- " SUBSCRIPTION_BENEFIT" ,
34
+ credit_types = [
35
+ " SUSTAINED_USAGE_DISCOUNT" ,
36
+ " DISCOUNT" ,
37
+ " COMMITTED_USAGE_DISCOUNT" ,
38
+ " FREE_TIER" ,
39
+ " COMMITTED_USAGE_DISCOUNT_DOLLAR_BASE" ,
40
+ " SUBSCRIPTION_BENEFIT" ,
41
41
]
42
+ calendar_period = " YEAR"
42
43
}
43
44
amount {
44
45
specified_amount {
45
46
currency_code = " USD"
46
- units = " 5000"
47
+ units = " 5000"
47
48
}
48
49
}
49
50
all_updates_rule {
@@ -64,24 +65,24 @@ resource "google_billing_budget" "capg_budget" {
64
65
65
66
resource "google_billing_budget" "k8s_infra" {
66
67
billing_account = data. google_billing_account . account . billing_account
67
- display_name = " k8s-infra-monthly"
68
+ display_name = " k8s-infra-monthly"
68
69
budget_filter {
69
70
# calendar_period = "MONTH" # TODO: terraform doesn't support this?
70
71
# exclude promotions, which is where our credits come from, since that zeros out cost
71
72
credit_types_treatment = " INCLUDE_SPECIFIED_CREDITS"
72
- credit_types = [
73
- " SUSTAINED_USAGE_DISCOUNT" ,
74
- " DISCOUNT" ,
75
- " COMMITTED_USAGE_DISCOUNT" ,
76
- " FREE_TIER" ,
77
- " COMMITTED_USAGE_DISCOUNT_DOLLAR_BASE" ,
78
- " SUBSCRIPTION_BENEFIT" ,
73
+ credit_types = [
74
+ " SUSTAINED_USAGE_DISCOUNT" ,
75
+ " DISCOUNT" ,
76
+ " COMMITTED_USAGE_DISCOUNT" ,
77
+ " FREE_TIER" ,
78
+ " COMMITTED_USAGE_DISCOUNT_DOLLAR_BASE" ,
79
+ " SUBSCRIPTION_BENEFIT" ,
79
80
]
80
81
}
81
82
amount {
82
83
specified_amount {
83
84
currency_code = " USD"
84
- units = " 250000" # 3M/yr / 12mo
85
+ units = " 250000" # 3M/yr / 12mo
85
86
}
86
87
}
87
88
all_updates_rule {
0 commit comments