From ef92f8b23113078246116da8bb84de2c88420bf6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 24 Dec 2021 20:29:31 +0300 Subject: [PATCH] feat(ops/glesys): Create bucket & key for storing terraform state Change-Id: I73cfaa614d46afb65ba312e767d1e924669fbae1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4575 Tested-by: BuildkiteCI Autosubmit: tazjin Reviewed-by: grfn --- ops/glesys/main.tf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ops/glesys/main.tf b/ops/glesys/main.tf index 202fe2ff5..4e9c8de1f 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" +}