terraform 计划时检索 IAM 策略 GCP 时出错?

Error retrieving IAM policy GCP when terraform plan?

你好,我的 terraform bootstrap GCP 模块之一包含

  resource "google_organization_iam_member" "organizationAdmin" {
  for_each = toset(var.users)
  org_id   = var.organization_id
  role     = "roles/resourcemanager.organizationAdmin"
  member   = each.value

}

现在我正在

Error: Error retrieving IAM policy for organization "903021035085 ": googleapi: Error 400: Request contains an invalid argument., badRequest
│ 
│   with module.bootstrap_permissions.google_organization_iam_member.organizationAdmin["group:gcp-organization-admins@juliusoh.tech"],
│   on ../modules/bootstrap_permissions/main.tf line 1, in resource "google_organization_iam_member" "organizationAdmin":
│    1: resource "google_organization_iam_member" "organizationAdmin" {

发出请求的帐户在组织级别拥有所有者权限,我在执行 terraform plan 时出现错误的原因是什么。

var.organization_id 的值有尾随 space(请参阅错误消息),例如,"123 " 而不是 "123"。删除这个 space 它应该可以工作。