-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Google project precheck #3145
Google project precheck #3145
Conversation
Permissions: []string{perm}, | ||
} | ||
resp, err := config.clientBilling.BillingAccounts.TestIamPermissions(ba, req).Do() | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a consensus on whether this request failing should actually fail the apply?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed my mind and decided it's fine. I'd love to make this a check for the correct API being enabled but I'm not sure it's possible at this point. I added something to that effect in hashicorp/terraform-provider-google#5671 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks!
* project: check for billing account perms as pre-requisite * outdent * typo * rm type from error message * simplify perms check * simplify bool check * simplify bool check Co-authored-by: Umair Idris <[email protected]>
closes hashicorp/terraform-provider-google#5671 as it's the upstream pr.
fixes hashicorp/terraform-provider-google#5222
references terraform-google-modules/terraform-google-project-factory#373
Release Note Template for Downstream PRs (will be copied)