Skip to content

Commit

Permalink
Mark ip_configuration as Required (#22154)
Browse files Browse the repository at this point in the history
* Mark ip_configuration as Required

* Make ip_configuration a required attribute

* Update internal/services/network/bastion_host_resource.go

---------

Co-authored-by: kt <kt@katbyte.me>
Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 16, 2023
1 parent a9d42d0 commit f8ad740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/services/network/bastion_host_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/bastion_host.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down

0 comments on commit f8ad740

Please sign in to comment.