Files
base-infra/versions.tf
Felix Nehrke 0eaa5d3b08 Add current IP automatically to whitelists for SSH and Kubernetes
After I removed the automatic IP addition to the firewalls for SSH and
Kubernetes I ran into a problem only a few days later. My ISP changed
my IPs and I was to stupid to realize that immediately. So, this change
reintroduces the automatic addition of my current IPs to the whitelists
for Kubernetes and SSH. Though, I adjusted the algorithm, so it will not
change every day or so, but instead really only when my ISP changes my
IPs.
2025-11-28 00:28:25 +01:00

47 lines
949 B
HCL

terraform {
backend "s3" {
bucket = "nemoinho-tfstate"
key = "base-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"
}
external = {
source = "hashicorp/external"
version = "2.3.4"
}
}
}
provider "hetznerdns" {
apitoken = var.hetzner_dns_apitoken
}
provider "hcloud" {
token = var.hetzner_cloud_apitoken
}
provider "random" {}
provider "external" {}