Files
hearth/infra/gitea-runners/opentofu/backend.tf
T
yukkop 56c033a541
runner nix smoke / nix label smoke (push) Has been cancelled
runner ubuntu smoke / ubuntu-latest label smoke (push) Has been cancelled
feat: gitea runners infra, but it is so expancive
2026-08-25 14:44:45 +00:00

28 lines
763 B
Terraform

terraform {
backend "s3" {
bucket = "gitea-runner-hectic-lab"
key = "gitea-runners/kube-hetzner/terraform.tfstate"
region = "hel1"
endpoints = {
s3 = "https://hel1.your-objectstorage.com"
}
skip_credentials_validation = true
skip_metadata_api_check = true
skip_region_validation = true
skip_requesting_account_id = true
use_path_style = true
encrypt = false
skip_s3_checksum = true
use_lockfile = true
}
}
check "remote_state_contract" {
assert {
condition = local.production_remote_state
error_message = "Production OpenTofu state must use the configured S3 backend; local production state is forbidden."
}
}