Skip to content

Commit

Permalink
Merge default region var with var.clear_text_env_variables to make su…
Browse files Browse the repository at this point in the history
…re to only pass it once

Signed-off-by: Stefan Wessels Beljaars <[email protected]>
  • Loading branch information
stefanwb committed Aug 30, 2024
1 parent dd43830 commit 446ce98
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
################################################################################
Expand Down

0 comments on commit 446ce98

Please sign in to comment.