about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-24T17·51+0300
committerclbot <clbot@tvl.fyi>2021-12-24T18·38+0000
commite2596e930e376754c8653a238590312b3d9ce107 (patch)
treebd85504abe38d0b4f8cef656445d23d9cefa444e /ops
parentef92f8b23113078246116da8bb84de2c88420bf6 (diff)
feat(ops/glesys): Move Terraform state to GleSYS bucket r/3364
Change-Id: Ib14fba9a5f06ecdb065dd14580c8088f98e9cb3a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4576
Tested-by: BuildkiteCI
Autosubmit: tazjin <mail@tazj.in>
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'ops')
-rw-r--r--ops/glesys/main.tf11
1 files changed, 11 insertions, 0 deletions
diff --git a/ops/glesys/main.tf b/ops/glesys/main.tf
index 4e9c8de1f824..7f3effea6876 100644
--- a/ops/glesys/main.tf
+++ b/ops/glesys/main.tf
@@ -10,6 +10,17 @@ terraform {
       source = "depot/glesys"
     }
   }
+
+  backend "s3" {
+    endpoint = "https://objects.dc-sto1.glesys.net"
+    bucket = "tvl-state"
+    key = "terraform/tvl-glesys"
+    region = "glesys"
+
+    skip_credentials_validation = true
+    skip_region_validation = true
+    skip_metadata_api_check = true
+  }
 }
 
 provider "glesys" {