Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added -provider cli flag for tfschema show #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 18, 2020

  1. added -provider cli flag for tfschema show

    referencing env0/terratag#17
    
    look at the example below: `google_billing_budget` resource
    comes from `google-beta` provider. previously, code assumed
    the provider name is the first part by underscore, e.g., `google`.
    
    ```
    data "google_billing_account" "account" {
      provider = google-beta
      billing_account = "000000-0000000-0000000-000000"
    }
    
    resource "google_billing_budget" "budget" {
      provider = google-beta
      billing_account = data.google_billing_account.account.id
      display_name = "Example Billing Budget"
    
      budget_filter {
        projects = ["projects/my-project-name"]
        credit_types_treatment = "EXCLUDE_ALL_CREDITS"
        services = ["services/24E6-581D-38E5"] # Bigquery
      }
    
      amount {
        specified_amount {
          currency_code = "USD"
          units = "100000"
        }
      }
    
      threshold_rules {
        threshold_percent = 0.5
      }
      threshold_rules {
        threshold_percent = 0.9
        spend_basis = "FORECASTED_SPEND"
      }
    }
    ```
    shlomimatichin committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    c43af59 View commit details
    Browse the repository at this point in the history