From be83f48f0aac985821a3495bff074e8207626e60 Mon Sep 17 00:00:00 2001 From: daniele Date: Thu, 4 Apr 2024 11:00:43 +0200 Subject: [PATCH] Update terraform provider --- terraform/gitlab/main.tf | 2 +- terraform/terraform-cloud/main.tf | 10 +++++++--- terraform/vault/main.tf | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/terraform/gitlab/main.tf b/terraform/gitlab/main.tf index 219f078c..1b09ee0f 100644 --- a/terraform/gitlab/main.tf +++ b/terraform/gitlab/main.tf @@ -15,7 +15,7 @@ terraform { required_providers { gitlab = { source = "gitlabhq/gitlab" - version = "~> 3.18" + version = "~> 16.10.0" } } } diff --git a/terraform/terraform-cloud/main.tf b/terraform/terraform-cloud/main.tf index 12cf139f..d590110b 100644 --- a/terraform/terraform-cloud/main.tf +++ b/terraform/terraform-cloud/main.tf @@ -43,7 +43,7 @@ terraform { required_providers { tfe = { source = "hashicorp/tfe" - version = "~> 0.37" + version = "~> 0.53" } } } @@ -70,12 +70,16 @@ resource "tfe_organization" "main" { /* Workspaces */ -resource "tfe_workspace" "test" { +resource "tfe_workspace" "main" { for_each = { for i in local.workspaces : i.name => i } name = each.value.name description = each.value.description organization = local.organization.name - execution_mode = "local" tag_names = each.value.tags } + + resource "tfe_workspace_settings" "main-settings" { + workspace_id = tfe_workspace.main.id + execution_mode = "local" +} diff --git a/terraform/vault/main.tf b/terraform/vault/main.tf index 2d372c4a..1f1ce808 100644 --- a/terraform/vault/main.tf +++ b/terraform/vault/main.tf @@ -5,7 +5,7 @@ terraform { required_providers { vault = { source = "hashicorp/vault" - version = "~>3.11.0" + version = "~> 4.2.0" } } }