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:
parent
afe648bbb2
commit
ef92f8b231
1 changed files with 14 additions and 0 deletions
|
@ -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"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue