From 1ac96a678d57baa1c8b76f6c94947f07a07b12ae Mon Sep 17 00:00:00 2001
From: Ole Langbehn <ole.langbehn@inoio.de>
Date: Thu, 20 Feb 2025 14:15:21 +0100
Subject: [PATCH] chore: fixate terraform provider versions, make them
 handleable by renovate

---
 terraform/common/init.tf       | 12 ++++++++++++
 terraform/environments/init.tf | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/terraform/common/init.tf b/terraform/common/init.tf
index c507ea0..d8ce78a 100644
--- a/terraform/common/init.tf
+++ b/terraform/common/init.tf
@@ -1,4 +1,16 @@
 terraform {
+  # allow the lowest common version across all projects, so that the current CI docker image version suits all projects
+  required_version = ">= 1.9"
+  required_providers {
+    google = {
+      source  = "hashicorp/google"
+      version = "6.21.0"
+    }
+    google-beta = {
+      source  = "hashicorp/google-beta"
+      version = "6.21.0"
+    }
+  }
   backend "gcs" {
     bucket = "holi-shared-terraform-state"
     prefix = "goodnews-api-common"
diff --git a/terraform/environments/init.tf b/terraform/environments/init.tf
index 07b5077..baa27a0 100644
--- a/terraform/environments/init.tf
+++ b/terraform/environments/init.tf
@@ -1,4 +1,16 @@
 terraform {
+  # allow the lowest common version across all projects, so that the current CI docker image version suits all projects
+  required_version = ">= 1.9"
+  required_providers {
+    google = {
+      source  = "hashicorp/google"
+      version = "6.21.0"
+    }
+    google-beta = {
+      source  = "hashicorp/google-beta"
+      version = "6.21.0"
+    }
+  }
   backend "gcs" {
     bucket = "holi-shared-terraform-state"
     prefix = "goodnews-api-environments"
-- 
GitLab