Skip to content

Commit

Permalink
Don't allow to define multiple health checks for AWS ELB
Browse files Browse the repository at this point in the history
ELB doesn't support multiple health checks, terraform allowed
to define them, but it used the first one without any warning.
After this change it will fail.
  • Loading branch information
jsoriano committed Oct 26, 2015
1 parent e782999 commit e20e643
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions builtin/providers/aws/resource_aws_elb.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ func resourceAwsElb() *schema.Resource {
},
},
Set: resourceAwsElbHealthCheckHash,
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
vs := v.([]interface{})
if len(vs) > 1 {
errors = append(errors, fmt.Errorf("ELB doesn't support multiple health checks"))
}
return
},
},

"dns_name": &schema.Schema{
Expand Down

0 comments on commit e20e643

Please sign in to comment.