From 6df29e1683fb2f0fee2ce229dade6dc8c275aac5 Mon Sep 17 00:00:00 2001 From: Miguel Pais Date: Thu, 19 Dec 2024 09:05:06 +0100 Subject: [PATCH] Cloud account component had missing type (#55) --- modules/vm-workload-scanning/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/vm-workload-scanning/main.tf b/modules/vm-workload-scanning/main.tf index 5da95fb..8e9ac75 100644 --- a/modules/vm-workload-scanning/main.tf +++ b/modules/vm-workload-scanning/main.tf @@ -131,7 +131,7 @@ resource "sysdig_secure_cloud_auth_account_component" "google_service_principal" gcp = { workload_identity_federation = { pool_id = google_iam_workload_identity_pool.agentless.workload_identity_pool_id - pool_provider_id = data.sysdig_secure_agentless_scanning_assets.assets.backend == "aws" ? google_iam_workload_identity_pool_provider.agentless[0].workload_identity_pool_provider_id : google_iam_workload_identity_pool_provider.agentless_gcp[0].workload_identity_pool_provider_id + pool_provider_id = data.sysdig_secure_agentless_scanning_assets.assets.backend.type == "aws" ? google_iam_workload_identity_pool_provider.agentless[0].workload_identity_pool_provider_id : google_iam_workload_identity_pool_provider.agentless_gcp[0].workload_identity_pool_provider_id project_number = data.google_project.project.number } email = google_service_account.controller.email