Commit 7342afa
authored
Add missing deletion_protection variable for terraform resource (#1909)
Some GCP terraform resources have an optional property named deletion_protection.
With it, terraform will not delete it. It defaults to true for staging and prod.\
But false when deploying your own [copy](https://github.com/GoogleChrome/webstatus.dev/blob/main/DEPLOYMENT.md#deploying-your-own-copy).
When I was cleaning up old dev environments, I could not cleanly delete them because this particular resource
had deletion_protection set to true by default. This change uses the global variable which allows us to explicitly tell if we want
that given resource to have deletion_protection.1 parent 575956a commit 7342afa
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
0 commit comments