From 446ce989920f3dc39cdb9865163fcf33cbb059c9 Mon Sep 17 00:00:00 2001 From: Stefan Wessels Beljaars Date: Fri, 30 Aug 2024 16:13:32 +0200 Subject: [PATCH] Merge default region var with var.clear_text_env_variables to make sure to only pass it once Signed-off-by: Stefan Wessels Beljaars --- main.tf | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/main.tf b/main.tf index bb5419d..6aaa556 100644 --- a/main.tf +++ b/main.tf @@ -17,7 +17,7 @@ module "tfe-workspace" { auto_apply = var.auto_apply auto_apply_run_trigger = var.auto_apply_run_trigger branch = var.branch - clear_text_env_variables = var.clear_text_env_variables + clear_text_env_variables = merge({ AWS_DEFAULT_REGION = var.region }, var.clear_text_env_variables) clear_text_hcl_variables = var.clear_text_hcl_variables clear_text_terraform_variables = var.clear_text_terraform_variables description = var.description @@ -43,13 +43,6 @@ module "tfe-workspace" { workspace_tags = var.workspace_tags } -resource "tfe_variable" "aws_default_region" { - key = "AWS_DEFAULT_REGION" - value = var.region - category = "env" - workspace_id = module.tfe-workspace.workspace_id -} - ################################################################################ # RBAC ################################################################################