Use a variable for network_region

..instead of hardcoding it to `eu-central`
This commit is contained in:
Tim Heckel 2022-01-29 13:21:30 -06:00 committed by GitHub
parent efcbbd53dc
commit c72e212f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ resource "hcloud_network" "k3s" {
resource "hcloud_network_subnet" "k3s" { resource "hcloud_network_subnet" "k3s" {
network_id = hcloud_network.k3s.id network_id = hcloud_network.k3s.id
type = "cloud" type = "cloud"
network_zone = "eu-central" network_zone = var.network_region
ip_range = "10.0.0.0/16" ip_range = "10.0.0.0/16"
} }