diff --git a/docs/resources/route.md b/docs/resources/route.md index 26c8a1d..ae9d892 100644 --- a/docs/resources/route.md +++ b/docs/resources/route.md @@ -19,7 +19,7 @@ Use `cloudconnexa_route` to create a route on an CloudConnexa network. - `network_item_id` (String) The id of the network on which to create the route. - `type` (String) The type of route. Valid values are `IP_V4`, `IP_V6`, and `DOMAIN`. -- `value` (String) The target value of the default route. +- `subnet` (String) The target subnet of the default route. ### Read-Only diff --git a/example/routes.tf b/example/routes.tf index 55bdb1c..cb325be 100644 --- a/example/routes.tf +++ b/example/routes.tf @@ -1,9 +1,9 @@ resource "cloudconnexa_route" "this" { for_each = { - for key, route in var.routes : route.value => route + for key, route in var.routes : route.subnet => route } network_item_id = var.networks["example-network"] type = "IP_V4" - value = each.value.value + subnet = each.value.subnet description = each.value.description } diff --git a/example/services.tf b/example/services.tf index 3e8d3d5..764eb22 100644 --- a/example/services.tf +++ b/example/services.tf @@ -2,7 +2,7 @@ data "cloudconnexa_network" "test-net" { name = "test-net" } -resource "cloudconnexa_service" "test-service" { +resource "cloudconnexa_ip_service" "test-service" { name = "test-service" type = "IP_SOURCE" description = "test-description" diff --git a/example/variables.tf b/example/variables.tf index 2f0f1be..8169811 100644 --- a/example/variables.tf +++ b/example/variables.tf @@ -55,15 +55,15 @@ variable "routes" { type = list(map(string)) default = [ { - value = "10.0.0.0/18" + subnet = "10.0.0.0/18" description = "Example Route with subnet /18" }, { - value = "10.10.0.0/20" + subnet = "10.10.0.0/20" description = "Example Route with subnet /20" }, { - value = "10.20.0.0/24" + subnet = "10.20.0.0/24" description = "Example Route with subnet /24" }, ] diff --git a/templates/resources/route.md b/templates/resources/route.md index 26c8a1d..ae9d892 100644 --- a/templates/resources/route.md +++ b/templates/resources/route.md @@ -19,7 +19,7 @@ Use `cloudconnexa_route` to create a route on an CloudConnexa network. - `network_item_id` (String) The id of the network on which to create the route. - `type` (String) The type of route. Valid values are `IP_V4`, `IP_V6`, and `DOMAIN`. -- `value` (String) The target value of the default route. +- `subnet` (String) The target subnet of the default route. ### Read-Only