FociSolutions / github-foundations

A framework for managing your GitHub Enterprise account infrastructure.
MIT License
10 stars 1 forks source link

[Bug] Permission errors running bootstrap layer #75

Closed bzarboni1 closed 6 months ago

bzarboni1 commented 6 months ago

ISSUE

When running the boostrap layer as a non-Enterprise organization, the following error occurs:

Plan: 28 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

module.github_gcloud_oidc.google_folder.folder[0]: Creating...
╷
│ Error: Error creating folder 'fldr-github-foundations' in 'organizations/942835104931': googleapi: Error 403: Permission 'resourcemanager.folders.create' denied on resource '//cloudresourcemanager.googleapis.com/organizations/942835104931' (or it may not exist).
│ Details:
│ [
│   {
│     "@type": "type.googleapis.com/google.rpc.ErrorInfo",
│     "domain": "cloudresourcemanager.googleapis.com",
│     "metadata": {
│       "permission": "resourcemanager.folders.create",
│       "resource": "organizations/942835104931"
│     },
│     "reason": "IAM_PERMISSION_DENIED"
│   }
│ ]
│ , forbidden
│ 
│   with module.github_gcloud_oidc.google_folder.folder[0],
│   on .terraform/modules/github_gcloud_oidc/modules/github-gcloud-oidc/folder.tf line 14, in resource "google_folder" "folder":
│   14: resource "google_folder" "folder" {

bzarboni1 commented 6 months ago

Not an issue with the toolkit