canada-ca / accelerators_accelerateurs-gcp

[GCP] Tools and templates to accelerate GC service delivery. Outils et modèles pour accélérer la prestation de services du GC.
MIT License
10 stars 8 forks source link

Add procedure for manually adding the Terraform SA as Billing Account User on billing (in addition to IAM) to proceed with project/billing association #64

Open fmichaelobrien opened 1 year ago

fmichaelobrien commented 1 year ago

If you get the following it means your Terraform SA (Service Account) is not on the BAU (Billing Account User) list in billing for the BID (Billing ID) Option is to pre-create the TF SA

Screen Shot 2022-12-02 at 10 53 38 AM
Error: failed pre-requisites: missing permission on "billingAccounts/0........": billing.resourceAssociations.create
│
│   with module.administration.module.project-factory.google_project.main,
│   on .terraform/modules/administration/modules/core_project_factory/main.tf line 65, in resource "google_project" "main":
│   65: resource "google_project" "main" {
fmichaelobrien commented 1 year ago

see https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/213

fmichaelobrien commented 1 year ago

Terraform Service Account missing on shared billing account as Billing Account User

Screen Shot 2022-12-14 at 12 04 29 PM

Add the TF SA

Screen Shot 2022-12-14 at 10 42 49 AM

All good

Screen Shot 2022-12-14 at 12 05 14 PM