diff --git a/README.md b/README.md index 1ccab83..bc1e88a 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 prd +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" -}