about summary refs log tree commit diff
path: root/ops/keycloak
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-27T14·23+0300
committertazjin <mail@tazj.in>2021-12-27T15·53+0000
commit98be390576c4cd68f7bf879bcae2695a3b0917ba (patch)
tree5e72e924002962873a4eb23aba4becfe84a3e570 /ops/keycloak
parente616f978d045ccbe62eee6403e0d93061982ae23 (diff)
fix(ops/keycloak): Move Terraform state to GleSYS bucket r/3471
This should never sit around locally the way it does now.

Change-Id: Icfbdaf1949d6d948a796a0759282ea6144af3621
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4709
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'ops/keycloak')
-rw-r--r--ops/keycloak/main.tf11
1 files changed, 11 insertions, 0 deletions
diff --git a/ops/keycloak/main.tf b/ops/keycloak/main.tf
index ec44507ec64b..f7dc0f27d132 100644
--- a/ops/keycloak/main.tf
+++ b/ops/keycloak/main.tf
@@ -8,6 +8,17 @@ terraform {
       source = "mrparkers/keycloak"
     }
   }
+
+  backend "s3" {
+    endpoint = "https://objects.dc-sto1.glesys.net"
+    bucket   = "tvl-state"
+    key      = "terraform/tvl-keycloak"
+    region   = "glesys"
+
+    skip_credentials_validation = true
+    skip_region_validation      = true
+    skip_metadata_api_check     = true
+  }
 }
 
 provider "keycloak" {