From 9a273fb9870e8d4b137b51d43577e65bbae7e9e4 Mon Sep 17 00:00:00 2001 From: Artsiom <82237255+ArtsiomAntropau@users.noreply.github.com> Date: Tue, 24 Oct 2023 08:03:39 +0200 Subject: [PATCH] Add note about dependencies between loadbalancerv2 and subnet (#44) * GCLOUD2-11652: Add note --- docs/resources/loadbalancerv2.md | 2 +- gcore/resource_gcore_loadbalancerv2.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/resources/loadbalancerv2.md b/docs/resources/loadbalancerv2.md index 50c200f..d9c68c6 100644 --- a/docs/resources/loadbalancerv2.md +++ b/docs/resources/loadbalancerv2.md @@ -42,7 +42,7 @@ resource "gcore_loadbalancerv2" "lb" { - `region_id` (Number) - `region_name` (String) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) -- `vip_network_id` (String) +- `vip_network_id` (String) Note: add all created `gcore_subnet` resources within the network with this id to the `depends_on` to be sure that `gcore_loadbalancerv2` will be destroyed first - `vip_subnet_id` (String) ### Read-Only diff --git a/gcore/resource_gcore_loadbalancerv2.go b/gcore/resource_gcore_loadbalancerv2.go index 067ccbd..970bbc3 100644 --- a/gcore/resource_gcore_loadbalancerv2.go +++ b/gcore/resource_gcore_loadbalancerv2.go @@ -90,6 +90,7 @@ func resourceLoadBalancerV2() *schema.Resource { }, "vip_network_id": &schema.Schema{ Type: schema.TypeString, + Description: "Note: add all created `gcore_subnet` resources within the network with this id to the `depends_on` to be sure that `gcore_loadbalancerv2` will be destroyed first", Optional: true, ForceNew: true, },