network
cktf/network/hcloud
Terraform HCloud Network Module
Terraform HCloud Network !pipeline !release !license Network is a Terraform module useful for creating Network, Subnets, Routes, and Firewalls on HCloud Installation Add the required configurations to your terraform config file and install module using command bellow: ``bash terraform init ` Usage `hcl module "network" { source = "ckoliber/network/hcloud" name = "mynet" cidr = "192.168.0.0/16" subnets = { masters = { type = "server", cidr = "192.168.0.0/24" } workers = { type = "server", cidr = "192.168.1.0/24" } } firewalls = { manager = { targets = ["cluster/role=manager"] inbounds = { "80:tcp" = { description = "HTTP Inbound Traffic" source_ips = ["0.0.0.0/0", "::/0"] } "443:tcp" = { description = "HTTPS Inbound Traffic" source_ips = ["0.0.0.0/0", "::/0"] } "443:tcp" = { description = "
| Name | Type | Description | Default |
|---|---|---|---|
| zone | string | Network Zone | "eu-central" |
| labels | map(string) | Network Labels | {} |
| protection | bool | Network Protection | false |
| expose_vswitch | bool | Network Expose VSwitch | null |
| routes | map(object({ destination = | Network Routes | {} |
| name | string | Network Name | null |
| cidr | string | Network CIDR | null |
| subnets | map(object({ type = str | Network Subnets | {} |
| firewalls | map(object({ name = opt | Network Firewalls | {} |
subnet — Network Subnetid — Network ID