Closed aleveille closed 3 years ago
Which version of the module are you using?
Which version of the module are you using?
I'm using the GSuite enabled one, version 10.1
Please try again with 10.2.1 as we recently fixed some bugs.
Please try again with 10.2.1 as we recently fixed some bugs.
Yes, that fixes it. Sorry I didn't noticed the new release!
I started my project about a month ago when it was on 10.1 and the doc still mention that version so I didn't noticed (https://github.com/terraform-google-modules/terraform-google-project-factory/blob/master/modules/gsuite_enabled/README.md)
Thanks for pointing this out
Hi,
Meta-info:
Short version of the issue I encountered:
I have want to create about 7 projects, in two folders immediately under the organization.
When I run Terraform apply a first time, I get the error 'Error: error creating project (): googleapi: Error 403: The caller does not have permission....' even though I have folderAdmin and projectCreator on both the serviceaccount (created by the helper script as far as I can remember) and my personal account.
Going to the GCP console, I can undelete the two folders (I guess that the module/precondition deletes them if the checks fail?) and re-run Terraform apply. On this second Terraform apply, all the projects are created successfully.
Here's the first apply output (the one that creates folder, does some checks that fail (403) and then delete the folders):
Then I went into the GCP console (web console) and undeleted the two projects. Right after the undelete, I re-run Terraform apply, and this time everything is OK and the projects get created successfully, in the proper forlders with the proper billing association. I really don't understand why the precondition check fails the first time.