{"id":21901358,"url":"https://github.com/zoro16/terraform-hcloud-network","last_synced_at":"2025-04-15T20:13:13.673Z","repository":{"id":196385696,"uuid":"695994445","full_name":"zoro16/terraform-hcloud-network","owner":"zoro16","description":"Terraform module to provision Network resouces in Hetzner Cloud ","archived":false,"fork":false,"pushed_at":"2024-07-22T13:21:19.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T20:13:05.757Z","etag":null,"topics":["hcloud-network","hetzner","hetzner-cloud","hetzner-network","terraform-hcloud-network","terraform-module"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/zoro16/network/hcloud/latest","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoro16.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-24T20:35:41.000Z","updated_at":"2024-07-22T13:21:22.000Z","dependencies_parsed_at":"2024-07-22T16:05:40.491Z","dependency_job_id":null,"html_url":"https://github.com/zoro16/terraform-hcloud-network","commit_stats":null,"previous_names":["zoro16/terraform-hcloud-network"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoro16%2Fterraform-hcloud-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoro16%2Fterraform-hcloud-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoro16%2Fterraform-hcloud-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoro16%2Fterraform-hcloud-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoro16","download_url":"https://codeload.github.com/zoro16/terraform-hcloud-network/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145418,"owners_count":21219966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hcloud-network","hetzner","hetzner-cloud","hetzner-network","terraform-hcloud-network","terraform-module"],"created_at":"2024-11-28T15:13:16.046Z","updated_at":"2025-04-15T20:13:13.653Z","avatar_url":"https://github.com/zoro16.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nTerraform module to help with provisioning `Network`, `Subnet` and `Network Route` resources in Hetzner Cloud.\n\n## Usage\n\n```hcl\n# Configure the Hetzner Cloud Provider\nprovider \"hcloud\" {\n  token = var.hcloud_token\n}\n\nlocals {\n  network_routes = tomap({\n    \"0.0.0.0/0\" = \"10.100.0.2\"\n  })\n}\n\nmodule \"net\" {\n  source = \"../../\"\n\n  create_network = true\n\n  network_name                     = \"example-network\"\n  network_ip_cidr_range            = \"10.100.0.0/16\"\n  network_delete_protection        = false\n  network_expose_routes_to_vswitch = false\n  network_labels = {\n    name        = \"example-network\"\n    environment = \"dev\"\n  }\n\n  create_subnet         = true\n  subnet_type           = \"cloud\"\n  subnet_network_zone   = \"eu-central\"\n  subnet_ip_cidr_ranges = [\"10.100.20.0/24\", \"10.100.30.0/24\"]\n\n  create_network_route = true\n  network_routes       = local.network_routes\n}\n```\n\n\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.2.0 |\n| \u003ca name=\"requirement_hcloud\"\u003e\u003c/a\u003e [hcloud](#requirement\\_hcloud) | \u003e= 1.47 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_hcloud\"\u003e\u003c/a\u003e [hcloud](#provider\\_hcloud) | \u003e= 1.47 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [hcloud_network.network](https://registry.terraform.io/providers/hetznercloud/hcloud/latest/docs/resources/network) | resource |\n| [hcloud_network_route.private_net](https://registry.terraform.io/providers/hetznercloud/hcloud/latest/docs/resources/network_route) | resource |\n| [hcloud_network_subnet.subnet](https://registry.terraform.io/providers/hetznercloud/hcloud/latest/docs/resources/network_subnet) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_create_network\"\u003e\u003c/a\u003e [create\\_network](#input\\_create\\_network) | A boolean to check whether to create a network resource or not. | `bool` | `false` | no |\n| \u003ca name=\"input_create_network_route\"\u003e\u003c/a\u003e [create\\_network\\_route](#input\\_create\\_network\\_route) | A boolean to check whether to create a Network Route resource or not. | `bool` | `false` | no |\n| \u003ca name=\"input_create_subnet\"\u003e\u003c/a\u003e [create\\_subnet](#input\\_create\\_subnet) | A boolean to check whether to create a subent resource or not. | `bool` | `false` | no |\n| \u003ca name=\"input_network_delete_protection\"\u003e\u003c/a\u003e [network\\_delete\\_protection](#input\\_network\\_delete\\_protection) | Enable or disable delete protection. | `bool` | `false` | no |\n| \u003ca name=\"input_network_expose_routes_to_vswitch\"\u003e\u003c/a\u003e [network\\_expose\\_routes\\_to\\_vswitch](#input\\_network\\_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` | `false` | no |\n| \u003ca name=\"input_network_ip_cidr_range\"\u003e\u003c/a\u003e [network\\_ip\\_cidr\\_range](#input\\_network\\_ip\\_cidr\\_range) | IP CIDR 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` | `\"10.0.0.0/8\"` | no |\n| \u003ca name=\"input_network_labels\"\u003e\u003c/a\u003e [network\\_labels](#input\\_network\\_labels) | User-defined labels (key-value pairs) should be created with. | `map(any)` | `{}` | no |\n| \u003ca name=\"input_network_name\"\u003e\u003c/a\u003e [network\\_name](#input\\_network\\_name) | Name of the network to be created (must be unique per project). | `string` | `\"\"` | no |\n| \u003ca name=\"input_network_routes\"\u003e\u003c/a\u003e [network\\_routes](#input\\_network\\_routes) | A map between route\\_destinations to route\\_gateways. | `map(any)` | `{}` | no |\n| \u003ca name=\"input_subnet_ip_cidr_ranges\"\u003e\u003c/a\u003e [subnet\\_ip\\_cidr\\_ranges](#input\\_subnet\\_ip\\_cidr\\_ranges) | Range to allocate IPs from. Must be a subnet of the ip\\_range of the Network and must not overlap with any other subnets or with any destinations in routes. | `list(string)` | \u003cpre\u003e[\u003cbr\u003e  \"10.0.0.0/24\"\u003cbr\u003e]\u003c/pre\u003e | no |\n| \u003ca name=\"input_subnet_network_zone\"\u003e\u003c/a\u003e [subnet\\_network\\_zone](#input\\_subnet\\_network\\_zone) | Name of the network zone e.g. eu-central, us-east, us-west. | `string` | `\"\"` | no |\n| \u003ca name=\"input_subnet_type\"\u003e\u003c/a\u003e [subnet\\_type](#input\\_subnet\\_type) | Type of subnet e.g. `server`, `cloud` or `vswitch`. | `string` | `\"\"` | no |\n| \u003ca name=\"input_subnet_vswitch_id\"\u003e\u003c/a\u003e [subnet\\_vswitch\\_id](#input\\_subnet\\_vswitch\\_id) | ID of the vswitch, Required if type is `vswitch` | `number` | `null` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_network_delete_protection\"\u003e\u003c/a\u003e [network\\_delete\\_protection](#output\\_network\\_delete\\_protection) | Enable or disable delete protection. |\n| \u003ca name=\"output_network_expose_routes_to_vswitch\"\u003e\u003c/a\u003e [network\\_expose\\_routes\\_to\\_vswitch](#output\\_network\\_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.. |\n| \u003ca name=\"output_network_id\"\u003e\u003c/a\u003e [network\\_id](#output\\_network\\_id) | Unique ID of the network. |\n| \u003ca name=\"output_network_ip_cidr_range\"\u003e\u003c/a\u003e [network\\_ip\\_cidr\\_range](#output\\_network\\_ip\\_cidr\\_range) | IP CIDR Range of the whole Network which must span all included subnets and route destinations. Must be one of the private ipv4 ranges of RFC1918. |\n| \u003ca name=\"output_network_labels\"\u003e\u003c/a\u003e [network\\_labels](#output\\_network\\_labels) | User-defined labels (key-value pairs) should be created with. |\n| \u003ca name=\"output_network_name\"\u003e\u003c/a\u003e [network\\_name](#output\\_network\\_name) | Name of the network to be created (must be unique per project). |\n| \u003ca name=\"output_network_route_destination\"\u003e\u003c/a\u003e [network\\_route\\_destination](#output\\_network\\_route\\_destination) | Destination network or host of this route. Must be a subnet of the ip\\_range of the Network. Must not overlap with an existing ip\\_range in any subnets or with any destinations in other routes or with the first ip of the networks ip\\_range or with 172.31.1.1. |\n| \u003ca name=\"output_network_route_gateway\"\u003e\u003c/a\u003e [network\\_route\\_gateway](#output\\_network\\_route\\_gateway) | Gateway for the route. Cannot be the first ip of the networks ip\\_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers. |\n| \u003ca name=\"output_network_route_id\"\u003e\u003c/a\u003e [network\\_route\\_id](#output\\_network\\_route\\_id) | ID of the Network the route should be added to. |\n| \u003ca name=\"output_network_route_network_id\"\u003e\u003c/a\u003e [network\\_route\\_network\\_id](#output\\_network\\_route\\_network\\_id) | ID of the Network the route should be added to. |\n| \u003ca name=\"output_subnet_id\"\u003e\u003c/a\u003e [subnet\\_id](#output\\_subnet\\_id) | ID of the Network subnet. |\n| \u003ca name=\"output_subnet_ip_cidr_range\"\u003e\u003c/a\u003e [subnet\\_ip\\_cidr\\_range](#output\\_subnet\\_ip\\_cidr\\_range) | Range to allocate IPs from. Must be a subnet of the ip\\_range of the Network and must not overlap with any other subnets or with any destinations in routes. |\n| \u003ca name=\"output_subnet_network_id\"\u003e\u003c/a\u003e [subnet\\_network\\_id](#output\\_subnet\\_network\\_id) | ID of the Network the subnet should be added to. |\n| \u003ca name=\"output_subnet_network_zone\"\u003e\u003c/a\u003e [subnet\\_network\\_zone](#output\\_subnet\\_network\\_zone) | Name of the network zone e.g. eu-central, us-east, us-west. |\n| \u003ca name=\"output_subnet_type\"\u003e\u003c/a\u003e [subnet\\_type](#output\\_subnet\\_type) | Type of subnet e.g. `server`, `cloud` or `vswitch`. |\n| \u003ca name=\"output_subnet_vswitch_id\"\u003e\u003c/a\u003e [subnet\\_vswitch\\_id](#output\\_subnet\\_vswitch\\_id) | ID of the vswitch, Required if type is `vswitch` |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoro16%2Fterraform-hcloud-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoro16%2Fterraform-hcloud-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoro16%2Fterraform-hcloud-network/lists"}