From 1ec06e81196b08e0b71809d55baad7011ff05d5f Mon Sep 17 00:00:00 2001 From: Bobby Iliev Date: Tue, 18 Mar 2025 12:39:49 +0200 Subject: [PATCH] Use explicit region variable instead of data source --- README.md | 8 ++------ main.tf | 4 +--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5331571..63d7ec3 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,7 @@ The module has been tested with: ## Providers -| Name | Version | -|------|---------| -| [google](#provider\_google) | 6.25.0 | +No providers. ## Modules @@ -44,9 +42,7 @@ The module has been tested with: ## Resources -| Name | Type | -|------|------| -| [google_client_config.current](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/client_config) | data source | +No resources. ## Inputs diff --git a/main.tf b/main.tf index 079590d..a181bf4 100644 --- a/main.tf +++ b/main.tf @@ -116,7 +116,7 @@ locals { } cloudProvider = { type = "gcp" - region = data.google_client_config.current.region + region = var.region providers = { gcp = { enabled = true @@ -166,5 +166,3 @@ locals { } ] } - -data "google_client_config" "current" {}