Terraform-IaC/archive/hetzner/template/network.tf
Oscar Blue 4480a44413
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
Changed project structure
2023-07-09 17:17:38 +01:00

15 lines
No EOL
373 B
HCL

resource "hcloud_network" "network" {
name = "vnet-${var.project_name}"
ip_range = "10.0.0.0/16"
labels = merge(
local.common_labels,
{ "Resource_Type" = "Virtual_Network" }
)
}
resource "hcloud_network_subnet" "subnet" {
network_id = hcloud_network.network.id
type = "cloud"
ip_range = "10.0.1.0/24"
network_zone = "eu-central"
}