/terraform-hetzner-network-module

terraform module which creates private network and subnet resource on hetzner

Primary LanguageHCLApache License 2.0Apache-2.0

Requirements

Name Version
terraform >= 1.4.0
hcloud >= 1.42.0

Providers

Name Version
hcloud 1.42.1

Modules

No modules.

Resources

Name Type
hcloud_network.vpc resource
hcloud_network_route.route resource
hcloud_network_subnet.subnet resource

Inputs

Name Description Type Default Required
delete_protection Enable or disable delete protection. bool true no
expose_routes_to_vswitch Enable or disable exposing the routes to the vSwitch connection. The exposing only takes effect if a vSwitch connection is active. bool true no
ip_range IP Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918. string n/a yes
labels User-defined labels (key-value pairs) should be created with. map(string) {} no
name Name of the Network to create (must be unique per project). string n/a yes
routes List of routing rule in vpc
list(object({
destination = string
gateway = string
}))
[] no
subnets List subnets created with this network
list(object({
type = optional(string, "cloud")
ip_range = string
network_zone = string
vswitch_id = optional(string)
}))
[] no

Outputs

Name Description
id ID of this network
ip_range Network ip range CIDR
labels Resource labels
name Name of this network
routes List vpc routes
subnets List vpc subnets