about summary refs log tree commit diff
path: root/ops/glesys/main.tf
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-24T17·29+0300
committerclbot <clbot@tvl.fyi>2021-12-24T18·38+0000
commitef92f8b23113078246116da8bb84de2c88420bf6 (patch)
tree810a5c221ae07a9bb85a9fa2e7de1ff9f907e825 /ops/glesys/main.tf
parentafe648bbb2b70797a08d0808dfe16b98f7431cb3 (diff)
feat(ops/glesys): Create bucket & key for storing terraform state r/3363
Change-Id: I73cfaa614d46afb65ba312e767d1e924669fbae1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4575
Tested-by: BuildkiteCI
Autosubmit: tazjin <mail@tazj.in>
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'ops/glesys/main.tf')
-rw-r--r--ops/glesys/main.tf14
1 files changed, 14 insertions, 0 deletions
diff --git a/ops/glesys/main.tf b/ops/glesys/main.tf
index 202fe2ff5ec7..4e9c8de1f824 100644
--- a/ops/glesys/main.tf
+++ b/ops/glesys/main.tf
@@ -20,3 +20,17 @@ resource "glesys_objectstorage_instance" "tvl-backups" {
   description = "tvl-backups"
   datacenter = "dc-sto1"
 }
+
+resource "glesys_objectstorage_instance" "tvl-state" {
+  description = "tvl-state"
+  datacenter = "dc-sto1"
+
+  lifecycle {
+    ignore_changes = [ accesskey ]
+  }
+}
+
+resource "glesys_objectstorage_credential" "terraform-state" {
+  instanceid = glesys_objectstorage_instance.tvl-state.id
+  description = "key for terraform state"
+}