Skip to content

Commit 0251f15

Browse files
authored
docs: Add 'Organization Not Found' error handling (#285)
1 parent 6f8a4c0 commit 0251f15

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

0-bootstrap/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@ The purpose of this step is to bootstrap a GCP organization, creating all the re
1212

1313
Further details of permissions required and resources created, can be found in the bootstrap module [documentation.](https://github.com/terraform-google-modules/terraform-google-bootstrap)
1414

15-
**Note:** when running the examples in this repository, you may receive an error like `Error code 8, message: The project cannot be created because you have exceeded your allotted project quota.` when applying terraform. That means you have reached your [Project creation quota](https://support.google.com/cloud/answer/6330231). In this case you can use this [Request Project Quota Increase](https://support.google.com/code/contact/project_quota_increase) form to request a quota increase. The `terraform_sa_email` created in `0-bootstrap` should also be listed in "Email addresses that will be used to create projects" in that support form. If you face others quota errors, check the [Quota documentation](https://cloud.google.com/docs/quota) for guidence.
15+
**Note:** when running the examples in this repository, you may receive various errors when applying terraform:
16+
- `Error code 8, message: The project cannot be created because you have exceeded your allotted project quota.`. That means you have reached your [Project creation quota](https://support.google.com/cloud/answer/6330231). In this case you can use this [Request Project Quota Increase](https://support.google.com/code/contact/project_quota_increase) form to request a quota increase. The `terraform_sa_email` created in `0-bootstrap` should also be listed in "Email addresses that will be used to create projects" in that support form. If you face others quota errors, check the [Quota documentation](https://cloud.google.com/docs/quota) for guidence.
17+
- `Error: Error when reading or editing Organization Not Found : <organization-id>: googleapi: Error 403: The caller does not have permission, forbidden`.
18+
- Check that your user have [Organization Admin](https://cloud.google.com/iam/docs/understanding-roles#resource-manager-roles) predefined role at the Organization level.
19+
- If this is the case, try the following:
20+
```
21+
gcloud auth application-default login
22+
gcloud auth list # <- confirm that correct account has a star next to it
23+
```
24+
- Re-run `terraform` after.
1625
1726
## 0-bootstrap usage to deploy Jenkins
1827

0 commit comments

Comments
 (0)