diff --git a/terraform/terraform-cloud/main.tf b/terraform/terraform-cloud/main.tf index f4c51d8..8ec9c96 100644 --- a/terraform/terraform-cloud/main.tf +++ b/terraform/terraform-cloud/main.tf @@ -79,7 +79,9 @@ resource "tfe_workspace" "main" { tag_names = each.value.tags } -resource "tfe_workspace_settings" "main-settings" { - workspace_id = tfe_workspace.main.id +resource "tfe_workspace_settings" "main" { + for_each = tfe_workspace.main + + workspace_id = each.value.id execution_mode = "local" }