Skip to content

Commit

Permalink
resource/aws_appmesh_virtual_node: Disallow empty 'backend' blocks. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit authored Aug 21, 2020
1 parent fc198b7 commit 6570231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions aws/resource_aws_appmesh_virtual_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ func resourceAwsAppmeshVirtualNode() *schema.Resource {
Schema: map[string]*schema.Schema{
"virtual_service": {
Type: schema.TypeList,
Optional: true,
MinItems: 0,
Required: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/appmesh_virtual_node.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ The `spec` object supports the following:

The `backend` object supports the following:

* `virtual_service` - (Optional) Specifies a virtual service to use as a backend for a virtual node.
* `virtual_service` - (Required) Specifies a virtual service to use as a backend for a virtual node.

The `virtual_service` object supports the following:

Expand Down

0 comments on commit 6570231

Please sign in to comment.