GoogleCloudPlatform / pastures-poc-toolkit

Google Cloud utility for rapid prototype delivery on production-ready foundations
Apache License 2.0
3 stars 3 forks source link

Enable IAM and Billing APIs during configure #46

Open dklanac opened 2 months ago

dklanac commented 2 months ago

In a brand new org, you'll receive these errors:

Error: Unable to verify whether custom org role organizations/0000000000/roles/foobar_gcveNetworkAdmin already exists and must be undeleted: Error when reading or editing Custom Organization Role "organizations/0000000000/roles/foobar_gcveNetworkAdmin": googleapi: Error 403: Identity and Access Management (IAM) API has not been used in project xxxxxx-xxxxx-00000-00 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/iam.googleapis.com/overview?project=xxxxxx-xxxxx-00000-00 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Error: failed pre-requisites: failed to check permissions on billing account "billingAccounts/000000-00000-000000": googleapi: Error 403: Cloud Billing API has not been used in project xxxxxx-xxxxx-00000-00 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudbilling.googleapis.com/overview?project=xxxxxx-xxxxx-00000-00 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
dklanac commented 2 months ago

Let's try experimenting with gcloud config unset project command in step 2 to install pastures bash.

dklanac commented 2 months ago

Confirmed that this is an issue when running FAST directly without using any Pastures features (e.g. configure).