From 7ed247bdf342c3262150e72c519036c13b77b549 Mon Sep 17 00:00:00 2001 From: VC Date: Mon, 10 Nov 2025 09:06:46 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F:=20remove=20unused=20variabl?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 ++++----- variables.tf | 6 ------ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1ccab83..bb4617e 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,16 @@ AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_EC2_METADATA_DISABLED=1 GARAGE_TOKEN= -TF_VAR_env=prd ``` To execute the first time: ```bash -tofu workspace new ${TF_VAR_env} -tofu apply -var-file=vars/${TF_VAR_env}/terraform.tfvars +tofu workspace new bck +tofu apply -var-file=vars/$(tofu workspace show)/terraform.tfvars ``` Afterwards: ```bash -tofu workspace select ${TF_VAR_env} -tofu apply -var-file=vars/${TF_VAR_env}/terraform.tfvars +tofu workspace select bck +tofu apply -var-file=vars/$(terraform workspace show)/terraform.tfvars ``` diff --git a/variables.tf b/variables.tf index 5de16cb..8cf9aca 100644 --- a/variables.tf +++ b/variables.tf @@ -26,9 +26,3 @@ variable "buckets" { })) })) } - -variable "env" { - description = "The target env for Garage configuration" - type = string - default = "prd" -}