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

Unable to link project with Billing Account #6679

Closed
caleonardo opened this issue Jun 24, 2020 · 1 comment
Closed

Unable to link project with Billing Account #6679

caleonardo opened this issue Jun 24, 2020 · 1 comment

Comments

@caleonardo
Copy link

Issue creating Projects in Terraform

Hi team, I was running into an issue while creating a new project.

I thought it was permissions related, but I had all the permissions needed.

Error: failed pre-requisites: missing permission on "billingAccounts/000000-000000-000000": billing.resourceAssociations.create
  on .terraform/modules/my_new_project/terraform-google-project-factory-7.1.0/modules/core_project_factory/main.tf line 96, in resource "google_project" "main":
  96: resource "google_project" "main" {

The problem was on how I login using gcloud.

Solution: I was using 'gcloud init --skip-diagnostics' to configure the gcloud credentials. But the right way of doing it gcloud auth application-default login

Another possible cause is that you already use the full quota of projects that can be added to a billing account (you can confirm this by using the web UI in console.cloud.google.com

Related to @hashibot in #5733 (comment)

@ghost
Copy link

ghost commented Jul 24, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Jul 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant