diff --git a/builtin/providers/aws/structure.go b/builtin/providers/aws/structure.go index 6facdf792b..2fc5bbf3f5 100644 --- a/builtin/providers/aws/structure.go +++ b/builtin/providers/aws/structure.go @@ -49,7 +49,7 @@ func expandListeners(configured []interface{}) ([]*elb.Listener, error) { if l.SSLCertificateId != nil && *l.SSLCertificateId != "" { // validate the protocol is correct for _, p := range []string{"https", "ssl"} { - if (*l.InstanceProtocol == p) || (*l.Protocol == p) { + if (strings.ToLower(*l.InstanceProtocol) == p) || (strings.ToLower(*l.Protocol) == p) { valid = true } }