8ca69b1caa
Change-Id: Ibbba78aaecc3b3cba23961a1b10ce5a8eb8ff296 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4580 Tested-by: BuildkiteCI Autosubmit: tazjin <mail@tazj.in> Reviewed-by: grfn <grfn@gws.fyi>
52 lines
1.1 KiB
HCL
52 lines
1.1 KiB
HCL
# Configure TVL resources hosted with GleSYS.
|
|
#
|
|
# Most importantly:
|
|
# - all of our DNS
|
|
# - object storage (e.g. backups)
|
|
|
|
terraform {
|
|
required_providers {
|
|
glesys = {
|
|
source = "depot/glesys"
|
|
}
|
|
}
|
|
|
|
backend "s3" {
|
|
endpoint = "https://objects.dc-sto1.glesys.net"
|
|
bucket = "tvl-state"
|
|
key = "terraform/tvl-glesys"
|
|
region = "glesys"
|
|
|
|
skip_credentials_validation = true
|
|
skip_region_validation = true
|
|
skip_metadata_api_check = true
|
|
}
|
|
}
|
|
|
|
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"
|
|
}
|
|
|
|
resource "glesys_objectstorage_credential" "litestream" {
|
|
instanceid = glesys_objectstorage_instance.tvl-state.id
|
|
description = "key for litestream"
|
|
}
|