♻️: remove unused variables
All checks were successful
terraform-lint / terraform-lint (push) Successful in 3s
All checks were successful
terraform-lint / terraform-lint (push) Successful in 3s
This commit is contained in:
@@ -6,17 +6,16 @@ AWS_ACCESS_KEY_ID=<REDACTED>
|
|||||||
AWS_SECRET_ACCESS_KEY=<REDACTED>
|
AWS_SECRET_ACCESS_KEY=<REDACTED>
|
||||||
AWS_EC2_METADATA_DISABLED=1
|
AWS_EC2_METADATA_DISABLED=1
|
||||||
GARAGE_TOKEN=<REDACTED>
|
GARAGE_TOKEN=<REDACTED>
|
||||||
TF_VAR_env=prd
|
|
||||||
```
|
```
|
||||||
|
|
||||||
To execute the first time:
|
To execute the first time:
|
||||||
```bash
|
```bash
|
||||||
tofu workspace new ${TF_VAR_env}
|
tofu workspace new bck
|
||||||
tofu apply -var-file=vars/${TF_VAR_env}/terraform.tfvars
|
tofu apply -var-file=vars/$(tofu workspace show)/terraform.tfvars
|
||||||
```
|
```
|
||||||
|
|
||||||
Afterwards:
|
Afterwards:
|
||||||
```bash
|
```bash
|
||||||
tofu workspace select ${TF_VAR_env}
|
tofu workspace select bck
|
||||||
tofu apply -var-file=vars/${TF_VAR_env}/terraform.tfvars
|
tofu apply -var-file=vars/$(terraform workspace show)/terraform.tfvars
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -26,9 +26,3 @@ variable "buckets" {
|
|||||||
}))
|
}))
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "env" {
|
|
||||||
description = "The target env for Garage configuration"
|
|
||||||
type = string
|
|
||||||
default = "prd"
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user