Commit fd3a7d2
authored
Avoid accidental total destruction (#308)
This adds accidental destroy protection with a flag to override
interaction for automated purposes.
```bash
boeboe@Boeboe-NUC-WORK:~/Git/tetrate/tetrate-service-bridge-sandbox (delete-confirm) $ make destroy
Do you really want to destroy (y/n)?
Destroy canceled.
boeboe@Boeboe-NUC-WORK:~/Git/tetrate/tetrate-service-bridge-sandbox (delete-confirm) $ make destroy interactive=true
Do you really want to destroy (y/n)?
Destroy canceled.
boeboe@Boeboe-NUC-WORK:~/Git/tetrate/tetrate-service-bridge-sandbox (delete-confirm) $ make destroy interactive=false dry_run=true
Destroying without confirmation (interactive=false)
make[1]: Entering directory '/home/boeboe/Git/tetrate/tetrate-service-bridge-sandbox'
Destroy TSB Management Plane FQDN...
JSON structure of 'terraform.tfvars.json' is valid.
Going to destroy tsb management plane fqdn
jq: error: Could not open file outputs/terraform_outputs/terraform-tsb-mp.json: No such file or directory
Going to destroy tsb management plane fqdn on cloud 'azure'
pushd tsb/fqdn/azure > /dev/null
terraform workspace select default
...
```
1 parent 63aa7f6 commit fd3a7d2
1 file changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
74 | 93 | | |
75 | 94 | | |
76 | 95 | | |
77 | 96 | | |
78 | 97 | | |
79 | | - | |
| 98 | + | |
80 | 99 | | |
81 | 100 | | |
82 | 101 | | |
| |||
0 commit comments