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 <mail@tazj.in>
Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2021-12-24 20:29:31 +03:00 committed by clbot
parent afe648bbb2
commit ef92f8b231

View file

@ -20,3 +20,17 @@ resource "glesys_objectstorage_instance" "tvl-backups" {
description = "tvl-backups" description = "tvl-backups"
datacenter = "dc-sto1" 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"
}