Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
umairidris committed Nov 22, 2019
1 parent b948d15 commit aa8b6a9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions templates/terraform/examples/billing_budget_basic.tf.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
data "google_billing_account" "account" {
display_name = "My Billing Account"
open = true
}

resource "google_billing_budget" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
billing_account = data.google_billing_account.account.id
display_name = "<%= ctx[:vars]['display_name'] %>"
amount {
specified_amount {
currency_code = "USD"
units = "10"
}
}
threshold_rules {
threshold_percent = 0.5
}
}

0 comments on commit aa8b6a9

Please sign in to comment.