about summary refs log tree commit diff
path: root/ops/glesys/main.tf
blob: 4e9c8de1f824454bad595b0fc91df05c9b735441 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Configure TVL resources hosted with GleSYS.
#
# Most importantly:
#  - all of our DNS
#  - object storage (e.g. backups)

terraform {
  required_providers {
    glesys = {
      source = "depot/glesys"
    }
  }
}

provider "glesys" {
  userid = "cl26117" # generated by GleSYS
}

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"
}