terraform-google-project-factory icon indicating copy to clipboard operation
terraform-google-project-factory copied to clipboard

Make sure tests do not depend on organization viewer permission

Open morgante opened this issue 5 years ago • 2 comments

morgante avatar May 28 '19 15:05 morgante

To ensure that #20 doesn't get repeated.

morgante avatar May 28 '19 15:05 morgante

I've made some test, and discovered that core module depends on org-level permissions:

       Error: Error reading Organization Not Found : 684124036889: googleapi: Error 403: The caller does not have permission, forbidden

         on ../../../modules/gsuite_group/main.tf line 26, in data "google_organization" "org":
         26: data "google_organization" "org" {

That happens because of calling gsuite_group module from core-module. That has data org resource To avoid that we need to make some changes in the logic for the case if no gsiute functionality used and parent of the project is not a folder. Shall I create PR for that?

paulpalamarchuk avatar Nov 21 '19 12:11 paulpalamarchuk

Fixed in #320

imrannayer avatar Mar 27 '24 03:03 imrannayer