From 7d23bc5e0696b2b55317b491c4c8032d2c729c7f Mon Sep 17 00:00:00 2001 From: Ciucur Daniel Date: Fri, 16 Jun 2023 11:22:56 +0300 Subject: [PATCH] Mark ip_configuration as Required (#22154) * Mark ip_configuration as Required * Make ip_configuration a required attribute * Update internal/services/network/bastion_host_resource.go --------- Co-authored-by: kt Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com> --- internal/services/network/bastion_host_resource.go | 2 +- website/docs/r/bastion_host.html.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/network/bastion_host_resource.go b/internal/services/network/bastion_host_resource.go index 9c480f0ded8fd..056c5516353ae 100644 --- a/internal/services/network/bastion_host_resource.go +++ b/internal/services/network/bastion_host_resource.go @@ -72,7 +72,7 @@ func resourceBastionHost() *pluginsdk.Resource { "ip_configuration": { Type: pluginsdk.TypeList, ForceNew: true, - Optional: true, + Required: true, MaxItems: 1, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ diff --git a/website/docs/r/bastion_host.html.markdown b/website/docs/r/bastion_host.html.markdown index eb70418323635..9adf221155b1b 100644 --- a/website/docs/r/bastion_host.html.markdown +++ b/website/docs/r/bastion_host.html.markdown @@ -76,7 +76,7 @@ The following arguments are supported: ~> **Note** Downgrading the SKU will force a new resource to be created. -* `ip_configuration` - (Optional) A `ip_configuration` block as defined below. Changing this forces a new resource to be created. +* `ip_configuration` - (Required) A `ip_configuration` block as defined below. Changing this forces a new resource to be created. * `ip_connect_enabled` - (Optional) Is IP Connect feature enabled for the Bastion Host. Defaults to `false`.