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" } } } diff --git a/{{cookiecutter.project_dirname}}/terraform/digitalocean-k8s/main.tf b/{{cookiecutter.project_dirname}}/terraform/digitalocean-k8s/main.tf index b77ddb10..b11a4461 100644 --- a/{{cookiecutter.project_dirname}}/terraform/digitalocean-k8s/main.tf +++ b/{{cookiecutter.project_dirname}}/terraform/digitalocean-k8s/main.tf @@ -8,15 +8,15 @@ terraform { required_providers { digitalocean = { source = "digitalocean/digitalocean" - version = "~> 2.21" + version = "~> 2.36" } kubernetes = { source = "hashicorp/kubernetes" - version = "~> 2.12" + version = "~> 2.27" } random = { source = "hashicorp/random" - version = "~> 3.3" + version = "~> 3.6" } } } diff --git a/{{cookiecutter.project_dirname}}/terraform/modules/kubernetes/cronjob/main.tf b/{{cookiecutter.project_dirname}}/terraform/modules/kubernetes/cronjob/main.tf index 64155831..edfac35f 100644 --- a/{{cookiecutter.project_dirname}}/terraform/modules/kubernetes/cronjob/main.tf +++ b/{{cookiecutter.project_dirname}}/terraform/modules/kubernetes/cronjob/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { kubernetes = { source = "hashicorp/kubernetes" - version = "~> 2.12" + version = "~> 2.27" } } } diff --git a/{{cookiecutter.project_dirname}}/terraform/modules/kubernetes/deployment/main.tf b/{{cookiecutter.project_dirname}}/terraform/modules/kubernetes/deployment/main.tf index c9de84c2..eeed2c7e 100644 --- a/{{cookiecutter.project_dirname}}/terraform/modules/kubernetes/deployment/main.tf +++ b/{{cookiecutter.project_dirname}}/terraform/modules/kubernetes/deployment/main.tf @@ -27,11 +27,11 @@ terraform { required_providers { kubernetes = { source = "hashicorp/kubernetes" - version = "~> 2.12" + version = "~> 2.27" } random = { source = "hashicorp/random" - version = "~> 3.3" + version = "~> 3.6" } } } diff --git a/{{cookiecutter.project_dirname}}/terraform/other-k8s/main.tf b/{{cookiecutter.project_dirname}}/terraform/other-k8s/main.tf index 3c336a4d..10eb2edf 100644 --- a/{{cookiecutter.project_dirname}}/terraform/other-k8s/main.tf +++ b/{{cookiecutter.project_dirname}}/terraform/other-k8s/main.tf @@ -8,11 +8,11 @@ terraform { required_providers { kubernetes = { source = "hashicorp/kubernetes" - version = "~> 2.12" + version = "~> 2.27" } random = { source = "hashicorp/random" - version = "~> 3.3" + version = "~> 3.6" } } }