The ID is created with the format <organization>-<workspace name>
. If the entire string
is longer than 32 characters (GCP's limit), the name is truncated to become:
locals {
k = "${organization}-${workspace_name}"
id = join("-", [substr(k, 0, 23), substr(sha512(k), 0, 8)])
}
Name | Version |
---|---|
terraform | >= 1.0 |
>= 4.0 |
Name | Version |
---|---|
>= 4.0 |
No modules.
Name | Type |
---|---|
google_iam_workload_identity_pool.tfc | resource |
google_iam_workload_identity_pool_provider.workspaces | resource |
google_project_service.required | resource |
google_service_account.tfc | resource |
google_service_account_iam_member.all | resource |
google_project.this | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
allowed_audiences | List of allowwed audiences for the provider | list(string) |
[ |
no |
create_all_service_account | Create service account that allows all identities in the pool to impersonate | bool |
true |
no |
oidc_attributes_mapping | Maps attributes from authentication credentials issued by an external identity provider to Google Cloud attributes | map(string) |
{ |
no |
project | GCP Project ID | string |
null |
no |
service_account_description | Description of the service account | string |
"Used by Terraform Cloud" |
no |
service_account_display_name | Display name of the service account | string |
"Terraform Cloud" |
no |
service_account_id | Service Account ID | string |
"terraform-cloud" |
no |
workload_identity_pool_description | Description of the workload identity pool | string |
"Terraform Cloud Workload Identity" |
no |
workload_identity_pool_display_name | Display name of TFC Workload Identity Pool | string |
"Terraform Cloud" |
no |
workload_identity_pool_id | Workload Identity Pool ID | string |
"terraform-cloud" |
no |
workspaces | Map of workspaces to allow access to. Workspace names are prefixes. | map(list(string)) |
n/a | yes |
Name | Description |
---|---|
project_number | GCP Project Number |
service_account_email | Email of the service account created to allow all identities in the pool to impersonate |
service_account_name | Name of the service account created to allow all identities in the pool to impersonate |
workload_identity_pool_id | Workload Identity Pool ID |
workload_identity_pool_principal_base | Base URI of the workload identity pool principal |
workload_identity_pool_principalset_base | Base URI of the workload identity pool principalset |
workload_identity_pool_providers | Workload Identity Pool Providers |