Skip to content

Commit

Permalink
Add note about dependencies between loadbalancerv2 and subnet (#44)
Browse files Browse the repository at this point in the history
* GCLOUD2-11652: Add note
  • Loading branch information
ArtsiomAntropau authored Oct 24, 2023
1 parent 3c60acd commit 9a273fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/resources/loadbalancerv2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions gcore/resource_gcore_loadbalancerv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 9a273fb

Please sign in to comment.