Files
base-infra/versions.tf
Felix Nehrke cb97668b63 Define IPs which have access to the kubernetes-API and SSH as variables
I liked the idea to have these IPs dynamically detected at runtime,
though some research showed that my current provider only renews these
every 180 days, nowadays. So, no need for such a hyper-dynamic solution.
Instead I use a variable now, which brings some other benefits, like
adding arbitrary IPs as well. This might become handy in cases of CI/CD.
2025-11-28 00:28:25 +01:00

41 lines
844 B
HCL

terraform {
backend "s3" {
bucket = "nemoinho-tfstate"
key = "hetzner-infra/terraform.tfstate"
region = "eu-central-003"
endpoints = {
s3 = "https://s3.eu-central-003.backblazeb2.com"
}
skip_credentials_validation = true
skip_region_validation = true
skip_metadata_api_check = true
skip_requesting_account_id = true
skip_s3_checksum = true
}
required_providers {
hetznerdns = {
source = "timohirt/hetznerdns"
version = "2.2.0"
}
hcloud = {
source = "hetznercloud/hcloud"
version = "1.50.0"
}
random = {
source = "hashicorp/random"
version = "3.7.1"
}
}
}
provider "hetznerdns" {
apitoken = var.hetzner_dns_apitoken
}
provider "hcloud" {
token = var.hetzner_cloud_apitoken
}
provider "random" {}