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({ |
[] |
no |
subnets | List subnets created with this network | list(object({ |
[] |
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 |