Environment Details
When connecting GCP, the following error is received - "ERROR: no organization ancestor for (project name)"
Cause
In order for the Vanta integration to work successfully, projects must exist within an organization. Projects without a parent organization are currently not supported by the Vanta integration. To check if your project exists within an organization, follow these steps.
Navigate to the Google Cloud console and select the project selector drop-down on the top left. Find "Manage Resources" from the menu button in the modal that appears
On the Manage Resources page, you can see all GCP projects more clearly. If you do not see the organization's icon (a building) as a parent for your projects, the projects do not currently sit within an organization. See a valid setup for Vanta below:
Resolution
If projects are not within an organization, first create the organization
Next, migrate your projects into the organization