Skip to content

Commit

Permalink
Move TFE var gcp_billing_account_id
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Mar 14, 2024
1 parent f05f1d3 commit b19f07a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tf-modules/environment_workspace/tfe.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ resource "tfe_variable" "gcp_project_id" {
value = google_project.main.project_id
}

resource "tfe_variable" "gcp_billing_account_id" {
workspace_id = tfe_workspace.main.id

category = "terraform"
key = "gcp_billing_account_id"
value = var.gcp_billing_account
}

resource "tfe_variable" "mongodbatlas_project_id" {
workspace_id = tfe_workspace.main.id

Expand Down
9 changes: 9 additions & 0 deletions tf-workspace/tfe.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ resource "tfe_variable" "alert_email_addresses" {
sensitive = false
}

resource "tfe_variable" "gcp_billing_account_id" {
variable_set_id = tfe_variable_set.environments.id

category = "terraform"
key = "gcp_billing_account_id"
value = var.gcp_billing_account
sensitive = false
}

resource "tfe_variable" "gcp_shared_infra_project_id" {
variable_set_id = tfe_variable_set.environments.id

Expand Down

0 comments on commit b19f07a

Please sign in to comment.