From 5c867f0306ac2aa6f8757c7be08a9eb6677d5d04 Mon Sep 17 00:00:00 2001 From: Filippo Morelli Date: Tue, 28 Apr 2026 15:43:44 +0200 Subject: [PATCH] Move default_execution_mode to tfe_project_settings resource --- terraform/terraform-cloud/main.tf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/terraform/terraform-cloud/main.tf b/terraform/terraform-cloud/main.tf index a27dddf..95dfecc 100644 --- a/terraform/terraform-cloud/main.tf +++ b/terraform/terraform-cloud/main.tf @@ -68,12 +68,16 @@ resource "tfe_organization" "main" { email = var.admin_email } -/* Project (groups all workspaces and inherits the local execution mode) */ +/* Project (groups all workspaces; default execution mode is set on tfe_project_settings) */ resource "tfe_project" "main" { - organization = local.organization.name - name = var.project_slug - description = "${var.project_name} project workspaces." + organization = local.organization.name + name = var.project_slug + description = "${var.project_name} project workspaces." +} + +resource "tfe_project_settings" "main" { + project_id = tfe_project.main.id default_execution_mode = "local" }