Fix workforce identity federation provider configuration (#3626)

* Fix workforce identity federation provider configuration

Remove redundant 'organizations/' prefix from parent parameter as
var.organization_id already contains the full organization path.

* Update test to match corrected parent parameter

The test expected the redundant 'organizations/' prefix, but the fix
correctly removes this duplication.

---------

Co-authored-by: Julio Castillo <jccb@google.com>
This commit is contained in:
ooshrioo
2026-01-07 15:02:13 +02:00
committed by GitHub
parent d2aac2c743
commit ccad5654d9
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ locals {
resource "google_iam_workforce_pool" "default" {
count = var.workforce_identity_config == null ? 0 : 1
parent = "organizations/${var.organization_id}"
parent = var.organization_id
location = "global"
workforce_pool_id = var.workforce_identity_config.pool_name
}