terraform-google-modules / terraform-google-group

Manages Google Groups
https://registry.terraform.io/modules/terraform-google-modules/group/google
Apache License 2.0
43 stars 27 forks source link

Terraform provider not finding organisation #65

Closed stiewie33 closed 8 months ago

stiewie33 commented 8 months ago

TL;DR

Using the terraform-google-modules provider to manage GWS groups it's not able to find my GCP/GWS organisation, however, I specified it in the domain attribute. I'm not seeing any open issues online (here/stack overflow) about this apologies if it's something on my end. Authenticating via service account with the relevant permissions assigned.

Expected behavior

Terraform should create & manage GWS groups

Observed behavior

│ Error: Organization not found: testdomain.com │ │ with module.group.data.google_organization.org[0], │ on .terraform/modules/group/main.tf line 17, in data "google_organization" "org": │ 17: data "google_organization" "org" { │

Terraform Configuration

module "group" {
  source  = "terraform-google-modules/group/google"
  version = "~> 0.6"

  id           = var.group_id
  display_name = var.name
  description  = "Test Google Group via Terraform"
  domain       = "testdomain.com"
  owners       = var.owners
  managers     = var.managers
  members      = var.members
}

Terraform Version

v1.5.7

Additional information

No response

stiewie33 commented 8 months ago

I have the provider block as well in my provider.tf file provider "google-beta" {

Configuration options

billing_project = "testdomain-example-project" user_project_override = true }