google_iam_workforce_pool

Represents a collection of external workforces. Provides namespaces for federated users that can be referenced in IAM policies.

To get more information about WorkforcePool, see:

Example Usage - Iam Workforce Pool Basic

resource "google_iam_workforce_pool" "example" {
  workforce_pool_id = "example-pool"
  parent            = "organizations/123456789"
  location          = "global"
}

Example Usage - Iam Workforce Pool Full

resource "google_iam_workforce_pool" "example" {
  workforce_pool_id   = "example-pool"
  parent              = "organizations/123456789"
  location            = "global"
  display_name        = "Display name"
  description         = "A sample workforce pool."
  disabled            = false
  session_duration    = "7200s"
  access_restrictions {
    allowed_services {
      domain = "backstory.chronicle.security"
    }
    disable_programmatic_signin = false
  }
}

Argument Reference

The following arguments are supported:


The access_restrictions block supports:

The allowed_services block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

WorkforcePool can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import WorkforcePool using one of the formats above. For example:

import {
  id = "locations/{{location}}/workforcePools/{{workforce_pool_id}}"
  to = google_iam_workforce_pool.default
}

When using the terraform import command, WorkforcePool can be imported using one of the formats above. For example:

$ terraform import google_iam_workforce_pool.default locations/{{location}}/workforcePools/{{workforce_pool_id}}
$ terraform import google_iam_workforce_pool.default {{location}}/{{workforce_pool_id}}