feat: first version
This commit is contained in:
23
README.md
23
README.md
@@ -1,3 +1,22 @@
|
||||
# garage
|
||||
# How to
|
||||
|
||||
Garage Tofu
|
||||
The environment variables you need to have:
|
||||
```bash
|
||||
AWS_ACCESS_KEY_ID=<REDACTED>
|
||||
AWS_SECRET_ACCESS_KEY=<REDACTED>
|
||||
AWS_EC2_METADATA_DISABLED=1
|
||||
GARAGE_TOKEN=<REDACTED>
|
||||
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
|
||||
```
|
||||
|
||||
Afterwards:
|
||||
```bash
|
||||
tofu workspace select ${TF_VAR_env}
|
||||
tofu apply -var-file=vars/${TF_VAR_env}/terraform.tfvars
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user