From aa8b6a9df61281a894fa0e19d81263b532d82bb6 Mon Sep 17 00:00:00 2001 From: Umair Idris Date: Fri, 22 Nov 2019 16:49:01 +0000 Subject: [PATCH] add example --- .../examples/billing_budget_basic.tf.erb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 templates/terraform/examples/billing_budget_basic.tf.erb diff --git a/templates/terraform/examples/billing_budget_basic.tf.erb b/templates/terraform/examples/billing_budget_basic.tf.erb new file mode 100644 index 000000000000..024d61aa478f --- /dev/null +++ b/templates/terraform/examples/billing_budget_basic.tf.erb @@ -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 + } +}