From 8bb1fbb57b1b6a67cbf6f9b4f5bac390179d6f69 Mon Sep 17 00:00:00 2001 From: Ofir Shtrull Date: Thu, 9 May 2024 19:27:45 +0300 Subject: [PATCH 1/6] fix wrong resource name cloudconnexa_ip_service --- example/services.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From b7d3f2206279239ca78401b1e10feeac3a4738a7 Mon Sep 17 00:00:00 2001 From: Ofir Shtrull Date: Thu, 9 May 2024 19:28:33 +0300 Subject: [PATCH 2/6] fixed cloudconnexa_route wrong attribute --- example/routes.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/routes.tf b/example/routes.tf index 55bdb1c..ae649c1 100644 --- a/example/routes.tf +++ b/example/routes.tf @@ -4,6 +4,6 @@ resource "cloudconnexa_route" "this" { } network_item_id = var.networks["example-network"] type = "IP_V4" - value = each.value.value + subnet = each.value.value description = each.value.description } From 3c19b90b9625232fe5bcef94f0cfee5191a1c8f2 Mon Sep 17 00:00:00 2001 From: Ofir Shtrull Date: Thu, 9 May 2024 19:29:01 +0300 Subject: [PATCH 3/6] Update variables.tf --- example/variables.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" }, ] From 1f0039cf6759c4e5d0874ef14c024429f9db0289 Mon Sep 17 00:00:00 2001 From: Ofir Shtrull Date: Thu, 9 May 2024 19:29:24 +0300 Subject: [PATCH 4/6] Update routes.tf --- example/routes.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/routes.tf b/example/routes.tf index ae649c1..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" - subnet = each.value.value + subnet = each.value.subnet description = each.value.description } From 405bf5bc0cb56d37b68e6a32b081848d192c9675 Mon Sep 17 00:00:00 2001 From: Ofir Shtrull Date: Thu, 9 May 2024 19:30:03 +0300 Subject: [PATCH 5/6] Update route.md --- templates/resources/route.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 9175f047d7ea0fd998f85aa6897947961ec6b783 Mon Sep 17 00:00:00 2001 From: Ofir Shtrull Date: Thu, 9 May 2024 19:31:31 +0300 Subject: [PATCH 6/6] Update route.md --- docs/resources/route.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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