diff --git a/builtin/providers/aws/resource_aws_elb.go b/builtin/providers/aws/resource_aws_elb.go index 11016525b..422b527d1 100644 --- a/builtin/providers/aws/resource_aws_elb.go +++ b/builtin/providers/aws/resource_aws_elb.go @@ -169,6 +169,7 @@ func resourceAwsElb() *schema.Resource { Type: schema.TypeList, Optional: true, Computed: true, + MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "healthy_threshold": &schema.Schema{ @@ -590,9 +591,7 @@ func resourceAwsElbUpdate(d *schema.ResourceData, meta interface{}) error { if d.HasChange("health_check") { hc := d.Get("health_check").([]interface{}) - if len(hc) > 1 { - return fmt.Errorf("Only one health check per ELB is supported") - } else if len(hc) > 0 { + if len(hc) > 0 { check := hc[0].(map[string]interface{}) configureHealthCheckOpts := elb.ConfigureHealthCheckInput{ LoadBalancerName: aws.String(d.Id()),